LibreOffice Module sc (master)
1
sc
source
ui
condformat
condformatdlgitem.cxx
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
11
#include <utility>
12
13
#include <
scitems.hxx
>
14
#include <
condformatdlgitem.hxx
>
15
16
ScCondFormatDlgItem::ScCondFormatDlgItem
(std::shared_ptr<ScConditionalFormatList> pCondFormats,
17
sal_Int32 nItem,
bool
bManaged):
18
SfxPoolItem
(
SCITEM_CONDFORMATDLGDATA
),
19
mpCondFormats(
std
::move(pCondFormats)),
20
mnItem(nItem),
21
meDialogType(
condformat
::dialog::
CONDITION
),
22
mbManaged(bManaged)
23
{
24
}
25
26
ScCondFormatDlgItem::~ScCondFormatDlgItem
()
27
{
28
}
29
30
bool
ScCondFormatDlgItem::operator==
(
const
SfxPoolItem
& rItem)
const
31
{
32
assert(SfxPoolItem::operator==(rItem)); (void)rItem;
33
return
false
;
34
}
35
36
ScCondFormatDlgItem
*
ScCondFormatDlgItem::Clone
(
SfxItemPool
*
/*pPool*/
)
const
37
{
38
return
new
ScCondFormatDlgItem
(*
this
);
39
}
40
41
bool
ScCondFormatDlgItem::IsManaged
()
const
42
{
43
return
mbManaged
;
44
}
45
46
condformat::dialog::ScCondFormatDialogType
ScCondFormatDlgItem::GetDialogType
()
const
47
{
48
return
meDialogType
;
49
}
50
51
sal_Int32
ScCondFormatDlgItem::GetIndex
()
const
52
{
53
return
mnItem
;
54
}
55
56
ScConditionalFormatList
*
ScCondFormatDlgItem::GetConditionalFormatList
()
57
{
58
return
mpCondFormats
.get();
59
}
60
61
void
ScCondFormatDlgItem::SetDialogType
(
condformat::dialog::ScCondFormatDialogType
eType)
62
{
63
meDialogType
=
eType
;
64
}
65
66
/* 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==
virtual bool operator==(const SfxPoolItem &) const override
Definition:
condformatdlgitem.cxx:30
ScCondFormatDlgItem::mpCondFormats
std::shared_ptr< ScConditionalFormatList > mpCondFormats
Definition:
condformatdlgitem.hxx:56
ScCondFormatDlgItem::IsManaged
bool IsManaged() const
Definition:
condformatdlgitem.cxx:41
ScCondFormatDlgItem::mbManaged
bool mbManaged
Definition:
condformatdlgitem.hxx:59
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
condformatdlgitem.hxx
CONDITION
@ CONDITION
Definition:
condformathelper.hxx:19
eType
DocumentType eType
condformat::dialog::ScCondFormatDialogType
ScCondFormatDialogType
Definition:
condformatdlgitem.hxx:19
condformat
Definition:
condformatdlgentry.hxx:27
std
scitems.hxx
SCITEM_CONDFORMATDLGDATA
#define SCITEM_CONDFORMATDLGDATA
Definition:
scitems.hxx:97
SfxItemPool
Generated on Sun Jul 30 2023 04:29:10 for LibreOffice Module sc (master) by
1.9.3