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#pragma once
11
12#include <svl/poolitem.hxx>
13
14#include <memory>
15
17{
19{
25 DATE
26};
27}
28
30
32{
33public:
34 ScCondFormatDlgItem(std::shared_ptr<ScConditionalFormatList> pCondFormats, sal_Int32 nItem,
35 bool bManaged);
36
37 virtual ~ScCondFormatDlgItem() override;
38
41 ScCondFormatDlgItem& operator=(ScCondFormatDlgItem const&) = delete; // due to SfxPoolItem
42 ScCondFormatDlgItem& operator=(ScCondFormatDlgItem&&) = delete; // due to SfxPoolItem
43
44 virtual bool operator==(const SfxPoolItem&) const override;
45 virtual ScCondFormatDlgItem* Clone(SfxItemPool* pPool = nullptr) const override;
46
47 bool IsManaged() const;
49 sal_Int32 GetIndex() const;
50
52
54
55private:
56 std::shared_ptr<ScConditionalFormatList> mpCondFormats;
57 sal_Int32 mnItem;
60};
61
62/* 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
ScCondFormatDlgItem & operator=(ScCondFormatDlgItem const &)=delete
virtual bool operator==(const SfxPoolItem &) const override
std::shared_ptr< ScConditionalFormatList > mpCondFormats
ScCondFormatDlgItem(ScCondFormatDlgItem const &)=default
ScCondFormatDlgItem(ScCondFormatDlgItem &&)=default
ScCondFormatDlgItem & operator=(ScCondFormatDlgItem &&)=delete
void SetDialogType(condformat::dialog::ScCondFormatDialogType eType)
ScCondFormatDlgItem(std::shared_ptr< ScConditionalFormatList > pCondFormats, sal_Int32 nItem, bool bManaged)
ScConditionalFormatList * GetConditionalFormatList()
condformat::dialog::ScCondFormatDialogType GetDialogType() const