LibreOffice Module writerperfect (master) 1
XMLTextListItemContext.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
11
13#include "txtparai.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 if (rName == "text:p" || rName == "text:h")
28 return new XMLParaContext(GetImport());
29 if (rName == "text:list")
30 return new XMLTextListContext(GetImport());
31 return nullptr;
32}
33
34} // namespace writerperfect::exp
35
36/* 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
Handler for <text:p>/<text:h>.
Definition: txtparai.hxx:22
rtl::Reference< XMLImportContext > CreateChildContext(const OUString &rName, const css::uno::Reference< css::xml::sax::XAttributeList > &xAttribs) override