21#include <osl/diagnose.h>
49 OSL_FAIL(
"sd::ShapeList::addShape(), given shape already part of list!");
59 bool bIterErased = aIter ==
maIter;
61 (*aIter)->RemoveObjectUser(*
this);
69 OSL_FAIL(
"sd::ShapeList::removeShape(), given shape not part of list!");
80 for(
auto& rpShape : aShapeList )
81 rpShape->RemoveObjectUser(*
this);
103 bool bIterErased = aIter ==
maIter;
112 OSL_FAIL(
"sd::ShapeList::ObjectInDestruction(), got a call from an unknown friend!");
void AddObjectUser(sdr::ObjectUser &rNewUser)
ListImpl::iterator maIter
std::list< SdrObject * > ListImpl
virtual void ObjectInDestruction(const SdrObject &rObject) override
void addShape(SdrObject &rObject)
adds the given shape to this list
void removeShape(SdrObject &rObject)
removes the shape from this list
bool isEmpty() const
returns true if this list is empty
bool hasShape(SdrObject &rObject) const
returns true if given shape is part of this list
SdrObject * getNextShape()
returns the shape the internal iterator points to, or 0 if the list end is reached.
void clear()
removes all shapes from this list
void seekShape(sal_uInt32 nIndex)
Sets the internal iterator to the shape at given index.