Coverage Report

Created: 2026-06-30 11:14

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/libreoffice/svx/source/sdr/contact/displayinfo.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 <svx/sdr/contact/displayinfo.hxx>
21
22
23
namespace sdr::contact
24
{
25
        DisplayInfo::DisplayInfo()
26
172k
        :   maProcessLayers(true), // init layer info with all bits set to draw everything on default
27
172k
            mbControlLayerProcessingActive(false),
28
172k
            mbGhostedDrawModeActive(false),
29
172k
            mbSubContentActive(false)
30
172k
        {
31
172k
        }
32
33
        // Access to LayerInfos (which layers to process)
34
        void DisplayInfo::SetProcessLayers(const SdrLayerIDSet& rSet)
35
171k
        {
36
171k
            maProcessLayers = rSet;
37
171k
        }
38
39
        // access to RedrawArea
40
        void DisplayInfo::SetRedrawArea(const vcl::Region& rRegion)
41
171k
        {
42
171k
            maRedrawArea = rRegion;
43
171k
        }
44
45
        void DisplayInfo::SetWriterPageFrame(basegfx::B2IRectangle const& rPageFrame)
46
115k
        {
47
115k
            m_WriterPageFrame = rPageFrame;
48
115k
        }
49
50
        void DisplayInfo::SetControlLayerProcessingActive(bool bDoProcess)
51
171k
        {
52
171k
            if(mbControlLayerProcessingActive != bDoProcess)
53
56.8k
            {
54
56.8k
                mbControlLayerProcessingActive = bDoProcess;
55
56.8k
            }
56
171k
        }
57
58
        void DisplayInfo::ClearGhostedDrawMode()
59
174k
        {
60
174k
            mbGhostedDrawModeActive = false;
61
174k
        }
62
63
        void DisplayInfo::SetGhostedDrawMode()
64
173k
        {
65
173k
            mbGhostedDrawModeActive = true;
66
173k
        }
67
68
        void DisplayInfo::SetSubContentActive(bool bNew)
69
0
        {
70
0
            if(mbSubContentActive != bNew)
71
0
            {
72
0
                mbSubContentActive = bNew;
73
0
            }
74
0
        }
75
76
} // end of namespace
77
78
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */