LibreOffice Module writerperfect (master) 1
XMLSectionContext.cxx
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#include "XMLSectionContext.hxx"
11
12#include "xmlimp.hxx"
13#include "xmltext.hxx"
14
15using namespace com::sun::star;
16
17namespace writerperfect::exp
18{
20 : XMLImportContext(rImport)
21{
22}
23
25 const OUString& rName, const css::uno::Reference<css::xml::sax::XAttributeList>& /*xAttribs*/)
26{
27 return CreateTextChildContext(GetImport(), rName);
28}
29
31 const OUString& /*rName*/,
32 const css::uno::Reference<css::xml::sax::XAttributeList>& /*xAttribs*/)
33{
34 GetImport().GetGenerator().openSection(librevenge::RVNGPropertyList());
35}
36
37void XMLSectionContext::endElement(const OUString& /*rName*/)
38{
39 GetImport().GetGenerator().closeSection();
40}
41
42} // namespace writerperfect::exp
43
44/* 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
ODT export feeds this class to make librevenge calls.
Definition: xmlimp.hxx:69
librevenge::RVNGTextInterface & GetGenerator() const
Definition: xmlimp.cxx:462
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
rtl::Reference< XMLImportContext > CreateChildContext(const OUString &rName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override
rtl::Reference< XMLImportContext > CreateTextChildContext(XMLImport &rImport, std::u16string_view rName, bool bTopLevel)
Context factory for body text, section, table cell, etc.
Definition: xmltext.cxx:39