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