LibreOffice Module writerperfect (master) 1
xmlictxt.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
9
10#pragma once
11
12#include <com/sun/star/xml/sax/XDocumentHandler.hpp>
13
15#include <rtl/ref.hxx>
16
17namespace writerperfect::exp
18{
19class XMLImport;
20
22class XMLImportContext : public cppu::WeakImplHelper<css::xml::sax::XDocumentHandler>
23{
24public:
27
29 CreateChildContext(const OUString& rName,
30 const css::uno::Reference<css::xml::sax::XAttributeList>& xAttribs);
31
32 // XDocumentHandler
33 void SAL_CALL startDocument() override;
34 void SAL_CALL endDocument() override;
35 void SAL_CALL
36 startElement(const OUString& rName,
37 const css::uno::Reference<css::xml::sax::XAttributeList>& xAttribs) override;
38 void SAL_CALL endElement(const OUString& rName) override;
39 void SAL_CALL characters(const OUString& rChars) override;
40 void SAL_CALL ignorableWhitespace(const OUString& rWhitespaces) override;
41 void SAL_CALL processingInstruction(const OUString& rTarget, const OUString& rData) override;
42 void SAL_CALL
43 setDocumentLocator(const css::uno::Reference<css::xml::sax::XLocator>& xLocator) override;
44
45private:
47};
48
49} // namespace writerperfect::exp
50
51/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Base class for a handler of a single XML element during ODF -> librevenge conversion.
Definition: xmlictxt.hxx:23
virtual rtl::Reference< XMLImportContext > CreateChildContext(const OUString &rName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs)
Definition: xmlictxt.cxx:23
void SAL_CALL endElement(const OUString &rName) override
Definition: xmlictxt.cxx:39
void SAL_CALL startDocument() override
Definition: xmlictxt.cxx:29
void SAL_CALL startElement(const OUString &rName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override
Definition: xmlictxt.cxx:33
void SAL_CALL ignorableWhitespace(const OUString &rWhitespaces) override
Definition: xmlictxt.cxx:43
void SAL_CALL characters(const OUString &rChars) override
Definition: xmlictxt.cxx:41
void SAL_CALL setDocumentLocator(const css::uno::Reference< css::xml::sax::XLocator > &xLocator) override
Definition: xmlictxt.cxx:49
XMLImportContext(XMLImport &rImport)
Definition: xmlictxt.cxx:18
void SAL_CALL endDocument() override
Definition: xmlictxt.cxx:31
void SAL_CALL processingInstruction(const OUString &rTarget, const OUString &rData) override
Definition: xmlictxt.cxx:45
ODT export feeds this class to make librevenge calls.
Definition: xmlimp.hxx:69