Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
dafedde5
Kaydet (Commit)
dafedde5
authored
Tem 04, 2012
tarafından
Herbert Duerr
Kaydeden (comit)
Michael Meeks
Tem 06, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
use custom ExtEnt loader for RDF import
from:
http://svn.apache.org/viewvc?view=revision&revision=1230438
üst
94d4e9eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
librdf_repository.cxx
unoxml/source/rdf/librdf_repository.cxx
+11
-0
No files found.
unoxml/source/rdf/librdf_repository.cxx
Dosyayı görüntüle @
dafedde5
...
...
@@ -32,6 +32,7 @@
#include <boost/bind.hpp>
#include <libxslt/security.h>
#include <libxml/parser.h>
#include <redland.h>
...
...
@@ -871,6 +872,11 @@ bool formatNeedsBaseURI(::sal_Int16 i_Format)
return
true
;
}
xmlParserInputPtr
myExtEntityLoader
(
const
char
*
/*URL*/
,
const
char
*
/*ID*/
,
xmlParserCtxtPtr
/*context*/
)
{
return
NULL
;
}
//void SAL_CALL
uno
::
Reference
<
rdf
::
XNamedGraph
>
SAL_CALL
librdf_Repository
::
importGraph
(
::
sal_Int16
i_Format
,
...
...
@@ -948,6 +954,9 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
"librdf_new_parser failed"
,
*
this
);
}
xmlExternalEntityLoader
oldExtEntityLoader
=
xmlGetExternalEntityLoader
();
xmlSetExternalEntityLoader
(
myExtEntityLoader
);
uno
::
Sequence
<
sal_Int8
>
buf
;
uno
::
Reference
<
io
::
XSeekable
>
xSeekable
(
i_xInStream
,
uno
::
UNO_QUERY
);
// UGLY: if only that redland junk could read streams...
...
...
@@ -972,6 +981,8 @@ throw (uno::RuntimeException, lang::IllegalArgumentException,
"librdf_Repository::importGraph: "
"librdf_model_context_add_statements failed"
,
*
this
);
}
xmlSetExternalEntityLoader
(
oldExtEntityLoader
);
return
getGraph
(
i_xGraphName
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment