Coverage Report

Created: 2026-10-14 09:33

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/xmloff/source/style/StylePropertiesContext.cxx
Line
Count
Source
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/xmlimp.hxx>
13
#include <xmloff/xmlimppr.hxx>
14
#include <xmloff/xmlprmap.hxx>
15
#include <xmloff/txtprmap.hxx>
16
17
#include <xmloff/XMLComplexColorContext.hxx>
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
15.8k
    : SvXMLPropertySetContext(rImport, nElement, xAttrList, nFamily, rProps, pMap)
24
15.8k
{
25
15.8k
}
26
27
15.8k
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
0
{
34
    // Character, fill and stroke complex colors all share this context id.
35
0
    if (mpMapper->getPropertySetMapper()->GetEntryContextId(rProperty.mnIndex) == CTF_COMPLEX_COLOR)
36
0
    {
37
0
        return new XMLPropertyComplexColorContext(GetImport(), nElement, xAttrList, rProperty,
38
0
                                                  rProperties);
39
0
    }
40
0
    return SvXMLPropertySetContext::createFastChildContext(nElement, xAttrList, rProperties,
41
0
                                                           rProperty);
42
0
}
43
44
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */