LibreOffice Module sc (master)
1
sc
source
ui
inc
condformatdlgitem.hxx
Go to the documentation of this file.
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 <
svl/poolitem.hxx
>
13
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
ScCondFormatDlgItem
:
public
SfxPoolItem
32
{
33
public
:
34
ScCondFormatDlgItem
(std::shared_ptr<ScConditionalFormatList> pCondFormats, sal_Int32 nItem,
35
bool
bManaged);
36
37
virtual
~ScCondFormatDlgItem
()
override
;
38
39
ScCondFormatDlgItem
(
ScCondFormatDlgItem
const
&) =
default
;
40
ScCondFormatDlgItem
(
ScCondFormatDlgItem
&&) =
default
;
41
ScCondFormatDlgItem
&
operator=
(
ScCondFormatDlgItem
const
&) =
delete
;
// due to SfxPoolItem
42
ScCondFormatDlgItem
&
operator=
(
ScCondFormatDlgItem
&&) =
delete
;
// due to SfxPoolItem
43
44
virtual
bool
operator==
(
const
SfxPoolItem
&)
const override
;
45
virtual
ScCondFormatDlgItem
*
Clone
(
SfxItemPool
* pPool =
nullptr
)
const override
;
46
47
bool
IsManaged
()
const
;
48
condformat::dialog::ScCondFormatDialogType
GetDialogType
()
const
;
49
sal_Int32
GetIndex
()
const
;
50
51
void
SetDialogType
(
condformat::dialog::ScCondFormatDialogType
eType);
52
53
ScConditionalFormatList
*
GetConditionalFormatList
();
54
55
private
:
56
std::shared_ptr<ScConditionalFormatList>
mpCondFormats
;
57
sal_Int32
mnItem
;
58
condformat::dialog::ScCondFormatDialogType
meDialogType
;
59
bool
mbManaged
;
60
};
61
62
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
ScCondFormatDlgItem
Definition:
condformatdlgitem.hxx:32
ScCondFormatDlgItem::Clone
virtual ScCondFormatDlgItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition:
condformatdlgitem.cxx:36
ScCondFormatDlgItem::~ScCondFormatDlgItem
virtual ~ScCondFormatDlgItem() override
Definition:
condformatdlgitem.cxx:26
ScCondFormatDlgItem::meDialogType
condformat::dialog::ScCondFormatDialogType meDialogType
Definition:
condformatdlgitem.hxx:58
ScCondFormatDlgItem::GetIndex
sal_Int32 GetIndex() const
Definition:
condformatdlgitem.cxx:51
ScCondFormatDlgItem::operator=
ScCondFormatDlgItem & operator=(ScCondFormatDlgItem const &)=delete
ScCondFormatDlgItem::operator==
virtual bool operator==(const SfxPoolItem &) const override
Definition:
condformatdlgitem.cxx:30
ScCondFormatDlgItem::mpCondFormats
std::shared_ptr< ScConditionalFormatList > mpCondFormats
Definition:
condformatdlgitem.hxx:56
ScCondFormatDlgItem::ScCondFormatDlgItem
ScCondFormatDlgItem(ScCondFormatDlgItem const &)=default
ScCondFormatDlgItem::IsManaged
bool IsManaged() const
Definition:
condformatdlgitem.cxx:41
ScCondFormatDlgItem::ScCondFormatDlgItem
ScCondFormatDlgItem(ScCondFormatDlgItem &&)=default
ScCondFormatDlgItem::mbManaged
bool mbManaged
Definition:
condformatdlgitem.hxx:59
ScCondFormatDlgItem::operator=
ScCondFormatDlgItem & operator=(ScCondFormatDlgItem &&)=delete
ScCondFormatDlgItem::SetDialogType
void SetDialogType(condformat::dialog::ScCondFormatDialogType eType)
Definition:
condformatdlgitem.cxx:61
ScCondFormatDlgItem::ScCondFormatDlgItem
ScCondFormatDlgItem(std::shared_ptr< ScConditionalFormatList > pCondFormats, sal_Int32 nItem, bool bManaged)
Definition:
condformatdlgitem.cxx:16
ScCondFormatDlgItem::GetConditionalFormatList
ScConditionalFormatList * GetConditionalFormatList()
Definition:
condformatdlgitem.cxx:56
ScCondFormatDlgItem::mnItem
sal_Int32 mnItem
Definition:
condformatdlgitem.hxx:57
ScCondFormatDlgItem::GetDialogType
condformat::dialog::ScCondFormatDialogType GetDialogType() const
Definition:
condformatdlgitem.cxx:46
ScConditionalFormatList
Definition:
conditio.hxx:628
SfxPoolItem
condformat::dialog
Definition:
condformatdlgitem.hxx:17
condformat::dialog::ScCondFormatDialogType
ScCondFormatDialogType
Definition:
condformatdlgitem.hxx:19
condformat::dialog::CONDITION
@ CONDITION
Definition:
condformatdlgitem.hxx:21
condformat::dialog::NONE
@ NONE
Definition:
condformatdlgitem.hxx:20
condformat::dialog::ICONSET
@ ICONSET
Definition:
condformatdlgitem.hxx:24
condformat::dialog::COLORSCALE
@ COLORSCALE
Definition:
condformatdlgitem.hxx:22
condformat::dialog::DATE
@ DATE
Definition:
condformatdlgitem.hxx:25
condformat::dialog::DATABAR
@ DATABAR
Definition:
condformatdlgitem.hxx:23
poolitem.hxx
SfxItemPool
Generated on Sun Jul 30 2023 04:29:19 for LibreOffice Module sc (master) by
1.9.3