LibreOffice Module sw (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sw::DocumentDrawModelManager Class Reference

#include <DocumentDrawModelManager.hxx>

Inheritance diagram for sw::DocumentDrawModelManager:
[legend]
Collaboration diagram for sw::DocumentDrawModelManager:
[legend]

Public Member Functions

 DocumentDrawModelManager (SwDoc &i_rSwdoc)
 
void InitDrawModel ()
 
void ReleaseDrawModel ()
 
void DrawNotifyUndoHdl ()
 
virtual const SwDrawModelGetDrawModel () const override
 Draw Model and id accessors. More...
 
virtual SwDrawModelGetDrawModel () override
 
virtual SwDrawModelMakeDrawModel_ () override
 
virtual SwDrawModelGetOrCreateDrawModel () override
 
virtual SdrLayerID GetHeavenId () const override
 
virtual SdrLayerID GetHellId () const override
 
virtual SdrLayerID GetControlsId () const override
 
virtual SdrLayerID GetInvisibleHeavenId () const override
 
virtual SdrLayerID GetInvisibleHellId () const override
 
virtual SdrLayerID GetInvisibleControlsId () const override
 
virtual void NotifyInvisibleLayers (SdrPageView &_rSdrPageView) override
 method to notify drawing page view about the invisible layers More...
 
virtual bool IsVisibleLayerId (SdrLayerID _nLayerId) const override
 method to determine, if a layer ID belongs to the visible ones. More...
 
virtual SdrLayerID GetInvisibleLayerIdByVisibleOne (SdrLayerID _nVisibleLayerId) override
 method to determine, if the corresponding invisible layer ID for a visible one. More...
 
virtual bool Search (const SwPaM &rPaM, const SvxSearchItem &rSearchItem) override
 Searches text in shapes anchored inside rPaM. More...
 

Private Member Functions

 DocumentDrawModelManager (DocumentDrawModelManager const &)=delete
 
DocumentDrawModelManageroperator= (DocumentDrawModelManager const &)=delete
 

Private Attributes

SwDocm_rDoc
 
std::unique_ptr< SwDrawModelmpDrawModel
 
SdrLayerID mnHeaven
 Draw Model Layer IDs LayerIds, Heaven == above document Hell == below document Controls == at the very top. More...
 
SdrLayerID mnHell
 
SdrLayerID mnControls
 
SdrLayerID mnInvisibleHeaven
 
SdrLayerID mnInvisibleHell
 
SdrLayerID mnInvisibleControls
 

Additional Inherited Members

- Protected Member Functions inherited from IDocumentDrawModelAccess
virtual ~IDocumentDrawModelAccess ()
 

Detailed Description

Definition at line 34 of file DocumentDrawModelManager.hxx.

Constructor & Destructor Documentation

sw::DocumentDrawModelManager::DocumentDrawModelManager ( SwDoc i_rSwdoc)

Definition at line 54 of file DocumentDrawModelManager.cxx.

sw::DocumentDrawModelManager::DocumentDrawModelManager ( DocumentDrawModelManager const &  )
privatedelete

Member Function Documentation

void sw::DocumentDrawModelManager::DrawNotifyUndoHdl ( )

Definition at line 349 of file DocumentDrawModelManager.cxx.

References mpDrawModel.

Referenced by SwDoc::ClearDoc(), and SwDoc::~SwDoc().

SdrLayerID sw::DocumentDrawModelManager::GetControlsId ( ) const
overridevirtual

Implements IDocumentDrawModelAccess.

Definition at line 206 of file DocumentDrawModelManager.cxx.

References mnControls.

Referenced by GetInvisibleLayerIdByVisibleOne(), and IsVisibleLayerId().

const SwDrawModel * sw::DocumentDrawModelManager::GetDrawModel ( ) const
overridevirtual

Draw Model and id accessors.

Implements IDocumentDrawModelAccess.

Definition at line 161 of file DocumentDrawModelManager.cxx.

References mpDrawModel.

Referenced by GetOrCreateDrawModel(), and Search().

SwDrawModel * sw::DocumentDrawModelManager::GetDrawModel ( )
overridevirtual

Implements IDocumentDrawModelAccess.

Definition at line 166 of file DocumentDrawModelManager.cxx.

References mpDrawModel.

SdrLayerID sw::DocumentDrawModelManager::GetHeavenId ( ) const
overridevirtual

Implements IDocumentDrawModelAccess.

Definition at line 196 of file DocumentDrawModelManager.cxx.

References mnHeaven.

Referenced by GetInvisibleLayerIdByVisibleOne(), and IsVisibleLayerId().

SdrLayerID sw::DocumentDrawModelManager::GetHellId ( ) const
overridevirtual

Implements IDocumentDrawModelAccess.

Definition at line 201 of file DocumentDrawModelManager.cxx.

References mnHell.

Referenced by GetInvisibleLayerIdByVisibleOne(), and IsVisibleLayerId().

SdrLayerID sw::DocumentDrawModelManager::GetInvisibleControlsId ( ) const
overridevirtual
SdrLayerID sw::DocumentDrawModelManager::GetInvisibleHeavenId ( ) const
overridevirtual
SdrLayerID sw::DocumentDrawModelManager::GetInvisibleHellId ( ) const
overridevirtual
SdrLayerID sw::DocumentDrawModelManager::GetInvisibleLayerIdByVisibleOne ( SdrLayerID  _nVisibleLayerId)
overridevirtual

method to determine, if the corresponding invisible layer ID for a visible one.

Note: If given layer ID is an invisible one, method returns given layer ID. Note: If given layer ID is unknown, method returns given layer ID.

Parameters
_nVisibleLayerIdinput parameter - visible layer ID for which the corresponding invisible one has to be returned.
Returns
sal_Int8, invisible layer ID corresponding to given layer ID

Implements IDocumentDrawModelAccess.

Definition at line 264 of file DocumentDrawModelManager.cxx.

References GetControlsId(), GetHeavenId(), GetHellId(), GetInvisibleControlsId(), GetInvisibleHeavenId(), and GetInvisibleHellId().

SwDrawModel * sw::DocumentDrawModelManager::GetOrCreateDrawModel ( )
overridevirtual

Implements IDocumentDrawModelAccess.

Definition at line 191 of file DocumentDrawModelManager.cxx.

References GetDrawModel(), and MakeDrawModel_().

void sw::DocumentDrawModelManager::InitDrawModel ( )
bool sw::DocumentDrawModelManager::IsVisibleLayerId ( SdrLayerID  _nLayerId) const
overridevirtual

method to determine, if a layer ID belongs to the visible ones.

Note: If given layer ID is unknown, method asserts and returns <false>.

Parameters
_nLayerIdinput parameter - layer ID, which has to be checked, if it belongs to the visible ones.
Returns
bool, indicating, if given layer ID belongs to the visible ones.

Implements IDocumentDrawModelAccess.

Definition at line 239 of file DocumentDrawModelManager.cxx.

References GetControlsId(), GetHeavenId(), GetHellId(), GetInvisibleControlsId(), GetInvisibleHeavenId(), and GetInvisibleHellId().

SwDrawModel * sw::DocumentDrawModelManager::MakeDrawModel_ ( )
overridevirtual
void sw::DocumentDrawModelManager::NotifyInvisibleLayers ( SdrPageView _rSdrPageView)
overridevirtual

method to notify drawing page view about the invisible layers

Implements IDocumentDrawModelAccess.

Definition at line 226 of file DocumentDrawModelManager.cxx.

References SdrPageView::SetLayerVisible().

DocumentDrawModelManager& sw::DocumentDrawModelManager::operator= ( DocumentDrawModelManager const &  )
privatedelete
void sw::DocumentDrawModelManager::ReleaseDrawModel ( )

Definition at line 154 of file DocumentDrawModelManager.cxx.

References mpDrawModel.

Referenced by InitDrawModel(), and SwDoc::~SwDoc().

bool sw::DocumentDrawModelManager::Search ( const SwPaM rPaM,
const SvxSearchItem rSearchItem 
)
overridevirtual

Member Data Documentation

SwDoc& sw::DocumentDrawModelManager::m_rDoc
private

Definition at line 69 of file DocumentDrawModelManager.hxx.

Referenced by InitDrawModel(), MakeDrawModel_(), and Search().

SdrLayerID sw::DocumentDrawModelManager::mnControls
private

Definition at line 80 of file DocumentDrawModelManager.hxx.

Referenced by GetControlsId(), and InitDrawModel().

SdrLayerID sw::DocumentDrawModelManager::mnHeaven
private

Draw Model Layer IDs LayerIds, Heaven == above document Hell == below document Controls == at the very top.

Definition at line 78 of file DocumentDrawModelManager.hxx.

Referenced by GetHeavenId(), and InitDrawModel().

SdrLayerID sw::DocumentDrawModelManager::mnHell
private

Definition at line 79 of file DocumentDrawModelManager.hxx.

Referenced by GetHellId(), and InitDrawModel().

SdrLayerID sw::DocumentDrawModelManager::mnInvisibleControls
private

Definition at line 83 of file DocumentDrawModelManager.hxx.

Referenced by GetInvisibleControlsId(), and InitDrawModel().

SdrLayerID sw::DocumentDrawModelManager::mnInvisibleHeaven
private

Definition at line 81 of file DocumentDrawModelManager.hxx.

Referenced by GetInvisibleHeavenId(), and InitDrawModel().

SdrLayerID sw::DocumentDrawModelManager::mnInvisibleHell
private

Definition at line 82 of file DocumentDrawModelManager.hxx.

Referenced by GetInvisibleHellId(), and InitDrawModel().

std::unique_ptr<SwDrawModel> sw::DocumentDrawModelManager::mpDrawModel
private

The documentation for this class was generated from the following files: