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 "StylePropertiesContext.hxx"
12 #include <xmloff/xmlnamespace.hxx>
13 #include <xmloff/xmlimp.hxx>
15 #include <xmloff/XMLComplexColorContext.hxx>
17 using namespace xmloff::token
;
19 StylePropertiesContext::StylePropertiesContext(
20 SvXMLImport
& rImport
, sal_Int32 nElement
,
21 const css::uno::Reference
<css::xml::sax::XFastAttributeList
>& xAttrList
, sal_uInt32 nFamily
,
22 std::vector
<XMLPropertyState
>& rProps
, const rtl::Reference
<SvXMLImportPropertyMapper
>& rMap
)
23 : SvXMLPropertySetContext(rImport
, nElement
, xAttrList
, nFamily
, rProps
, rMap
)
27 StylePropertiesContext::~StylePropertiesContext() {}
29 css::uno::Reference
<css::xml::sax::XFastContextHandler
>
30 StylePropertiesContext::createFastChildContext(
31 sal_Int32 nElement
, const css::uno::Reference
<css::xml::sax::XFastAttributeList
>& xAttrList
,
32 std::vector
<XMLPropertyState
>& rProperties
, const XMLPropertyState
& rProperty
)
34 if (nElement
== XML_ELEMENT(LO_EXT
, XML_CHAR_COMPLEX_COLOR
))
36 return new XMLPropertyComplexColorContext(GetImport(), nElement
, xAttrList
, rProperty
,
39 return SvXMLPropertySetContext::createFastChildContext(nElement
, xAttrList
, rProperties
,
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */