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
3905bd92
Kaydet (Commit)
3905bd92
authored
May 15, 2013
tarafından
Michael Stahl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
factor out SvXMLImport::IsOOoXML()
Change-Id: I9ccfe565bde1112f9f3cb8c666e901bf121862dc
üst
3e5d7723
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
5 deletions
+29
-5
xmlimp.hxx
include/xmloff/xmlimp.hxx
+1
-0
xmlimp.cxx
xmloff/source/core/xmlimp.cxx
+28
-5
No files found.
include/xmloff/xmlimp.hxx
Dosyayı görüntüle @
3905bd92
...
...
@@ -338,6 +338,7 @@ public:
bool
IsTableShapeSupported
()
const
{
return
mbIsTableShapeSupported
;
}
OUString
GetODFVersion
()
const
;
bool
IsOOoXML
()
const
;
// legacy non-ODF format?
/**
* Record an error condition that occurred during import. The
...
...
xmloff/source/core/xmlimp.cxx
Dosyayı görüntüle @
3905bd92
...
...
@@ -270,6 +270,8 @@ public:
OUString
aODFVersion
;
bool
mbIsOOoXML
;
// Boolean, indicating that position attributes
// of shapes are given in horizontal left-to-right layout. This is the case
// for the OpenOffice.org file format. (#i28749#)
...
...
@@ -289,7 +291,7 @@ public:
,
hMathFontConv
(
0
)
,
mbOwnGraphicResolver
(
false
)
,
mbOwnEmbeddedResolver
(
false
)
,
m
StreamName
(
)
,
m
bIsOOoXML
(
false
)
// Convert drawing object positions from OOo file format to OASIS (#i28749#)
,
mbShapePositionInHoriL2R
(
sal_False
)
,
mbTextDocInOOoFileFormat
(
sal_False
)
...
...
@@ -831,7 +833,25 @@ void SAL_CALL SvXMLImport::setTargetDocument( const uno::Reference< lang::XCompo
mxModel
=
uno
::
Reference
<
frame
::
XModel
>::
query
(
xDoc
);
if
(
!
mxModel
.
is
()
)
throw
lang
::
IllegalArgumentException
();
if
(
mxModel
.
is
()
&&
!
mxEventListener
.
is
())
try
{
uno
::
Reference
<
document
::
XStorageBasedDocument
>
const
xSBDoc
(
mxModel
,
uno
::
UNO_QUERY_THROW
);
uno
::
Reference
<
embed
::
XStorage
>
const
xStor
(
xSBDoc
->
getDocumentStorage
());
if
(
xStor
.
is
())
{
mpImpl
->
mbIsOOoXML
=
::
comphelper
::
OStorageHelper
::
GetXStorageFormat
(
xStor
)
<
SOFFICE_FILEFORMAT_8
;
}
}
catch
(
uno
::
Exception
const
&
e
)
{
SAL_WARN
(
"xmloff.core"
,
"exception caught: "
<<
e
.
Message
);
}
if
(
!
mxEventListener
.
is
())
{
mxEventListener
.
set
(
new
SvXMLImportEventListener
(
this
));
mxModel
->
addEventListener
(
mxEventListener
);
...
...
@@ -1577,9 +1597,7 @@ sal_Bool SvXMLImport::IsODFVersionConsistent( const OUString& aODFVersion )
uno
::
Reference
<
beans
::
XPropertySet
>
xStorProps
(
xStor
,
uno
::
UNO_QUERY_THROW
);
// the check should be done only for OASIS format
OUString
aMediaType
;
xStorProps
->
getPropertyValue
(
"MediaType"
)
>>=
aMediaType
;
if
(
::
comphelper
::
OStorageHelper
::
GetXStorageFormat
(
xStor
)
>=
SOFFICE_FILEFORMAT_8
)
if
(
!
IsOOoXML
())
{
sal_Bool
bRepairPackage
=
sal_False
;
try
...
...
@@ -1846,6 +1864,11 @@ OUString SvXMLImport::GetODFVersion() const
return
mpImpl
->
aODFVersion
;
}
bool
SvXMLImport
::
IsOOoXML
()
const
{
return
mpImpl
->
mbIsOOoXML
;
}
// xml:id for RDF metadata
void
SvXMLImport
::
SetXmlId
(
uno
::
Reference
<
uno
::
XInterface
>
const
&
i_xIfc
,
OUString
const
&
i_rXmlId
)
...
...
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