LibreOffice Module svx (master) 1
|
#include <svdlayer.hxx>
Public Member Functions | |
SdrLayerAdmin (SdrLayerAdmin *pNewParent=nullptr) | |
SdrLayerAdmin (const SdrLayerAdmin &rSrcLayerAdmin) | |
~SdrLayerAdmin () | |
SdrLayerAdmin & | operator= (const SdrLayerAdmin &rSrcLayerAdmin) |
void | SetModel (SdrModel *pNewModel) |
void | InsertLayer (std::unique_ptr< SdrLayer > pLayer, sal_uInt16 nPos) |
std::unique_ptr< SdrLayer > | RemoveLayer (sal_uInt16 nPos) |
void | ClearLayers () |
SdrLayer * | NewLayer (const OUString &rName, sal_uInt16 nPos=0xFFFF) |
sal_uInt16 | GetLayerCount () const |
SdrLayer * | GetLayer (sal_uInt16 i) |
const SdrLayer * | GetLayer (sal_uInt16 i) const |
sal_uInt16 | GetLayerPos (const SdrLayer *pLayer) const |
SdrLayer * | GetLayer (const OUString &rName) |
const SdrLayer * | GetLayer (const OUString &rName) const |
SdrLayerID | GetLayerID (const OUString &rName) const |
SdrLayer * | GetLayerPerID (SdrLayerID nID) |
const SdrLayer * | GetLayerPerID (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 |
SdrLayerAdmin * | pParent |
SdrModel * | pModel |
OUString | maControlLayerName |
Friends | |
class | SdrView |
class | SdrModel |
class | SdrPage |
Definition at line 102 of file svdlayer.hxx.
|
explicit |
Definition at line 101 of file svdlayer.cxx.
SdrLayerAdmin::SdrLayerAdmin | ( | const SdrLayerAdmin & | rSrcLayerAdmin | ) |
Definition at line 108 of file svdlayer.cxx.
SdrLayerAdmin::~SdrLayerAdmin | ( | ) |
Definition at line 116 of file svdlayer.cxx.
|
private |
Definition at line 152 of file svdlayer.cxx.
References SfxBroadcaster::Broadcast(), LayerOrderChange, pModel, and SdrModel::SetChanged().
Referenced by InsertLayer(), NewLayer(), and RemoveLayer().
void SdrLayerAdmin::ClearLayers | ( | ) |
Definition at line 120 of file svdlayer.cxx.
References maLayers.
|
inline |
Definition at line 149 of file svdlayer.hxx.
Referenced by SdrExchangeView::GetMarkedObjects(), SdrPaintView::ImpFormLayerDrawing(), SdrExchangeView::Paste(), SdrPageWindow::RedrawAll(), SdrPageWindow::RedrawLayer(), and SdrCreateView::SetupObjLayer().
SdrLayer * SdrLayerAdmin::GetLayer | ( | const OUString & | rName | ) |
Definition at line 205 of file svdlayer.cxx.
References GetLayer().
const SdrLayer * SdrLayerAdmin::GetLayer | ( | const OUString & | rName | ) | const |
Definition at line 210 of file svdlayer.cxx.
References GetLayer(), GetLayerCount(), GetName(), i, and pParent.
|
inline |
Definition at line 137 of file svdlayer.hxx.
References i.
Referenced by SdrEditView::DeleteLayer(), GetLayer(), GetLayerID(), GetUniqueLayerID(), SdrObject::NbcApplyNotPersistAttr(), operator=(), and SetModel().
|
inline |
Definition at line 138 of file svdlayer.hxx.
References i.
|
inline |
Definition at line 135 of file svdlayer.hxx.
Referenced by GetLayer(), GetUniqueLayerID(), SdrEditView::InsertNewLayer(), operator=(), and SetModel().
SdrLayerID SdrLayerAdmin::GetLayerID | ( | const OUString & | rName | ) | const |
Definition at line 231 of file svdlayer.cxx.
References SdrLayer::GetID(), GetLayer(), and SDRLAYER_NOTFOUND().
Referenced by SdrExchangeView::GetMarkedObjects(), SdrCreateView::ImpBegCreateObj(), SdrPaintView::ImpFormLayerDrawing(), SdrExchangeView::ImpGetPasteLayer(), SdrEditView::InsertObjectAtView(), SdrPageView::IsLayer(), SdrPaintView::MergeNotPersistDefaultAttr(), SdrExchangeView::Paste(), SdrPageWindow::RedrawAll(), SdrPageWindow::RedrawLayer(), SdrPageView::SetLayer(), and SdrCreateView::SetupObjLayer().
|
inline |
Definition at line 145 of file svdlayer.hxx.
References GetLayerPerID().
Referenced by GetLayerPerID(), SvxShape::getPropertyValueImpl(), SdrPaintView::SetNotPersistDefaultAttr(), and SdrObject::TakeNotPersistAttr().
const SdrLayer * SdrLayerAdmin::GetLayerPerID | ( | SdrLayerID | nID | ) | const |
Definition at line 239 of file svdlayer.cxx.
References maLayers.
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().
void SdrLayerAdmin::getLockedLayersODF | ( | SdrLayerIDSet & | rOutSet | ) | const |
Definition at line 305 of file svdlayer.cxx.
References SdrLayerIDSet::ClearAll(), maLayers, and SdrLayerIDSet::Set().
void SdrLayerAdmin::getPrintableLayersODF | ( | SdrLayerIDSet & | rOutSet | ) | const |
Definition at line 295 of file svdlayer.cxx.
References SdrLayerIDSet::ClearAll(), maLayers, and SdrLayerIDSet::Set().
|
private |
Definition at line 251 of file svdlayer.cxx.
References SdrLayer::GetID(), GetLayer(), GetLayerCount(), i, SdrLayerIDSet::IsSet(), pParent, and SdrLayerIDSet::Set().
Referenced by NewLayer().
void SdrLayerAdmin::getVisibleLayersODF | ( | SdrLayerIDSet & | rOutSet | ) | const |
Definition at line 285 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 161 of file svdlayer.cxx.
References Broadcast(), maLayers, nPos, and pModel.
Referenced by SdrUndoNewLayer::Redo(), and SdrUndoDelLayer::Undo().
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().
SdrLayerAdmin & SdrLayerAdmin::operator= | ( | const SdrLayerAdmin & | rSrcLayerAdmin | ) |
Definition at line 125 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 317 of file svdlayer.cxx.
References aSeq, SdrLayerIDSet::IsSet(), maLayers, and nIndex.
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().
void SdrLayerAdmin::SetControlLayerName | ( | const OUString & | rNewName | ) |
Definition at line 280 of file svdlayer.cxx.
References maControlLayerName.
void SdrLayerAdmin::SetModel | ( | SdrModel * | pNewModel | ) |
Definition at line 140 of file svdlayer.cxx.
References GetLayer(), GetLayerCount(), i, nCount, pModel, and SdrLayer::SetModel().
|
friend |
Definition at line 104 of file svdlayer.hxx.
|
friend |
Definition at line 105 of file svdlayer.hxx.
|
friend |
Definition at line 103 of file svdlayer.hxx.
|
private |
Definition at line 110 of file svdlayer.hxx.
Referenced by SetControlLayerName().
|
private |
Definition at line 107 of file svdlayer.hxx.
Referenced by ClearLayers(), GetLayerPerID(), GetLayerPos(), getLockedLayersODF(), getPrintableLayersODF(), getVisibleLayersODF(), InsertLayer(), NewLayer(), operator=(), QueryValue(), and RemoveLayer().
|
private |
Definition at line 109 of file svdlayer.hxx.
Referenced by Broadcast(), InsertLayer(), NewLayer(), SdrLayer::SetModel(), and SetModel().
|
private |
Definition at line 108 of file svdlayer.hxx.
Referenced by GetLayer(), GetUniqueLayerID(), and operator=().