Coverage Report

Created: 2026-09-28 10:59

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/include/svl/int64item.hxx
Line
Count
Source
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 final : public SfxPoolItem
17
{
18
    sal_Int64 mnValue;
19
20
public:
21
    DECLARE_ITEM_TYPE_FUNCTION(SfxInt64Item)
22
    SfxInt64Item( sal_uInt16 nWhich, sal_Int64 nVal );
23
24
    virtual ~SfxInt64Item() override;
25
26
0
    SfxInt64Item(SfxInt64Item const &) = default;
27
    SfxInt64Item(SfxInt64Item &&) = default;
28
    SfxInt64Item & operator =(SfxInt64Item const &) = delete; // due to SfxPoolItem;
29
    SfxInt64Item & operator =(SfxInt64Item &&) = delete; // due to SfxPoolItem
30
31
    virtual bool operator== ( const SfxPoolItem& rItem ) const override;
32
33
    virtual bool GetPresentation(
34
        SfxItemPresentation, MapUnit, MapUnit,
35
        OUString& rText, const IntlWrapper& rIntlWrapper ) const override;
36
37
    virtual bool QueryValue(
38
        css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
39
40
    virtual bool PutValue(
41
        const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
42
43
    virtual SfxInt64Item* Clone( SfxItemPool* pOther = nullptr ) const override;
44
45
0
    sal_Int64 GetValue() const { return mnValue;}
46
47
};
48
49
50
#endif
51
52
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */