LCOV - code coverage report
Current view: top level - sw/source/core/inc - DocumentDrawModelManager.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 1 1 100.0 %
Date: 2015-06-13 12:38:46 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             :     virtual bool Search(const SwPaM& rPaM, const SvxSearchItem& rSearchItem) SAL_OVERRIDE;
      67             : 
      68        5898 :     virtual ~DocumentDrawModelManager() {}
      69             : 
      70             : private:
      71             : 
      72             :     SwDoc& m_rDoc;
      73             : 
      74             : 
      75             :     SwDrawModel* mpDrawModel;
      76             : 
      77             :     /** Draw Model Layer IDs
      78             :      * LayerIds, Heaven == above document
      79             :      *           Hell   == below document
      80             :      *         Controls == at the very top
      81             :      */
      82             :     SdrLayerID mnHeaven;
      83             :     SdrLayerID mnHell;
      84             :     SdrLayerID mnControls;
      85             :     SdrLayerID mnInvisibleHeaven;
      86             :     SdrLayerID mnInvisibleHell;
      87             :     SdrLayerID mnInvisibleControls;
      88             : };
      89             : 
      90             : }
      91             : 
      92             : #endif
      93             : 
      94             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11