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/.
13 #include <scitems.hxx>
14 #include <condformatdlgitem.hxx>
16 ScCondFormatDlgItem::ScCondFormatDlgItem(std::shared_ptr
<ScConditionalFormatList
> pCondFormats
,
17 sal_Int32 nItem
, bool bManaged
):
18 SfxPoolItem(SCITEM_CONDFORMATDLGDATA
),
19 mpCondFormats(std::move(pCondFormats
)),
21 meDialogType(condformat::dialog::CONDITION
),
26 ScCondFormatDlgItem::~ScCondFormatDlgItem()
30 bool ScCondFormatDlgItem::operator==(const SfxPoolItem
& rItem
) const
32 assert(SfxPoolItem::operator==(rItem
)); (void)rItem
;
36 ScCondFormatDlgItem
* ScCondFormatDlgItem::Clone(SfxItemPool
* /*pPool*/) const
38 return new ScCondFormatDlgItem(*this);
41 bool ScCondFormatDlgItem::IsManaged() const
46 condformat::dialog::ScCondFormatDialogType
ScCondFormatDlgItem::GetDialogType() const
51 sal_Int32
ScCondFormatDlgItem::GetIndex() const
56 ScConditionalFormatList
* ScCondFormatDlgItem::GetConditionalFormatList()
58 return mpCondFormats
.get();
61 void ScCondFormatDlgItem::SetDialogType(condformat::dialog::ScCondFormatDialogType eType
)
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */