1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
10 #ifndef INCLUDED_SC_SOURCE_UI_INC_CONDFORMATDLGITEM_HXX
11 #define INCLUDED_SC_SOURCE_UI_INC_CONDFORMATDLGITEM_HXX
13 #include <svl/poolitem.hxx>
17 namespace condformat
{
21 enum ScCondFormatDialogType
35 class ScConditionalFormatList
;
37 class ScCondFormatDlgItem
: public SfxPoolItem
41 ScCondFormatDlgItem();
42 ScCondFormatDlgItem(std::shared_ptr
<ScConditionalFormatList
> pCondFormats
, sal_Int32 nItem
, bool bManaged
);
44 virtual ~ScCondFormatDlgItem() override
;
46 virtual bool operator==(const SfxPoolItem
&) const override
;
47 virtual SfxPoolItem
* Clone(SfxItemPool
* pPool
= nullptr) const override
;
48 virtual SfxPoolItem
* Create(SvStream
& rStream
, sal_uInt16 nVer
) const override
;
50 bool IsManaged() const;
51 condformat::dialog::ScCondFormatDialogType
GetDialogType() const;
52 sal_Int32
GetIndex() const;
54 void SetDialogType(condformat::dialog::ScCondFormatDialogType eType
);
56 ScConditionalFormatList
* GetConditionalFormatList();
60 std::shared_ptr
<ScConditionalFormatList
> mpCondFormats
;
62 condformat::dialog::ScCondFormatDialogType meDialogType
;
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */