LibreOffice Module svl (master) 1
int64item.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_SVL_INT64ITEM_HXX
11#define INCLUDED_SVL_INT64ITEM_HXX
12
13#include <svl/poolitem.hxx>
14#include <svl/svldllapi.h>
15
17{
18 sal_Int64 mnValue;
19
20public:
21 SfxInt64Item( sal_uInt16 nWhich, sal_Int64 nVal );
22
23 virtual ~SfxInt64Item() override;
24
25 SfxInt64Item(SfxInt64Item const &) = default;
27 SfxInt64Item & operator =(SfxInt64Item const &) = delete; // due to SfxPoolItem;
28 SfxInt64Item & operator =(SfxInt64Item &&) = delete; // due to SfxPoolItem
29
30 virtual bool operator== ( const SfxPoolItem& rItem ) const override;
31
32 virtual bool GetPresentation(
34 OUString& rText, const IntlWrapper& rIntlWrapper ) const override;
35
36 virtual bool QueryValue(
37 css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
38
39 virtual bool PutValue(
40 const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
41
42 virtual SfxInt64Item* Clone( SfxItemPool* pOther = nullptr ) const override;
43
44 sal_Int64 GetValue() const { return mnValue;}
45
46};
47
48
49#endif
50
51/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SfxInt64Item(SfxInt64Item const &)=default
sal_Int64 mnValue
Definition: int64item.hxx:18
SfxInt64Item(SfxInt64Item &&)=default
sal_Int64 GetValue() const
Definition: int64item.hxx:44
Base class for providers of defaults of SfxPoolItems.
Definition: itempool.hxx:51
virtual bool QueryValue(css::uno::Any &rVal, sal_uInt8 nMemberId=0) const
Definition: poolitem.cxx:604
virtual bool GetPresentation(SfxItemPresentation ePresentation, MapUnit eCoreMetric, MapUnit ePresentationMetric, OUString &rText, const IntlWrapper &rIntlWrapper) const
This virtual method allows to get a textual representation of the value for the SfxPoolItem subclasse...
Definition: poolitem.cxx:524
virtual bool operator==(const SfxPoolItem &) const =0
Definition: poolitem.cxx:478
virtual bool PutValue(const css::uno::Any &rVal, sal_uInt8 nMemberId)
Definition: poolitem.cxx:610
SfxPoolItem & operator=(const SfxPoolItem &)=delete
virtual SfxPoolItem * Clone(SfxItemPool *pPool=nullptr) const =0
MapUnit
SfxItemPresentation
Definition: poolitem.hxx:72
const double mnValue
#define SVL_DLLPUBLIC
Definition: svldllapi.h:28
unsigned char sal_uInt8