Bump version to 6.4-15
[LibreOffice.git] / include / svl / int64item.hxx
blobb4f30d9b33374acec3ecf38696e016b436fd8060
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 final : public SfxPoolItem
18 sal_Int64 mnValue;
20 public:
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;}
49 #endif
51 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */