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/.
10 #ifndef INCLUDED_SVL_INT64ITEM_HXX
11 #define INCLUDED_SVL_INT64ITEM_HXX
13 #include <svl/poolitem.hxx>
14 #include <svl/svldllapi.h>
16 class SVL_DLLPUBLIC SfxInt64Item final
: public SfxPoolItem
21 SfxInt64Item( sal_uInt16 nWhich
, sal_Int64 nVal
);
23 virtual ~SfxInt64Item() override
;
25 SfxInt64Item(SfxInt64Item
const &) = default;
26 SfxInt64Item(SfxInt64Item
&&) = default;
27 SfxInt64Item
& operator =(SfxInt64Item
const &) = delete; // due to SfxPoolItem;
28 SfxInt64Item
& operator =(SfxInt64Item
&&) = delete; // due to SfxPoolItem
30 virtual bool operator== ( const SfxPoolItem
& rItem
) const override
;
32 virtual bool GetPresentation(
33 SfxItemPresentation
, MapUnit
, MapUnit
,
34 OUString
& rText
, const IntlWrapper
& rIntlWrapper
) const override
;
36 virtual bool QueryValue(
37 css::uno::Any
& rVal
, sal_uInt8 nMemberId
= 0 ) const override
;
39 virtual bool PutValue(
40 const css::uno::Any
& rVal
, sal_uInt8 nMemberId
) override
;
42 virtual SfxPoolItem
* Clone( SfxItemPool
* pOther
= nullptr ) const override
;
44 sal_Int64
GetValue() const { return mnValue
;}
51 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */