diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-08-01 16:45:44 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-08-01 18:01:16 +0200 |
commit | c90e9ca50300c7f59558095c2716c098632c8d37 (patch) | |
tree | bcf5ec3876d0e823c0eed3d68aa85bb98cef6d2d /writerperfect/source/writer/exp | |
parent | 51dee24ce82e0fc4b864ac2905ce3587acf344f3 (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')
-rw-r--r-- | writerperfect/source/writer/exp/xmlimp.cxx | 60 | ||||
-rw-r--r-- | writerperfect/source/writer/exp/xmlimp.hxx | 47 |
2 files changed, 107 insertions, 0 deletions
diff --git a/writerperfect/source/writer/exp/xmlimp.cxx b/writerperfect/source/writer/exp/xmlimp.cxx new file mode 100644 index 000000000000..1c915857413e --- /dev/null +++ b/writerperfect/source/writer/exp/xmlimp.cxx @@ -0,0 +1,60 @@ +/* -*- 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/. + */ + +#include "xmlimp.hxx" + +using namespace com::sun::star; + +namespace writerperfect +{ +namespace exp +{ + +XMLImport::XMLImport() +{ +} + +void XMLImport::startDocument() +{ +} + +void XMLImport::endDocument() +{ +} + +void XMLImport::startElement(const OUString &/*rName*/, const css::uno::Reference<css::xml::sax::XAttributeList> &/*xAttribs*/) +{ +} + +void XMLImport::endElement(const OUString &/*rName*/) +{ +} + +void XMLImport::characters(const OUString &/*rChars*/) +{ +} + +void XMLImport::ignorableWhitespace(const OUString &/*rWhitespaces*/) +{ +} + +void XMLImport::processingInstruction(const OUString &/*rTarget*/, const OUString &/*rData*/) +{ + SAL_WARN("writerperfect", "XMLImport::processingInstruction: implement me"); +} + +void XMLImport::setDocumentLocator(const css::uno::Reference<css::xml::sax::XLocator> &/*xLocator*/) +{ + SAL_WARN("writerperfect", "XMLImport::setDocumentLocator: implement me"); +} + +} // namespace exp +} // namespace writerperfect + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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: */ |