LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/svx/sdr/contact - displayinfo.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 1 0.0 %
Date: 2012-12-27 Functions: 0 1 0.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             : #ifndef _SDR_CONTACT_DISPLAYINFO_HXX
      21             : #define _SDR_CONTACT_DISPLAYINFO_HXX
      22             : 
      23             : #include <sal/types.h>
      24             : #include <svx/svdsob.hxx>
      25             : #include <svtools/colorcfg.hxx>
      26             : #include <vcl/region.hxx>
      27             : #include <vector>
      28             : #include "svx/svxdllapi.h"
      29             : 
      30             : //////////////////////////////////////////////////////////////////////////////
      31             : // predeclarations
      32             : 
      33             : class SdrPage;
      34             : 
      35             : namespace sdr { namespace contact {
      36             :     class ViewObjectContact;
      37             : }}
      38             : 
      39             : //////////////////////////////////////////////////////////////////////////////
      40             : 
      41             : namespace sdr
      42             : {
      43             :     namespace contact
      44             :     {
      45             :         class SVX_DLLPUBLIC DisplayInfo
      46             :         {
      47             :         protected:
      48             :             // The Layers which shall be processed (visible)
      49             :             SetOfByte                                       maProcessLayers;
      50             : 
      51             :             // The redraw area, in logical coordinates of OutputDevice. If Region
      52             :             // is empty, everything needs to be redrawn
      53             :             Region                                          maRedrawArea;
      54             : 
      55             :             // bitfield
      56             : 
      57             :             // Internal flag to know when the control layer is painted. Default is
      58             :             // false. If set to true, painting of the page, page borders and
      59             :             // the rasters will be suppressed as if mbPageProcessingActive is set (see there).
      60             :             // This flag is set internally from the processing mechanism to avoid double page
      61             :             // painting when the control layer needs to be painted as last layer
      62             :             unsigned                                        mbControlLayerProcessingActive : 1;
      63             : 
      64             :             // Internal flag to decide if page stuff (background, border, MasterPage, grid, etc...)
      65             :             // will be processed at all. This flag is user-defined and will not be changed from the
      66             :             // processing mechanism. Default is true, thus set to false if PagePainting should be suppressed.
      67             :             // For more granular switching page stuff painting on and off, use the according flags at the
      68             :             // view (->Is*Visible())
      69             :             unsigned                                        mbPageProcessingActive : 1;
      70             : 
      71             :             // Internal flag to remember if EnteredGroupDrawMode is active. Default is true
      72             :             // since this mode starts activated and gets switched off when reacing
      73             :             // the current group level. Should only be changed by instances which do
      74             :             // primitive processing
      75             :             unsigned                                        mbGhostedDrawModeActive : 1;
      76             : 
      77             :             // Internal flag to know if a MasterPage is processed as SubContent of another
      78             :             // page. Initialized to false, this should only be changed from the instance which
      79             :             // is processing the MasterPage asSubContent and knows what it does
      80             :             unsigned                                        mbSubContentActive : 1;
      81             : 
      82             :         public:
      83             :             // basic constructor.
      84             :             DisplayInfo();
      85             : 
      86             :             // destructor
      87             :             virtual ~DisplayInfo();
      88             : 
      89             :             // access to ProcessLayers
      90             :             void SetProcessLayers(const SetOfByte& rSet);
      91             :             const SetOfByte& GetProcessLayers() const { return maProcessLayers; }
      92             : 
      93             :             // access to RedrawArea
      94             :             void SetRedrawArea(const Region& rRegion);
      95             :             const Region& GetRedrawArea() const { return maRedrawArea; }
      96             : 
      97             :             // Access to ControlLayerProcessingActive flag
      98             :             void SetControlLayerProcessingActive(bool bDoPaint);
      99             :             bool GetControlLayerProcessingActive() const { return mbControlLayerProcessingActive; }
     100             : 
     101             :             // Access to PageProcessingActive flag
     102             :             void SetPageProcessingActive(bool bDoPaint);
     103             :             bool GetPageProcessingActive() const { return mbPageProcessingActive; }
     104             : 
     105             :             // Save the original DrawMode from outdev
     106             :             void ClearGhostedDrawMode();
     107             :             void SetGhostedDrawMode();
     108             :             bool IsGhostedDrawModeActive() const { return mbGhostedDrawModeActive; }
     109             : 
     110             :             // access to master page painting flag
     111           0 :             bool GetSubContentActive() const { return mbSubContentActive; }
     112             :             void SetSubContentActive(bool bNew);
     113             :         };
     114             :     } // end of namespace contact
     115             : } // end of namespace sdr
     116             : 
     117             : //////////////////////////////////////////////////////////////////////////////
     118             : 
     119             : #endif //_SDR_CONTACT_DISPLAYINFO_HXX
     120             : 
     121             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10