Coverage Report

Created: 2026-09-28 10:59

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/vcl/source/treelist/viewdataentry.cxx
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
 * This file incorporates work covered by the following license notice:
10
 *
11
 *   Licensed to the Apache Software Foundation (ASF) under one or more
12
 *   contributor license agreements. See the NOTICE file distributed
13
 *   with this work for additional information regarding copyright
14
 *   ownership. The ASF licenses this file to you under the Apache
15
 *   License, Version 2.0 (the "License"); you may not use this file
16
 *   except in compliance with the License. You may obtain a copy of
17
 *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
18
 */
19
20
#include <vcl/toolkit/viewdataentry.hxx>
21
22
SvViewDataEntry::SvViewDataEntry() :
23
0
    nVisPos(0),
24
0
    mbSelected(false),
25
0
    mbHighlighted(false),
26
0
    mbExpanded(false),
27
0
    mbFocused(false),
28
0
    mbSelectable(true),
29
0
    mbDragTarget(false)
30
0
{
31
0
}
32
33
SvViewDataEntry::~SvViewDataEntry()
34
0
{
35
#ifdef DBG_UTIL
36
    nVisPos = 0x12345678;
37
#endif
38
0
}
39
40
void SvViewDataEntry::SetFocus( bool bFocus )
41
0
{
42
0
    mbFocused = bFocus;
43
0
}
44
45
void SvViewDataEntry::SetSelected( bool bSelected )
46
0
{
47
0
    mbSelected = bSelected;
48
0
    mbHighlighted = bSelected;
49
0
}
50
51
void SvViewDataEntry::SetExpanded( bool bExpanded )
52
0
{
53
0
    mbExpanded = bExpanded;
54
0
}
55
56
void SvViewDataEntry::SetSelectable( bool bSelectable )
57
0
{
58
0
    mbSelectable = bSelectable;
59
0
}
60
61
void SvViewDataEntry::Init(size_t nSize)
62
0
{
63
0
    maItems.resize(nSize);
64
0
}
65
66
const SvViewDataItem& SvViewDataEntry::GetItem(size_t nPos) const
67
0
{
68
0
    return maItems[nPos];
69
0
}
70
71
SvViewDataItem& SvViewDataEntry::GetItem(size_t nPos)
72
0
{
73
0
    return maItems[nPos];
74
0
}
75
76
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */