nss: upgrade to release 3.73
[LibreOffice.git] / sc / source / ui / condformat / condformatdlgitem.cxx
blobb0bf511c3b798ec548dbbfa4ae3225754dccd79a
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 */
11 #include <utility>
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)),
20 mnItem(nItem),
21 meDialogType(condformat::dialog::CONDITION),
22 mbManaged(bManaged)
26 ScCondFormatDlgItem::~ScCondFormatDlgItem()
30 bool ScCondFormatDlgItem::operator==(const SfxPoolItem& rItem) const
32 assert(SfxPoolItem::operator==(rItem)); (void)rItem;
33 return false;
36 ScCondFormatDlgItem* ScCondFormatDlgItem::Clone(SfxItemPool* /*pPool*/) const
38 return new ScCondFormatDlgItem(*this);
41 bool ScCondFormatDlgItem::IsManaged() const
43 return mbManaged;
46 condformat::dialog::ScCondFormatDialogType ScCondFormatDlgItem::GetDialogType() const
48 return meDialogType;
51 sal_Int32 ScCondFormatDlgItem::GetIndex() const
53 return mnItem;
56 ScConditionalFormatList* ScCondFormatDlgItem::GetConditionalFormatList()
58 return mpCondFormats.get();
61 void ScCondFormatDlgItem::SetDialogType(condformat::dialog::ScCondFormatDialogType eType)
63 meDialogType = eType;
66 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */