Coverage Report

Created: 2026-02-14 09:37

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/include/docmodel/uno/UnoChartStyle.hxx
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
#pragma once
11
12
#include <config_options.h>
13
#include <cppuhelper/implbase.hxx>
14
15
#include <com/sun/star/chart2/XChartStyle.hpp>
16
17
#include <docmodel/dllapi.h>
18
#include <docmodel/styles/ChartStyle.hxx>
19
20
class UNLESS_MERGELIBS(DOCMODEL_DLLPUBLIC) UnoChartStyle final
21
    : public cppu::WeakImplHelper<css::chart2::XChartStyle>
22
#if 0 // TODO
23
   ,public css::util::XModifyListener       // I think this is needed
24
   ,public css::util::XModifyBroadcaster    // I think this is needed
25
#endif
26
27
{
28
private:
29
    model::StyleSet maStyle;
30
31
public:
32
0
    UnoChartStyle() = default;
33
34
    UnoChartStyle(model::StyleSet const& rStyle)
35
0
        : maStyle(rStyle)
36
0
    {
37
0
    }
38
39
0
    model::StyleSet& getChartStyle() { return maStyle; }
40
41
    // XChartStyle
42
};
43
44
namespace model::style
45
{
46
DOCMODEL_DLLPUBLIC css::uno::Reference<css::chart2::XChartStyle>
47
createXChartStyle(model::StyleSet const& rStyle);
48
DOCMODEL_DLLPUBLIC model::StyleSet*
49
getFromXChartStyle(css::uno::Reference<css::chart2::XChartStyle> const& rxStyle);
50
}
51
52
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */