Coverage Report

Created: 2026-02-14 09:37

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/sc/source/ui/inc/condformatdlgdata.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 <sal/config.h>
13
#include <sal/types.h>
14
#include <memory>
15
16
namespace condformat::dialog
17
{
18
enum ScCondFormatDialogType
19
{
20
    NONE,
21
    CONDITION,
22
    COLORSCALE,
23
    DATABAR,
24
    ICONSET,
25
    DATE
26
};
27
}
28
29
class ScConditionalFormatList;
30
31
class ScCondFormatDlgData
32
{
33
public:
34
    ScCondFormatDlgData(std::shared_ptr<ScConditionalFormatList> pCondFormats, sal_uInt32 nItem,
35
                        bool bManaged);
36
37
0
    ScCondFormatDlgData(ScCondFormatDlgData const&) = default;
38
    ScCondFormatDlgData(ScCondFormatDlgData&&) = default;
39
40
    bool IsManaged() const;
41
    condformat::dialog::ScCondFormatDialogType GetDialogType() const;
42
    sal_uInt32 GetIndex() const;
43
44
    void SetDialogType(condformat::dialog::ScCondFormatDialogType eType);
45
46
    ScConditionalFormatList* GetConditionalFormatList();
47
48
private:
49
    std::shared_ptr<ScConditionalFormatList> mpCondFormats;
50
    sal_uInt32 mnItem;
51
    condformat::dialog::ScCondFormatDialogType meDialogType;
52
    bool mbManaged;
53
};
54
55
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */