build fix
[LibreOffice.git] / include / svl / int64item.hxx
blob46a3325a2d4b0f288ac29657f3a920e580c2c16d
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 */
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 : public SfxPoolItem
18 sal_Int64 mnValue;
20 public:
21 SfxInt64Item( sal_uInt16 nWhich, sal_Int64 nVal );
22 SfxInt64Item( sal_uInt16 nWhich, SvStream & rStream );
23 SfxInt64Item( const SfxInt64Item& rItem );
25 virtual ~SfxInt64Item() override;
27 virtual bool operator== ( const SfxPoolItem& rItem ) const override;
29 virtual bool GetPresentation(
30 SfxItemPresentation, MapUnit, MapUnit,
31 OUString& rText, const IntlWrapper* pIntlWrapper = nullptr ) const override;
33 virtual bool QueryValue(
34 css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
36 virtual bool PutValue(
37 const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
39 virtual SfxPoolItem* Create( SvStream& rStream, sal_uInt16 nItemVersion ) const override;
41 virtual SvStream& Store( SvStream& rStream, sal_uInt16 nItemVersion ) const override;
43 virtual SfxPoolItem* Clone( SfxItemPool* pOther = nullptr ) const override;
45 sal_Int64 GetValue() const { return mnValue;}
50 #endif
52 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */