diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2017-04-14 20:39:40 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2017-04-18 12:44:45 +0200 |
commit | efc5643c9a11f68b4fd41ac1b019f373ada3d750 (patch) | |
tree | 240cdceafa8267165dcd2917bb309356143c1d48 /sw/source/filter/docx/swdocxreader.hxx | |
parent | d08ea6b3d343fa852f9d1bec67082829ca023f91 (diff) |
AutoText: loading dotx documents
For testing purposes patch introduces simple
import. New AutoText entries are imported
if document contains single paragraph AutoTexts.
Change-Id: I3f0e17c63e109eac6514ae0cb8cc168e8282b55b
Reviewed-on: https://gerrit.libreoffice.org/36634
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'sw/source/filter/docx/swdocxreader.hxx')
-rw-r--r-- | sw/source/filter/docx/swdocxreader.hxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sw/source/filter/docx/swdocxreader.hxx b/sw/source/filter/docx/swdocxreader.hxx index 35fdee86a643..2646a963523f 100644 --- a/sw/source/filter/docx/swdocxreader.hxx +++ b/sw/source/filter/docx/swdocxreader.hxx @@ -21,6 +21,9 @@ #define INCLUDED_SW_SOURCE_FILTER_DOCX_SWDOCXREADER_HXX #include <shellio.hxx> +#include <comphelper/sequenceashashmap.hxx> +#include <com/sun/star/xml/dom/XDocument.hpp> +#include <tools/ref.hxx> /// Wrapper for the UNO DOCX import filter (in writerfilter) for autotext purposes. class SwDOCXReader : public StgReader @@ -33,6 +36,9 @@ public: private: virtual sal_uLong Read( SwDoc&, const OUString&, SwPaM&, const OUString& ) override; + + uno::Reference<css::xml::dom::XDocument> OpenDocument() const; + static comphelper::SequenceAsHashMap GetGrabBag( const uno::Reference<lang::XComponent>& xDocument ); }; #endif |