summaryrefslogtreecommitdiff
path: root/sd/inc/shapelist.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/inc/shapelist.hxx')
-rw-r--r--sd/inc/shapelist.hxx21
1 files changed, 13 insertions, 8 deletions
diff --git a/sd/inc/shapelist.hxx b/sd/inc/shapelist.hxx
index 2d759a2bd493..f828ebc61d31 100644
--- a/sd/inc/shapelist.hxx
+++ b/sd/inc/shapelist.hxx
@@ -29,10 +29,6 @@ namespace sd
class ShapeList : public sdr::ObjectUser
{
public:
- /** const_iterator guarantee only that the list itself is not
- altered. The objects referenced by the list are still mutable. */
- typedef std::list< SdrObject* >::const_iterator const_iterator;
-
ShapeList();
virtual ~ShapeList();
@@ -52,17 +48,26 @@ namespace sd
/** @return true if given shape is part of this list */
bool hasShape( SdrObject& rObject ) const;
- /** @return const_iterator pointing to the first element */
- const_iterator cbegin() const;
+ /** returns the shape the internal iterator points to, or 0 if
+ * the list end is reached. moves the internal iterator to the
+ * next shape. */
+ SdrObject* getNextShape();
+
+ /** Sets the internal iterator to the shape at given index. */
+ void seekShape( sal_uInt32 nIndex );
+
+ /**
+ */
+ bool hasMore() const;
- /** @return const_iterator pointing to the list termination element */
- const_iterator cend() const;
+ const std::list< SdrObject* >& getList() const { return maShapeList; }
private:
virtual void ObjectInDestruction(const SdrObject& rObject);
typedef std::list< SdrObject* > ListImpl;
ListImpl maShapeList;
+ ListImpl::iterator maIter;
};
}