LibreOffice Module sc (master)
1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
#ifndef INCLUDED_SC_SOURCE_UI_INC_CONDFORMATDLGITEM_HXX
11
#define INCLUDED_SC_SOURCE_UI_INC_CONDFORMATDLGITEM_HXX
12
13
#include <
svl/poolitem.hxx
>
14
15
#include <memory>
16
17
namespace
condformat::dialog
18
{
19
enum
ScCondFormatDialogType
20
{
21
NONE
,
22
CONDITION
,
23
COLORSCALE
,
24
DATABAR
,
25
ICONSET
,
26
DATE
27
};
28
}
29
30
class
ScConditionalFormatList
;
31
32
class
ScCondFormatDlgItem
:
public
SfxPoolItem
33
{
34
public
:
35
ScCondFormatDlgItem
(std::shared_ptr<ScConditionalFormatList> pCondFormats, sal_Int32 nItem,
36
bool
bManaged);
37
38
virtual
~ScCondFormatDlgItem
()
override
;
39
40
ScCondFormatDlgItem
(
ScCondFormatDlgItem
const
&) =
default
;
41
ScCondFormatDlgItem
(
ScCondFormatDlgItem
&&) =
default
;
42
ScCondFormatDlgItem
&
operator=
(
ScCondFormatDlgItem
const
&) =
delete
;
// due to SfxPoolItem
43
ScCondFormatDlgItem
&
operator=
(
ScCondFormatDlgItem
&&) =
delete
;
// due to SfxPoolItem
44
45
virtual
bool
operator==
(
const
SfxPoolItem
&)
const override
;
46
virtual
ScCondFormatDlgItem
*
Clone
(
SfxItemPool
* pPool =
nullptr
)
const override
;
47
48
bool
IsManaged
()
const
;
49
condformat::dialog::ScCondFormatDialogType
GetDialogType
()
const
;
50
sal_Int32
GetIndex
()
const
;
51
52
void
SetDialogType
(
condformat::dialog::ScCondFormatDialogType
eType
);
53
54
ScConditionalFormatList
*
GetConditionalFormatList
();
55
56
private
:
57
std::shared_ptr<ScConditionalFormatList>
mpCondFormats
;
58
sal_Int32
mnItem
;
59
condformat::dialog::ScCondFormatDialogType
meDialogType
;
60
bool
mbManaged
;
61
};
62
63
#endif
64
65
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
condformat::dialog::DATE
Definition:
condformatdlgitem.hxx:26
ScCondFormatDlgItem::~ScCondFormatDlgItem
virtual ~ScCondFormatDlgItem() override
Definition:
condformatdlgitem.cxx:26
ScCondFormatDlgItem::mnItem
sal_Int32 mnItem
Definition:
condformatdlgitem.hxx:58
ScCondFormatDlgItem::GetDialogType
condformat::dialog::ScCondFormatDialogType GetDialogType() const
Definition:
condformatdlgitem.cxx:46
condformat::dialog::COLORSCALE
Definition:
condformatdlgitem.hxx:23
condformat::dialog::NONE
Definition:
condformatdlgitem.hxx:21
SfxItemPool
ScCondFormatDlgItem::GetConditionalFormatList
ScConditionalFormatList * GetConditionalFormatList()
Definition:
condformatdlgitem.cxx:56
condformat::dialog::ScCondFormatDialogType
ScCondFormatDialogType
Definition:
condformatdlgitem.hxx:19
ScCondFormatDlgItem::IsManaged
bool IsManaged() const
Definition:
condformatdlgitem.cxx:41
ScConditionalFormatList
Definition:
conditio.hxx:626
eType
DocumentType eType
ScCondFormatDlgItem::meDialogType
condformat::dialog::ScCondFormatDialogType meDialogType
Definition:
condformatdlgitem.hxx:59
condformat::dialog::DATABAR
Definition:
condformatdlgitem.hxx:24
ScCondFormatDlgItem::operator==
virtual bool operator==(const SfxPoolItem &) const override
Definition:
condformatdlgitem.cxx:30
condformat::dialog
Definition:
condformatdlgitem.hxx:17
poolitem.hxx
condformat::dialog::ICONSET
Definition:
condformatdlgitem.hxx:25
SfxPoolItem
ScCondFormatDlgItem::GetIndex
sal_Int32 GetIndex() const
Definition:
condformatdlgitem.cxx:51
ScCondFormatDlgItem::Clone
virtual ScCondFormatDlgItem * Clone(SfxItemPool *pPool=nullptr) const override
Definition:
condformatdlgitem.cxx:36
ScCondFormatDlgItem::mpCondFormats
std::shared_ptr< ScConditionalFormatList > mpCondFormats
Definition:
condformatdlgitem.hxx:57
ScCondFormatDlgItem::ScCondFormatDlgItem
ScCondFormatDlgItem(std::shared_ptr< ScConditionalFormatList > pCondFormats, sal_Int32 nItem, bool bManaged)
Definition:
condformatdlgitem.cxx:16
ScCondFormatDlgItem::SetDialogType
void SetDialogType(condformat::dialog::ScCondFormatDialogType eType)
Definition:
condformatdlgitem.cxx:61
ScCondFormatDlgItem::operator=
ScCondFormatDlgItem & operator=(ScCondFormatDlgItem const &)=delete
ScCondFormatDlgItem::mbManaged
bool mbManaged
Definition:
condformatdlgitem.hxx:60
condformat::dialog::CONDITION
Definition:
condformatdlgitem.hxx:22
ScCondFormatDlgItem
Definition:
condformatdlgitem.hxx:32
Generated on Thu Jan 21 2021 08:28:34 for LibreOffice Module sc (master) by
1.8.10