LCOV - code coverage report
Current view: top level - libreoffice/svx/source/sdr/contact - displayinfo.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 25 29 86.2 %
Date: 2012-12-27 Functions: 8 10 80.0 %
Legend: Lines: hit not hit

          Line data    Source code
       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             : #include <vcl/outdev.hxx>
      22             : #include <vcl/svapp.hxx>
      23             : #include <svx/svdobj.hxx>
      24             : #include <vcl/gdimtf.hxx>
      25             : #include <svx/svdpagv.hxx>
      26             : #include <svx/svdview.hxx>
      27             : 
      28             : //////////////////////////////////////////////////////////////////////////////
      29             : 
      30             : namespace sdr
      31             : {
      32             :     namespace contact
      33             :     {
      34         869 :         DisplayInfo::DisplayInfo()
      35             :         :   maProcessLayers(true), // init layer info with all bits set to draw everything on default
      36             :             maRedrawArea(),
      37             :             mbControlLayerProcessingActive(false),
      38             :             mbPageProcessingActive(true),
      39             :             mbGhostedDrawModeActive(false),
      40         869 :             mbSubContentActive(false)
      41             :         {
      42         869 :         }
      43             : 
      44         869 :         DisplayInfo::~DisplayInfo()
      45             :         {
      46         869 :         }
      47             : 
      48             :         // Access to LayerInfos (which layers to proccess)
      49         816 :         void DisplayInfo::SetProcessLayers(const SetOfByte& rSet)
      50             :         {
      51         816 :             maProcessLayers = rSet;
      52         816 :         }
      53             : 
      54             :         // access to RedrawArea
      55         816 :         void DisplayInfo::SetRedrawArea(const Region& rRegion)
      56             :         {
      57         816 :             maRedrawArea = rRegion;
      58         816 :         }
      59             : 
      60         816 :         void DisplayInfo::SetControlLayerProcessingActive(bool bDoProcess)
      61             :         {
      62         816 :             if((bool)mbControlLayerProcessingActive != bDoProcess)
      63             :             {
      64         265 :                 mbControlLayerProcessingActive = bDoProcess;
      65             :             }
      66         816 :         }
      67             : 
      68         816 :         void DisplayInfo::SetPageProcessingActive(bool bDoProcess)
      69             :         {
      70         816 :             if((bool)mbPageProcessingActive != bDoProcess)
      71             :             {
      72         816 :                 mbPageProcessingActive = bDoProcess;
      73             :             }
      74         816 :         }
      75             : 
      76        1732 :         void DisplayInfo::ClearGhostedDrawMode()
      77             :         {
      78        1732 :             mbGhostedDrawModeActive = false;
      79        1732 :         }
      80             : 
      81        1632 :         void DisplayInfo::SetGhostedDrawMode()
      82             :         {
      83        1632 :             mbGhostedDrawModeActive = true;
      84        1632 :         }
      85             : 
      86           0 :         void DisplayInfo::SetSubContentActive(bool bNew)
      87             :         {
      88           0 :             if((bool)mbSubContentActive != bNew)
      89             :             {
      90           0 :                 mbSubContentActive = bNew;
      91             :             }
      92           0 :         }
      93             : 
      94             :     } // end of namespace contact
      95             : } // end of namespace sdr
      96             : 
      97             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10