Coverage Report

Created: 2025-12-31 10:39

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/docmodel/source/uno/UnoChartStyle.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
11
#include <docmodel/uno/UnoChartStyle.hxx>
12
#include <cppuhelper/queryinterface.hxx>
13
14
using namespace css;
15
16
namespace model::style
17
{
18
uno::Reference<chart2::XChartStyle> createXChartStyle(model::StyleSet const& rStyle)
19
0
{
20
0
    return new UnoChartStyle(rStyle);
21
0
}
22
23
model::StyleSet* getFromXChartStyle(uno::Reference<chart2::XChartStyle> const& rxStyle)
24
0
{
25
0
    UnoChartStyle* pUnoChartStyle = static_cast<UnoChartStyle*>(rxStyle.get());
26
27
0
    if (pUnoChartStyle)
28
0
    {
29
0
        return &pUnoChartStyle->getChartStyle();
30
0
    }
31
0
    else
32
0
    {
33
0
        return nullptr;
34
0
    }
35
0
}
36
37
} // end model::style
38
39
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */