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

#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...
 
virtual const SwDrawModelGetDrawModel () const =0
 Draw Model and id accessors. More...
 
virtual SwDrawModelGetDrawModel ()=0
 
virtual SwDrawModelMakeDrawModel_ ()=0
 
virtual SwDrawModelGetOrCreateDrawModel ()=0
 
virtual SdrLayerID GetHeavenId () const =0
 
virtual SdrLayerID GetHellId () const =0
 
virtual SdrLayerID GetControlsId () const =0
 
virtual SdrLayerID GetInvisibleHeavenId () const =0
 
virtual SdrLayerID GetInvisibleHellId () const =0
 
virtual SdrLayerID GetInvisibleControlsId () const =0
 
virtual void NotifyInvisibleLayers (SdrPageView &_rSdrPageView)=0
 method to notify drawing page view about the invisible layers More...
 
virtual bool IsVisibleLayerId (SdrLayerID _nLayerId) const =0
 method to determine, if a layer ID belongs to the visible ones. More...
 
virtual SdrLayerID GetInvisibleLayerIdByVisibleOne (SdrLayerID _nVisibleLayerId)=0
 method to determine, if the corresponding invisible layer ID for a visible one. More...
 
virtual bool Search (const SwPaM &rPaM, const SvxSearchItem &rSearchItem)=0
 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 33 of file DocumentDrawModelManager.hxx.

Constructor & Destructor Documentation

◆ DocumentDrawModelManager() [1/2]

sw::DocumentDrawModelManager::DocumentDrawModelManager ( SwDoc i_rSwdoc)

Definition at line 55 of file DocumentDrawModelManager.cxx.

◆ DocumentDrawModelManager() [2/2]

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

Member Function Documentation

◆ DrawNotifyUndoHdl()

void sw::DocumentDrawModelManager::DrawNotifyUndoHdl ( )

Definition at line 350 of file DocumentDrawModelManager.cxx.

References mpDrawModel.

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

◆ GetControlsId()

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

Implements IDocumentDrawModelAccess.

Definition at line 207 of file DocumentDrawModelManager.cxx.

References mnControls.

Referenced by GetInvisibleLayerIdByVisibleOne(), and IsVisibleLayerId().

◆ GetDrawModel() [1/2]

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

Draw Model and id accessors.

Implements IDocumentDrawModelAccess.

Definition at line 162 of file DocumentDrawModelManager.cxx.

References mpDrawModel.

Referenced by GetOrCreateDrawModel(), and Search().

◆ GetDrawModel() [2/2]

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

Implements IDocumentDrawModelAccess.

Definition at line 167 of file DocumentDrawModelManager.cxx.

References mpDrawModel.

◆ GetHeavenId()

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

Implements IDocumentDrawModelAccess.

Definition at line 197 of file DocumentDrawModelManager.cxx.

References mnHeaven.

Referenced by GetInvisibleLayerIdByVisibleOne(), and IsVisibleLayerId().

◆ GetHellId()

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

Implements IDocumentDrawModelAccess.

Definition at line 202 of file DocumentDrawModelManager.cxx.

References mnHell.

Referenced by GetInvisibleLayerIdByVisibleOne(), and IsVisibleLayerId().

◆ GetInvisibleControlsId()

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

◆ GetInvisibleHeavenId()

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

◆ GetInvisibleHellId()

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

◆ GetInvisibleLayerIdByVisibleOne()

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 265 of file DocumentDrawModelManager.cxx.

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

◆ GetOrCreateDrawModel()

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

Implements IDocumentDrawModelAccess.

Definition at line 192 of file DocumentDrawModelManager.cxx.

References GetDrawModel(), and MakeDrawModel_().

◆ InitDrawModel()

void sw::DocumentDrawModelManager::InitDrawModel ( )

◆ IsVisibleLayerId()

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 240 of file DocumentDrawModelManager.cxx.

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

◆ MakeDrawModel_()

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

◆ NotifyInvisibleLayers()

void sw::DocumentDrawModelManager::NotifyInvisibleLayers ( SdrPageView _rSdrPageView)
overridevirtual

method to notify drawing page view about the invisible layers

Implements IDocumentDrawModelAccess.

Definition at line 227 of file DocumentDrawModelManager.cxx.

References SdrPageView::SetLayerVisible().

◆ operator=()

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

◆ ReleaseDrawModel()

void sw::DocumentDrawModelManager::ReleaseDrawModel ( )

Definition at line 155 of file DocumentDrawModelManager.cxx.

References mpDrawModel.

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

◆ Search()

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

Member Data Documentation

◆ m_rDoc

SwDoc& sw::DocumentDrawModelManager::m_rDoc
private

Definition at line 66 of file DocumentDrawModelManager.hxx.

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

◆ mnControls

SdrLayerID sw::DocumentDrawModelManager::mnControls
private

Definition at line 77 of file DocumentDrawModelManager.hxx.

Referenced by GetControlsId(), and InitDrawModel().

◆ mnHeaven

SdrLayerID sw::DocumentDrawModelManager::mnHeaven
private

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

Definition at line 75 of file DocumentDrawModelManager.hxx.

Referenced by GetHeavenId(), and InitDrawModel().

◆ mnHell

SdrLayerID sw::DocumentDrawModelManager::mnHell
private

Definition at line 76 of file DocumentDrawModelManager.hxx.

Referenced by GetHellId(), and InitDrawModel().

◆ mnInvisibleControls

SdrLayerID sw::DocumentDrawModelManager::mnInvisibleControls
private

Definition at line 80 of file DocumentDrawModelManager.hxx.

Referenced by GetInvisibleControlsId(), and InitDrawModel().

◆ mnInvisibleHeaven

SdrLayerID sw::DocumentDrawModelManager::mnInvisibleHeaven
private

Definition at line 78 of file DocumentDrawModelManager.hxx.

Referenced by GetInvisibleHeavenId(), and InitDrawModel().

◆ mnInvisibleHell

SdrLayerID sw::DocumentDrawModelManager::mnInvisibleHell
private

Definition at line 79 of file DocumentDrawModelManager.hxx.

Referenced by GetInvisibleHellId(), and InitDrawModel().

◆ mpDrawModel

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

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