summaryrefslogtreecommitdiff
path: root/writerperfect/source/writer/exp/xmlimp.hxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2017-08-01 16:45:44 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2017-08-01 18:01:16 +0200
commitc90e9ca50300c7f59558095c2716c098632c8d37 (patch)
treebcf5ec3876d0e823c0eed3d68aa85bb98cef6d2d /writerperfect/source/writer/exp/xmlimp.hxx
parent51dee24ce82e0fc4b864ac2905ce3587acf344f3 (diff)
EPUB export: add initial document handler
It doesn't do anything useful yet, though. Change-Id: Ic881a9aec92981306aa815d9d10b6aa0ea949237 Reviewed-on: https://gerrit.libreoffice.org/40639 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'writerperfect/source/writer/exp/xmlimp.hxx')
-rw-r--r--writerperfect/source/writer/exp/xmlimp.hxx47
1 files changed, 47 insertions, 0 deletions
diff --git a/writerperfect/source/writer/exp/xmlimp.hxx b/writerperfect/source/writer/exp/xmlimp.hxx
new file mode 100644
index 000000000000..9d6d1eb4c0c6
--- /dev/null
+++ b/writerperfect/source/writer/exp/xmlimp.hxx
@@ -0,0 +1,47 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_WRITERPERFECT_SOURCE_WRITER_EXP_XMLIMP_HXX
+#define INCLUDED_WRITERPERFECT_SOURCE_WRITER_EXP_XMLIMP_HXX
+
+#include <cppuhelper/implbase.hxx>
+
+#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
+
+namespace writerperfect
+{
+namespace exp
+{
+
+/// ODT export feeds this class to make librevenge calls.
+class XMLImport : public cppu::WeakImplHelper
+ <
+ css::xml::sax::XDocumentHandler
+ >
+{
+public:
+ XMLImport();
+
+ // XDocumentHandler
+ void SAL_CALL startDocument() override;
+ void SAL_CALL endDocument() override;
+ void SAL_CALL startElement(const OUString &rName, const css::uno::Reference<css::xml::sax::XAttributeList> &xAttribs) override;
+ void SAL_CALL endElement(const OUString &rName) override;
+ void SAL_CALL characters(const OUString &rChars) override;
+ void SAL_CALL ignorableWhitespace(const OUString &rWhitespaces) override;
+ void SAL_CALL processingInstruction(const OUString &rTarget, const OUString &rData) override;
+ void SAL_CALL setDocumentLocator(const css::uno::Reference<css::xml::sax::XLocator> &xLocator) override;
+};
+
+} // namespace exp
+} // namespace writerperfect
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */