/src/libreoffice/xmloff/source/style/StylePropertiesContext.cxx
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | | /* |
3 | | * This file is part of the LibreOffice project. |
4 | | * |
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 | | */ |
9 | | |
10 | | #include "StylePropertiesContext.hxx" |
11 | | |
12 | | #include <xmloff/xmlnamespace.hxx> |
13 | | #include <xmloff/xmlimp.hxx> |
14 | | |
15 | | #include <xmloff/XMLComplexColorContext.hxx> |
16 | | |
17 | | using namespace xmloff::token; |
18 | | |
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, SvXMLImportPropertyMapper* pMap) |
23 | 74.2k | : SvXMLPropertySetContext(rImport, nElement, xAttrList, nFamily, rProps, pMap) |
24 | 74.2k | { |
25 | 74.2k | } |
26 | | |
27 | 74.2k | StylePropertiesContext::~StylePropertiesContext() {} |
28 | | |
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) |
33 | 1 | { |
34 | 1 | if (nElement == XML_ELEMENT(LO_EXT, XML_CHAR_COMPLEX_COLOR)) |
35 | 0 | { |
36 | 0 | return new XMLPropertyComplexColorContext(GetImport(), nElement, xAttrList, rProperty, |
37 | 0 | rProperties); |
38 | 0 | } |
39 | 1 | return SvXMLPropertySetContext::createFastChildContext(nElement, xAttrList, rProperties, |
40 | 1 | rProperty); |
41 | 1 | } |
42 | | |
43 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |