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 98 of file svdlayer.cxx.

SdrLayerAdmin::SdrLayerAdmin ( const SdrLayerAdmin rSrcLayerAdmin)

Definition at line 105 of file svdlayer.cxx.

SdrLayerAdmin::~SdrLayerAdmin ( )

Definition at line 113 of file svdlayer.cxx.

Member Function Documentation

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

Definition at line 117 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 202 of file svdlayer.cxx.

References GetLayer().

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

Definition at line 207 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 236 of file svdlayer.cxx.

References maLayers.

sal_uInt16 SdrLayerAdmin::GetLayerPos ( const SdrLayer pLayer) const

Definition at line 189 of file svdlayer.cxx.

References maLayers, p, and SDRLAYERPOS_NOTFOUND.

Referenced by SdrEditView::DeleteLayer().

void SdrLayerAdmin::getLockedLayersODF ( SdrLayerIDSet rOutSet) const

Definition at line 302 of file svdlayer.cxx.

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

void SdrLayerAdmin::getPrintableLayersODF ( SdrLayerIDSet rOutSet) const

Definition at line 292 of file svdlayer.cxx.

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

SdrLayerID SdrLayerAdmin::GetUniqueLayerID ( ) const
protected

Definition at line 248 of file svdlayer.cxx.

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

Referenced by NewLayer().

void SdrLayerAdmin::getVisibleLayersODF ( SdrLayerIDSet rOutSet) const

Definition at line 282 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 158 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 176 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 122 of file svdlayer.cxx.

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

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

Definition at line 314 of file svdlayer.cxx.

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

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

Definition at line 168 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 277 of file svdlayer.cxx.

References maControlLayerName.

void SdrLayerAdmin::SetModel ( SdrModel pNewModel)

Definition at line 137 of file svdlayer.cxx.

References GetLayer(), GetLayerCount(), i, nCount, 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: