LCOV - code coverage report
Current view: top level - sw/source/core/inc - DocumentDrawModelManager.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 1 1 100.0 %
Date: 2014-11-03 Functions: 2 2 100.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 INCLUDED_SW_SOURCE_CORE_INC_DOCUMENTDRAWMODELMANAGER_HXX
      21             : #define INCLUDED_SW_SOURCE_CORE_INC_DOCUMENTDRAWMODELMANAGER_HXX
      22             : 
      23             : #include <sal/types.h>
      24             : #include <IDocumentDrawModelAccess.hxx>
      25             : #include <boost/utility.hpp>
      26             : #include <svx/svdtypes.hxx>
      27             : 
      28             : class SwDrawModel;
      29             : class SdrPageView;
      30             : class SwDoc;
      31             : 
      32             : namespace sw
      33             : {
      34             : 
      35             : class DocumentDrawModelManager : public IDocumentDrawModelAccess,
      36             :                                  public ::boost::noncopyable
      37             : {
      38             : public:
      39             : 
      40             :     DocumentDrawModelManager( SwDoc& i_rSwdoc );
      41             : 
      42             :     void InitDrawModel();
      43             :     void ReleaseDrawModel();
      44             :     void DrawNotifyUndoHdl();
      45             : 
      46             :     //IDocumentDrawModelAccess
      47             :     virtual const SwDrawModel* GetDrawModel() const SAL_OVERRIDE;
      48             :     virtual SwDrawModel* GetDrawModel() SAL_OVERRIDE;
      49             :     virtual SwDrawModel* _MakeDrawModel() SAL_OVERRIDE;
      50             :     virtual SwDrawModel* GetOrCreateDrawModel() SAL_OVERRIDE;
      51             :     virtual SdrLayerID GetHeavenId() const SAL_OVERRIDE;
      52             :     virtual SdrLayerID GetHellId() const SAL_OVERRIDE;
      53             :     virtual SdrLayerID GetControlsId() const SAL_OVERRIDE;
      54             :     virtual SdrLayerID GetInvisibleHeavenId() const SAL_OVERRIDE;
      55             :     virtual SdrLayerID GetInvisibleHellId() const SAL_OVERRIDE;
      56             :     virtual SdrLayerID GetInvisibleControlsId() const SAL_OVERRIDE;
      57             : 
      58             :     virtual void NotifyInvisibleLayers( SdrPageView& _rSdrPageView ) SAL_OVERRIDE;
      59             : 
      60             :     virtual bool IsVisibleLayerId( const SdrLayerID& _nLayerId ) const SAL_OVERRIDE;
      61             : 
      62             :     virtual SdrLayerID GetVisibleLayerIdByInvisibleOne( const SdrLayerID& _nInvisibleLayerId ) SAL_OVERRIDE;
      63             : 
      64             :     virtual SdrLayerID GetInvisibleLayerIdByVisibleOne( const SdrLayerID& _nVisibleLayerId ) SAL_OVERRIDE;
      65             : 
      66       10090 :     virtual ~DocumentDrawModelManager() {}
      67             : 
      68             : private:
      69             : 
      70             :     SwDoc& m_rSwdoc;
      71             : 
      72             : 
      73             :     SwDrawModel* mpDrawModel;
      74             : 
      75             :     /** Draw Model Layer IDs
      76             :      * LayerIds, Heaven == above document
      77             :      *           Hell   == below document
      78             :      *         Controls == at the very top
      79             :      */
      80             :     SdrLayerID mnHeaven;
      81             :     SdrLayerID mnHell;
      82             :     SdrLayerID mnControls;
      83             :     SdrLayerID mnInvisibleHeaven;
      84             :     SdrLayerID mnInvisibleHell;
      85             :     SdrLayerID mnInvisibleControls;
      86             : };
      87             : 
      88             : }
      89             : 
      90             : #endif
      91             : 
      92             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10