LibreOffice Module svx (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SdrLayerAdmin Class Reference

#include <svdlayer.hxx>

Collaboration diagram for SdrLayerAdmin:
[legend]

Public Member Functions

 SdrLayerAdmin (SdrLayerAdmin *pNewParent=nullptr)
 
 SdrLayerAdmin (const SdrLayerAdmin &rSrcLayerAdmin)
 
 ~SdrLayerAdmin ()
 
SdrLayerAdminoperator= (const SdrLayerAdmin &rSrcLayerAdmin)
 
void SetModel (SdrModel *pNewModel)
 
void InsertLayer (std::unique_ptr< SdrLayer > pLayer, sal_uInt16 nPos)
 
std::unique_ptr< SdrLayerRemoveLayer (sal_uInt16 nPos)
 
void ClearLayers ()
 
SdrLayerNewLayer (const OUString &rName, sal_uInt16 nPos=0xFFFF)
 
sal_uInt16 GetLayerCount () const
 
SdrLayerGetLayer (sal_uInt16 i)
 
const SdrLayerGetLayer (sal_uInt16 i) const
 
sal_uInt16 GetLayerPos (const SdrLayer *pLayer) const
 
SdrLayerGetLayer (const OUString &rName)
 
const SdrLayerGetLayer (const OUString &rName) const
 
SdrLayerID GetLayerID (const OUString &rName) const
 
SdrLayerGetLayerPerID (SdrLayerID nID)
 
const SdrLayerGetLayerPerID (SdrLayerID nID) const
 
void SetControlLayerName (const OUString &rNewName)
 
const OUString & GetControlLayerName () const
 
void getVisibleLayersODF (SdrLayerIDSet &rOutSet) const
 
void getPrintableLayersODF (SdrLayerIDSet &rOutSet) const
 
void getLockedLayersODF (SdrLayerIDSet &rOutSet) const
 
void QueryValue (const SdrLayerIDSet &rViewLayerSet, css::uno::Any &rAny)
 

Private Member Functions

SdrLayerID GetUniqueLayerID () const
 
void Broadcast () const
 

Private Attributes

std::vector< std::unique_ptr< SdrLayer > > maLayers
 
SdrLayerAdminpParent
 
SdrModelpModel
 
OUString maControlLayerName
 

Friends

class SdrView
 
class SdrModel
 
class SdrPage
 

Detailed Description

Definition at line 102 of file svdlayer.hxx.

Constructor & Destructor Documentation

◆ SdrLayerAdmin() [1/2]

SdrLayerAdmin::SdrLayerAdmin ( SdrLayerAdmin pNewParent = nullptr)
explicit

Definition at line 101 of file svdlayer.cxx.

◆ SdrLayerAdmin() [2/2]

SdrLayerAdmin::SdrLayerAdmin ( const SdrLayerAdmin rSrcLayerAdmin)

Definition at line 108 of file svdlayer.cxx.

◆ ~SdrLayerAdmin()

SdrLayerAdmin::~SdrLayerAdmin ( )

Definition at line 116 of file svdlayer.cxx.

Member Function Documentation

◆ Broadcast()

void SdrLayerAdmin::Broadcast ( ) const
private

◆ ClearLayers()

void SdrLayerAdmin::ClearLayers ( )

Definition at line 120 of file svdlayer.cxx.

References maLayers.

◆ GetControlLayerName()

const OUString & SdrLayerAdmin::GetControlLayerName ( ) const
inline

◆ GetLayer() [1/4]

SdrLayer * SdrLayerAdmin::GetLayer ( const OUString &  rName)

Definition at line 205 of file svdlayer.cxx.

References GetLayer().

◆ GetLayer() [2/4]

const SdrLayer * SdrLayerAdmin::GetLayer ( const OUString &  rName) const

Definition at line 210 of file svdlayer.cxx.

References GetLayer(), GetLayerCount(), GetName(), i, and pParent.

◆ GetLayer() [3/4]

SdrLayer * SdrLayerAdmin::GetLayer ( sal_uInt16  i)
inline

◆ GetLayer() [4/4]

const SdrLayer * SdrLayerAdmin::GetLayer ( sal_uInt16  i) const
inline

Definition at line 138 of file svdlayer.hxx.

References i.

◆ GetLayerCount()

sal_uInt16 SdrLayerAdmin::GetLayerCount ( ) const
inline

◆ GetLayerID()

SdrLayerID SdrLayerAdmin::GetLayerID ( const OUString &  rName) const

◆ GetLayerPerID() [1/2]

SdrLayer * SdrLayerAdmin::GetLayerPerID ( SdrLayerID  nID)
inline

◆ GetLayerPerID() [2/2]

const SdrLayer * SdrLayerAdmin::GetLayerPerID ( SdrLayerID  nID) const

Definition at line 239 of file svdlayer.cxx.

References maLayers.

◆ GetLayerPos()

sal_uInt16 SdrLayerAdmin::GetLayerPos ( const SdrLayer pLayer) const

Definition at line 192 of file svdlayer.cxx.

References maLayers, p, and SDRLAYERPOS_NOTFOUND.

Referenced by SdrEditView::DeleteLayer().

◆ getLockedLayersODF()

void SdrLayerAdmin::getLockedLayersODF ( SdrLayerIDSet rOutSet) const

Definition at line 305 of file svdlayer.cxx.

References SdrLayerIDSet::ClearAll(), maLayers, and SdrLayerIDSet::Set().

◆ getPrintableLayersODF()

void SdrLayerAdmin::getPrintableLayersODF ( SdrLayerIDSet rOutSet) const

Definition at line 295 of file svdlayer.cxx.

References SdrLayerIDSet::ClearAll(), maLayers, and SdrLayerIDSet::Set().

◆ GetUniqueLayerID()

SdrLayerID SdrLayerAdmin::GetUniqueLayerID ( ) const
private

◆ getVisibleLayersODF()

void SdrLayerAdmin::getVisibleLayersODF ( SdrLayerIDSet rOutSet) const

Definition at line 285 of file svdlayer.cxx.

References SdrLayerIDSet::ClearAll(), maLayers, and SdrLayerIDSet::Set().

◆ InsertLayer()

void SdrLayerAdmin::InsertLayer ( std::unique_ptr< SdrLayer pLayer,
sal_uInt16  nPos 
)

Definition at line 161 of file svdlayer.cxx.

References Broadcast(), maLayers, nPos, and pModel.

Referenced by SdrUndoNewLayer::Redo(), and SdrUndoDelLayer::Undo().

◆ NewLayer()

SdrLayer * SdrLayerAdmin::NewLayer ( const OUString &  rName,
sal_uInt16  nPos = 0xFFFF 
)

Definition at line 179 of file svdlayer.cxx.

References Broadcast(), GetUniqueLayerID(), maLayers, nPos, pModel, and SdrLayer::SetModel().

Referenced by SdrEditView::InsertNewLayer().

◆ operator=()

SdrLayerAdmin & SdrLayerAdmin::operator= ( const SdrLayerAdmin rSrcLayerAdmin)

Definition at line 125 of file svdlayer.cxx.

References GetLayer(), GetLayerCount(), i, maLayers, nCount, and pParent.

◆ QueryValue()

void SdrLayerAdmin::QueryValue ( const SdrLayerIDSet rViewLayerSet,
css::uno::Any &  rAny 
)

Definition at line 317 of file svdlayer.cxx.

References aSeq, SdrLayerIDSet::IsSet(), maLayers, and nIndex.

◆ RemoveLayer()

std::unique_ptr< SdrLayer > SdrLayerAdmin::RemoveLayer ( sal_uInt16  nPos)

Definition at line 171 of file svdlayer.cxx.

References Broadcast(), maLayers, and nPos.

Referenced by SdrEditView::DeleteLayer(), SdrUndoDelLayer::Redo(), and SdrUndoNewLayer::Undo().

◆ SetControlLayerName()

void SdrLayerAdmin::SetControlLayerName ( const OUString &  rNewName)

Definition at line 280 of file svdlayer.cxx.

References maControlLayerName.

◆ SetModel()

void SdrLayerAdmin::SetModel ( SdrModel pNewModel)

Definition at line 140 of file svdlayer.cxx.

References GetLayer(), GetLayerCount(), i, nCount, pModel, and SdrLayer::SetModel().

Friends And Related Function Documentation

◆ SdrModel

friend class SdrModel
friend

Definition at line 104 of file svdlayer.hxx.

◆ SdrPage

friend class SdrPage
friend

Definition at line 105 of file svdlayer.hxx.

◆ SdrView

friend class SdrView
friend

Definition at line 103 of file svdlayer.hxx.

Member Data Documentation

◆ maControlLayerName

OUString SdrLayerAdmin::maControlLayerName
private

Definition at line 110 of file svdlayer.hxx.

Referenced by SetControlLayerName().

◆ maLayers

std::vector<std::unique_ptr<SdrLayer> > SdrLayerAdmin::maLayers
private

◆ pModel

SdrModel* SdrLayerAdmin::pModel
private

Definition at line 109 of file svdlayer.hxx.

Referenced by Broadcast(), InsertLayer(), NewLayer(), SdrLayer::SetModel(), and SetModel().

◆ pParent

SdrLayerAdmin* SdrLayerAdmin::pParent
private

Definition at line 108 of file svdlayer.hxx.

Referenced by GetLayer(), GetUniqueLayerID(), and operator=().


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