bump product version to 7.6.3.2-android
[LibreOffice.git] / xmloff / source / style / StylePropertiesContext.cxx
blob910b7873d54fc2a30bf48b1fe1a18a3e46a9e96b
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 <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,
39 rProperties);
41 return SvXMLPropertySetContext::createFastChildContext(nElement, xAttrList, rProperties,
42 rProperty);
45 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */