LibreOffice Module svx (master) 1
statusitem.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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#pragma once
10
11#include <svl/stritem.hxx>
12#include <svx/svxdllapi.h>
13
14enum class StatusCategory : sal_Int16
15{
16 NONE,
18 Section,
20 Numbering,
22 Formula,
24};
25
27{
28private:
30
31public:
32 SvxStatusItem(TypedWhichId<SvxStatusItem> nWhich, const OUString& rString,
33 StatusCategory eStatusCategory);
34
35 StatusCategory GetCategory() const { return m_eCategory; }
36
37 virtual bool QueryValue(css::uno::Any& rVal, sal_uInt8 nMemberId = 0) const override;
38 virtual bool PutValue(const css::uno::Any& rVal, sal_uInt8 nMemberId) override;
39
40 virtual bool operator==(const SfxPoolItem& rItem) const override;
41 virtual SvxStatusItem* Clone(SfxItemPool* pPool = nullptr) const override;
42
43 static SfxPoolItem* CreateDefault();
44};
45
46/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
virtual bool operator==(const SfxPoolItem &rItem) const override
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId) override
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const override
virtual SfxStringItem * Clone(SfxItemPool *=nullptr) const override
static SfxPoolItem * CreateDefault()
StatusCategory m_eCategory
Definition: statusitem.hxx:29
StatusCategory GetCategory() const
Definition: statusitem.hxx:35
NONE
StatusCategory
Definition: statusitem.hxx:15
#define SVX_DLLPUBLIC
Definition: svxdllapi.h:28
unsigned char sal_uInt8