related: tdf#162601 UNIQUE function is case-insensitive also for non ASCII
[LibreOffice.git] / xmloff / source / style / StylePropertiesContext.cxx
blobba64b7326e09431573d0aef4dc2161665573db56
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 "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,
37 rProperties);
39 return SvXMLPropertySetContext::createFastChildContext(nElement, xAttrList, rProperties,
40 rProperty);
43 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */