LibreOffice Module sc (master) 1
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
16ScCondFormatDlgItem::ScCondFormatDlgItem(std::shared_ptr<ScConditionalFormatList> pCondFormats,
17 sal_Int32 nItem, bool bManaged):
19 mpCondFormats(std::move(pCondFormats)),
20 mnItem(nItem),
21 meDialogType(condformat::dialog::CONDITION),
22 mbManaged(bManaged)
23{
24}
25
27{
28}
29
31{
32 assert(SfxPoolItem::operator==(rItem)); (void)rItem;
33 return false;
34}
35
37{
38 return new ScCondFormatDlgItem(*this);
39}
40
42{
43 return mbManaged;
44}
45
47{
48 return meDialogType;
49}
50
52{
53 return mnItem;
54}
55
57{
58 return mpCondFormats.get();
59}
60
62{
64}
65
66/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ScCondFormatDlgItem * Clone(SfxItemPool *pPool=nullptr) const override
virtual ~ScCondFormatDlgItem() override
condformat::dialog::ScCondFormatDialogType meDialogType
sal_Int32 GetIndex() const
virtual bool operator==(const SfxPoolItem &) const override
std::shared_ptr< ScConditionalFormatList > mpCondFormats
void SetDialogType(condformat::dialog::ScCondFormatDialogType eType)
ScCondFormatDlgItem(std::shared_ptr< ScConditionalFormatList > pCondFormats, sal_Int32 nItem, bool bManaged)
ScConditionalFormatList * GetConditionalFormatList()
condformat::dialog::ScCondFormatDialogType GetDialogType() const
@ CONDITION
DocumentType eType
#define SCITEM_CONDFORMATDLGDATA
Definition: scitems.hxx:97