Line data Source code
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 :
16 : class SVL_DLLPUBLIC SfxInt64Item : public SfxPoolItem
17 : {
18 : sal_Int64 mnValue;
19 :
20 : public:
21 : SfxInt64Item( sal_uInt16 nWhich = 0, sal_Int64 nVal = 0 );
22 : SfxInt64Item( sal_uInt16 nWhich, SvStream & rStream );
23 : SfxInt64Item( const SfxInt64Item& rItem );
24 :
25 : virtual ~SfxInt64Item();
26 :
27 : virtual bool operator== ( const SfxPoolItem& rItem ) const SAL_OVERRIDE;
28 :
29 : virtual int Compare( const SfxPoolItem& r ) const SAL_OVERRIDE;
30 : virtual int Compare( const SfxPoolItem& r, const IntlWrapper& rIntlWrapper ) const SAL_OVERRIDE;
31 :
32 : virtual bool GetPresentation(
33 : SfxItemPresentation, SfxMapUnit, SfxMapUnit,
34 : OUString& rText, const IntlWrapper* pIntlWrapper = NULL ) const SAL_OVERRIDE;
35 :
36 : virtual bool QueryValue(
37 : com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const SAL_OVERRIDE;
38 :
39 : virtual bool PutValue(
40 : const com::sun::star::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) SAL_OVERRIDE;
41 :
42 : virtual SfxPoolItem* Create( SvStream& rStream, sal_uInt16 nItemVersion ) const SAL_OVERRIDE;
43 :
44 : virtual SvStream& Store( SvStream& rStream, sal_uInt16 nItemVersion ) const SAL_OVERRIDE;
45 :
46 : virtual SfxPoolItem* Clone( SfxItemPool* pOther = NULL ) const SAL_OVERRIDE;
47 :
48 0 : sal_Int64 GetValue() const { return mnValue;}
49 :
50 : void SetValue( sal_Int64 nVal );
51 : };
52 :
53 :
54 : #endif
55 :
56 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|