tdf#153192 support read protection in RTF documents
[LibreOffice.git] / writerperfect / source / writer / exp / XMLTextListItemContext.cxx
blob36f3f2ce63e77917978cdd953c9a54d686a6f8b5
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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 */
10 #include "XMLTextListItemContext.hxx"
12 #include "XMLTextListContext.hxx"
13 #include "txtparai.hxx"
15 using namespace com::sun::star;
17 namespace writerperfect::exp
19 XMLTextListItemContext::XMLTextListItemContext(XMLImport& rImport)
20 : XMLImportContext(rImport)
24 rtl::Reference<XMLImportContext> XMLTextListItemContext::CreateChildContext(
25 const OUString& rName, const css::uno::Reference<css::xml::sax::XAttributeList>& /*xAttribs*/)
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;
34 } // namespace writerperfect::exp
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */