nss: upgrade to release 3.73
[LibreOffice.git] / sc / source / ui / inc / condformatdlgitem.hxx
blob1d0ba356382b4d7fcac08416a6ee7e40b4304b7a
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #ifndef INCLUDED_SC_SOURCE_UI_INC_CONDFORMATDLGITEM_HXX
11 #define INCLUDED_SC_SOURCE_UI_INC_CONDFORMATDLGITEM_HXX
13 #include <svl/poolitem.hxx>
15 #include <memory>
17 namespace condformat::dialog
19 enum ScCondFormatDialogType
21 NONE,
22 CONDITION,
23 COLORSCALE,
24 DATABAR,
25 ICONSET,
26 DATE
30 class ScConditionalFormatList;
32 class ScCondFormatDlgItem : public SfxPoolItem
34 public:
35 ScCondFormatDlgItem(std::shared_ptr<ScConditionalFormatList> pCondFormats, sal_Int32 nItem,
36 bool bManaged);
38 virtual ~ScCondFormatDlgItem() override;
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
45 virtual bool operator==(const SfxPoolItem&) const override;
46 virtual ScCondFormatDlgItem* Clone(SfxItemPool* pPool = nullptr) const override;
48 bool IsManaged() const;
49 condformat::dialog::ScCondFormatDialogType GetDialogType() const;
50 sal_Int32 GetIndex() const;
52 void SetDialogType(condformat::dialog::ScCondFormatDialogType eType);
54 ScConditionalFormatList* GetConditionalFormatList();
56 private:
57 std::shared_ptr<ScConditionalFormatList> mpCondFormats;
58 sal_Int32 mnItem;
59 condformat::dialog::ScCondFormatDialogType meDialogType;
60 bool mbManaged;
63 #endif
65 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */