LibreOffice Module sc (master)  1
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 
20 {
27 };
28 
29 }
30 
32 
34 {
35 public:
36 
37  ScCondFormatDlgItem(std::shared_ptr<ScConditionalFormatList> pCondFormats, sal_Int32 nItem, bool bManaged);
38 
39  virtual ~ScCondFormatDlgItem() override;
40 
41  ScCondFormatDlgItem(ScCondFormatDlgItem const &) = default;
43  ScCondFormatDlgItem & operator =(ScCondFormatDlgItem const &) = delete; // due to SfxPoolItem
44  ScCondFormatDlgItem & operator =(ScCondFormatDlgItem &&) = delete; // due to SfxPoolItem
45 
46  virtual bool operator==(const SfxPoolItem&) const override;
47  virtual ScCondFormatDlgItem* Clone(SfxItemPool* pPool = nullptr) const override;
48 
49  bool IsManaged() const;
51  sal_Int32 GetIndex() const;
52 
54 
56 
57 private:
58 
59  std::shared_ptr<ScConditionalFormatList> mpCondFormats;
60  sal_Int32 mnItem;
62  bool mbManaged;
63 };
64 
65 #endif
66 
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual ~ScCondFormatDlgItem() override
condformat::dialog::ScCondFormatDialogType GetDialogType() const
ScConditionalFormatList * GetConditionalFormatList()
DocumentType eType
condformat::dialog::ScCondFormatDialogType meDialogType
virtual bool operator==(const SfxPoolItem &) const override
sal_Int32 GetIndex() const
virtual ScCondFormatDlgItem * Clone(SfxItemPool *pPool=nullptr) const override
std::shared_ptr< ScConditionalFormatList > mpCondFormats
ScCondFormatDlgItem(std::shared_ptr< ScConditionalFormatList > pCondFormats, sal_Int32 nItem, bool bManaged)
void SetDialogType(condformat::dialog::ScCondFormatDialogType eType)
ScCondFormatDlgItem & operator=(ScCondFormatDlgItem const &)=delete