LibreOffice Module sd (master) 1
|
#include <shapelist.hxx>
Public Member Functions | |
ShapeList () | |
virtual | ~ShapeList () |
void | addShape (SdrObject &rObject) |
adds the given shape to this list More... | |
void | removeShape (SdrObject &rObject) |
removes the shape from this list More... | |
void | clear () |
removes all shapes from this list More... | |
bool | isEmpty () const |
returns true if this list is empty More... | |
bool | hasShape (SdrObject &rObject) const |
returns true if given shape is part of this list More... | |
SdrObject * | getNextShape () |
returns the shape the internal iterator points to, or 0 if the list end is reached. More... | |
void | seekShape (sal_uInt32 nIndex) |
Sets the internal iterator to the shape at given index. More... | |
bool | hasMore () const |
const std::list< SdrObject * > & | getList () const |
virtual void | ObjectInDestruction (const SdrObject &rObject)=0 |
Private Types | |
typedef std::list< SdrObject * > | ListImpl |
Private Member Functions | |
virtual void | ObjectInDestruction (const SdrObject &rObject) override |
Private Attributes | |
ListImpl | maShapeList |
ListImpl::iterator | maIter |
Additional Inherited Members | |
Protected Member Functions inherited from sdr::ObjectUser | |
~ObjectUser () | |
Definition at line 29 of file shapelist.hxx.
|
private |
Definition at line 65 of file shapelist.hxx.
ShapeList::ShapeList | ( | ) |
Definition at line 28 of file shapelist.cxx.
References maIter, and maShapeList.
|
virtual |
Definition at line 33 of file shapelist.cxx.
References clear().
void ShapeList::addShape | ( | SdrObject & | rObject | ) |
adds the given shape to this list
Definition at line 39 of file shapelist.cxx.
References SdrObject::AddObjectUser(), and maShapeList.
Referenced by SdPage::InsertPresObj().
void ShapeList::clear | ( | ) |
removes all shapes from this list
removes all shapes from this list NOTE: iterators will become invalid
Definition at line 75 of file shapelist.cxx.
References maIter, and maShapeList.
Referenced by ~ShapeList().
|
inline |
Definition at line 60 of file shapelist.hxx.
References maShapeList.
Referenced by sd::ViewOverlayManager::CreateTags(), sd::View::GetEmptyPresentationObject(), and SdPage::lateInit().
SdrObject * ShapeList::getNextShape | ( | ) |
returns the shape the internal iterator points to, or 0 if the list end is reached.
moves the internal iterator to the next shape.
Definition at line 116 of file shapelist.cxx.
References maIter, and maShapeList.
Referenced by SdPage::GetPresObj(), SdDrawDocument::NewOrLoadCompleted(), SdPage::SetAutoLayout(), and sd::DrawViewShell::SwitchPage().
bool ShapeList::hasMore | ( | ) | const |
Definition at line 135 of file shapelist.cxx.
References maIter, and maShapeList.
bool ShapeList::hasShape | ( | SdrObject & | rObject | ) | const |
returns true if given shape is part of this list
Definition at line 93 of file shapelist.cxx.
References maShapeList.
Referenced by SdPage::GetPresObjKind(), SdPage::IsPresObj(), and SdPage::RemovePresObj().
bool ShapeList::isEmpty | ( | ) | const |
returns true if this list is empty
Definition at line 87 of file shapelist.cxx.
References maShapeList.
Referenced by SdDrawDocument::NewOrLoadCompleted(), and SdPage::SetAutoLayout().
|
overrideprivatevirtual |
Implements sdr::ObjectUser.
Definition at line 98 of file shapelist.cxx.
References maIter, and maShapeList.
void ShapeList::removeShape | ( | SdrObject & | rObject | ) |
removes the shape from this list
removes the given shape from this list
Definition at line 54 of file shapelist.cxx.
References maIter, and maShapeList.
Referenced by SdPage::RemovePresObj().
void ShapeList::seekShape | ( | sal_uInt32 | nIndex | ) |
Sets the internal iterator to the shape at given index.
Definition at line 128 of file shapelist.cxx.
References maIter, maShapeList, and nIndex.
Referenced by SdPage::GetPresObj(), SdDrawDocument::NewOrLoadCompleted(), SdPage::SetAutoLayout(), and sd::DrawViewShell::SwitchPage().
|
private |
Definition at line 67 of file shapelist.hxx.
Referenced by clear(), getNextShape(), hasMore(), ObjectInDestruction(), removeShape(), seekShape(), and ShapeList().
|
private |
Definition at line 66 of file shapelist.hxx.
Referenced by addShape(), clear(), getList(), getNextShape(), hasMore(), hasShape(), isEmpty(), ObjectInDestruction(), removeShape(), seekShape(), and ShapeList().