Coverage Report

Created: 2026-04-09 11:41

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/include/sfx2/StyleManager.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
#ifndef INCLUDED_SFX2_STYLEMANAGER_HXX
11
#define INCLUDED_SFX2_STYLEMANAGER_HXX
12
13
#include <sfx2/dllapi.h>
14
15
#include <tools/long.hxx>
16
17
#include <memory>
18
#include <string_view>
19
20
class OutputDevice;
21
class SfxObjectShell;
22
class SfxStyleSheetBase;
23
enum class SfxStyleFamily;
24
namespace sfx2 { class StylePreviewRenderer; }
25
26
namespace sfx2
27
{
28
29
class SFX2_DLLPUBLIC StyleManager
30
{
31
protected:
32
    SfxObjectShell& mrShell;
33
34
public:
35
    StyleManager(SfxObjectShell& rShell)
36
77.0k
        : mrShell(rShell)
37
77.0k
    {}
38
39
    virtual ~StyleManager()
40
77.0k
    {}
41
42
    SfxStyleSheetBase* Search(std::u16string_view rStyleName, SfxStyleFamily eFamily);
43
44
    virtual std::unique_ptr<StylePreviewRenderer> CreateStylePreviewRenderer(
45
                    OutputDevice& rOutputDev, SfxStyleSheetBase* pStyle,
46
                    tools::Long nMaxHeight) = 0;
47
};
48
49
} // end namespace sfx2
50
51
#endif //INCLUDED_SFX2_STYLEMANAGER_HXX
52
53
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */