bump product version to 6.3.0.0.beta1
[LibreOffice.git] / svl / source / items / int64item.cxx
blobc32794a359ff48f880ab705bcfdbf07a21998c20
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 #include <svl/int64item.hxx>
11 #include <tools/stream.hxx>
13 SfxInt64Item::SfxInt64Item( sal_uInt16 nWhich, sal_Int64 nVal ) :
14 SfxPoolItem(nWhich), mnValue(nVal)
18 SfxInt64Item::~SfxInt64Item() {}
20 bool SfxInt64Item::operator== ( const SfxPoolItem& rItem ) const
22 return mnValue == static_cast<const SfxInt64Item&>(rItem).mnValue;
25 bool SfxInt64Item::GetPresentation(
26 SfxItemPresentation, MapUnit, MapUnit, OUString& rText,
27 const IntlWrapper& /*rIntlWrapper*/ ) const
29 rText = OUString::number(mnValue);
30 return true;
33 bool SfxInt64Item::QueryValue(
34 css::uno::Any& rVal, sal_uInt8 /*nMemberId*/ ) const
36 rVal <<= mnValue;
37 return true;
40 bool SfxInt64Item::PutValue(
41 const css::uno::Any& rVal, sal_uInt8 /*nMemberId*/ )
43 sal_Int64 nVal;
45 if (rVal >>= nVal)
47 mnValue = nVal;
48 return true;
51 return false;
54 SfxPoolItem* SfxInt64Item::Clone( SfxItemPool* /*pOther*/ ) const
56 return new SfxInt64Item(*this);
60 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */