summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
Diffstat (limited to 'oox')
-rw-r--r--oox/source/core/xmlfilterbase.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/oox/source/core/xmlfilterbase.cxx b/oox/source/core/xmlfilterbase.cxx
index 371439b022a2..7f4ff6bd0f0c 100644
--- a/oox/source/core/xmlfilterbase.cxx
+++ b/oox/source/core/xmlfilterbase.cxx
@@ -200,6 +200,7 @@ XmlFilterBase::XmlFilterBase( const Reference< XComponentContext >& rxContext )
mnRelId( 1 ),
mnMaxDocId( 0 ),
mbMSO2007(false),
+ mbMSO(false),
mbMissingExtDrawing(false)
{
}
@@ -218,9 +219,10 @@ XmlFilterBase::~XmlFilterBase()
void XmlFilterBase::checkDocumentProperties(const Reference<XDocumentProperties>& xDocProps)
{
- mbMSO2007 = false;
+ mbMSO2007 = mbMSO = false;
if (!xDocProps->getGenerator().startsWithIgnoreAsciiCase("Microsoft"))
return;
+ mbMSO = true;
uno::Reference<beans::XPropertyAccess> xUserDefProps(xDocProps->getUserDefinedProperties(), uno::UNO_QUERY);
if (!xUserDefProps.is())
@@ -1020,6 +1022,11 @@ bool XmlFilterBase::isMSO2007Document() const
return mbMSO2007;
}
+bool XmlFilterBase::isMSODocument() const
+{
+ return mbMSO;
+}
+
void XmlFilterBase::setMissingExtDrawing()
{
mbMissingExtDrawing = true;