1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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/.
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());
34 } // namespace writerperfect::exp
36 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */