summaryrefslogtreecommitdiff
path: root/writerfilter/inc/ooxml
diff options
context:
space:
mode:
authorAndres Gomez <agomez@igalia.com>2013-09-13 18:18:39 +0300
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-09-20 08:51:37 +0000
commit290f03e8bb5071d7716fb6563e3274caa51102f0 (patch)
tree0eb52118efb357d309461baf9e1098cdaf650ca0 /writerfilter/inc/ooxml
parent44c5fcb7eb4077740ef497ff4bb6c4cf23224dbf (diff)
writerfilter: OOXML theme saved in InteropGrabBag
The XDocuments representing the DOM of an OOXML's theme document is now stored as the PropertyValue "OOXTheme" into the "InteropGraBag" property of the SwXTextDocument. Added the importSubStream() method to the writerfilter::ooxml::OOXMLDocumentImpl class in order to create the XDocument for the theme XML fragment stream and invoked it during the resolve() method. Modified the writerfilter::ooxml::OOXMLDocument abstract class to be able to hold the OOXML's theme XDocument. Added the set/getTheme() methods to store and obtain the XDocument directly. Modified the WriterFilter::filter() method to store the OOXML's theme XDocument in the "InteropGrabBag" property of the TextDocument service SwXTextDocument implementation. Updated the UTs accordingly. Change-Id: I3960590fcf4856caf770908b983ffb6898f061c0 Reviewed-on: https://gerrit.libreoffice.org/6002 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'writerfilter/inc/ooxml')
-rw-r--r--writerfilter/inc/ooxml/OOXMLDocument.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/writerfilter/inc/ooxml/OOXMLDocument.hxx b/writerfilter/inc/ooxml/OOXMLDocument.hxx
index c97e2b2b08c0..1f4930b692e3 100644
--- a/writerfilter/inc/ooxml/OOXMLDocument.hxx
+++ b/writerfilter/inc/ooxml/OOXMLDocument.hxx
@@ -28,6 +28,7 @@
#include <com/sun/star/xml/sax/XFastParser.hpp>
#include <com/sun/star/xml/sax/XFastTokenHandler.hpp>
#include <com/sun/star/xml/sax/XFastShapeContextHandler.hpp>
+#include <com/sun/star/xml/dom/XDocument.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/drawing/XDrawPage.hpp>
@@ -239,6 +240,8 @@ public:
virtual const OUString & getTarget() const = 0;
virtual uno::Reference<xml::sax::XFastShapeContextHandler> getShapeContext( ) = 0;
virtual void setShapeContext( uno::Reference<xml::sax::XFastShapeContextHandler> xContext ) = 0;
+ virtual uno::Reference<xml::dom::XDocument> getThemeDom( ) = 0;
+ virtual void setThemeDom( uno::Reference<xml::dom::XDocument> xThemeDom ) = 0;
};