LibreOffice Module svx (master)  1
Public Member Functions | Protected Member Functions | Protected 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)
 

Protected Member Functions

SdrLayerID GetUniqueLayerID () const
 
void Broadcast () const
 

Protected 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::SdrLayerAdmin ( SdrLayerAdmin pNewParent = nullptr)
explicit

Definition at line 100 of file svdlayer.cxx.

SdrLayerAdmin::SdrLayerAdmin ( const SdrLayerAdmin rSrcLayerAdmin)

Definition at line 107 of file svdlayer.cxx.

SdrLayerAdmin::~SdrLayerAdmin ( )

Definition at line 115 of file svdlayer.cxx.

Member Function Documentation

void SdrLayerAdmin::Broadcast ( ) const
protected
void SdrLayerAdmin::ClearLayers ( )

Definition at line 119 of file svdlayer.cxx.

References maLayers.

const OUString& SdrLayerAdmin::GetControlLayerName ( ) const
inline
SdrLayer* SdrLayerAdmin::GetLayer ( sal_uInt16  i)
inline
const SdrLayer* SdrLayerAdmin::GetLayer ( sal_uInt16  i) const
inline

Definition at line 140 of file svdlayer.hxx.

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

Definition at line 204 of file svdlayer.cxx.

References GetLayer().

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

Definition at line 209 of file svdlayer.cxx.

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

sal_uInt16 SdrLayerAdmin::GetLayerCount ( ) const
inline
SdrLayerID SdrLayerAdmin::GetLayerID ( const OUString &  rName) const
SdrLayer* SdrLayerAdmin::GetLayerPerID ( SdrLayerID  nID)
inline
const SdrLayer * SdrLayerAdmin::GetLayerPerID ( SdrLayerID  nID) const

Definition at line 238 of file svdlayer.cxx.

References maLayers.

sal_uInt16 SdrLayerAdmin::GetLayerPos ( const SdrLayer pLayer) const

Definition at line 191 of file svdlayer.cxx.

References maLayers, and SDRLAYERPOS_NOTFOUND.

Referenced by SdrEditView::DeleteLayer().

void SdrLayerAdmin::getLockedLayersODF ( SdrLayerIDSet rOutSet) const

Definition at line 304 of file svdlayer.cxx.

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

void SdrLayerAdmin::getPrintableLayersODF ( SdrLayerIDSet rOutSet) const

Definition at line 294 of file svdlayer.cxx.

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

SdrLayerID SdrLayerAdmin::GetUniqueLayerID ( ) const
protected

Definition at line 250 of file svdlayer.cxx.

References GetLayer(), GetLayerCount(), i, SdrLayerIDSet::IsSet(), pParent, and SdrLayerIDSet::Set().

Referenced by NewLayer().

void SdrLayerAdmin::getVisibleLayersODF ( SdrLayerIDSet rOutSet) const

Definition at line 284 of file svdlayer.cxx.

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

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

Definition at line 160 of file svdlayer.cxx.

References Broadcast(), maLayers, and pModel.

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

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

Definition at line 178 of file svdlayer.cxx.

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

Referenced by SdrEditView::InsertNewLayer().

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

Definition at line 124 of file svdlayer.cxx.

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

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

Definition at line 316 of file svdlayer.cxx.

References SdrLayerIDSet::IsSet(), and maLayers.

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

Definition at line 170 of file svdlayer.cxx.

References Broadcast(), and maLayers.

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

void SdrLayerAdmin::SetControlLayerName ( const OUString &  rNewName)

Definition at line 279 of file svdlayer.cxx.

References maControlLayerName.

void SdrLayerAdmin::SetModel ( SdrModel pNewModel)

Definition at line 139 of file svdlayer.cxx.

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

Friends And Related Function Documentation

friend class SdrModel
friend

Definition at line 104 of file svdlayer.hxx.

friend class SdrPage
friend

Definition at line 105 of file svdlayer.hxx.

friend class SdrView
friend

Definition at line 103 of file svdlayer.hxx.

Member Data Documentation

OUString SdrLayerAdmin::maControlLayerName
protected

Definition at line 111 of file svdlayer.hxx.

Referenced by SetControlLayerName().

std::vector<std::unique_ptr<SdrLayer> > SdrLayerAdmin::maLayers
protected
SdrModel* SdrLayerAdmin::pModel
protected

Definition at line 110 of file svdlayer.hxx.

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

SdrLayerAdmin* SdrLayerAdmin::pParent
protected

Definition at line 109 of file svdlayer.hxx.

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


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