summaryrefslogtreecommitdiff
path: root/sd/inc
diff options
context:
space:
mode:
authorNoel Power <noel.power@suse.com>2013-06-24 21:40:32 +0100
committerNoel Power <noel.power@suse.com>2013-06-24 21:40:32 +0100
commitee51444ed1f7003dafc93c8181b5f8c1b0fd165b (patch)
treefbe9f1aa3b27f33f112ddaecc67629de75ac63b5 /sd/inc
parent1680a8cd4f4393ec15c4f85cb63b6654117d56d1 (diff)
fix borders unit test ( test values have changed )
Change-Id: I1205eddf83781bef655abe4a1293c691bc5f1c41
Diffstat (limited to 'sd/inc')
-rw-r--r--sd/inc/drawdoc.hxx1
-rw-r--r--sd/inc/shapelist.hxx21
2 files changed, 9 insertions, 13 deletions
diff --git a/sd/inc/drawdoc.hxx b/sd/inc/drawdoc.hxx
index 77ac6b676b2a..1d05eb36115b 100644
--- a/sd/inc/drawdoc.hxx
+++ b/sd/inc/drawdoc.hxx
@@ -145,6 +145,7 @@ private:
Timer* mpWorkStartupTimer;
Timer* mpOnlineSpellingTimer;
sd::ShapeList* mpOnlineSpellingList;
+ sd::ShapeList::const_iterator maShapeListIterator;
SvxSearchItem* mpOnlineSearchItem;
std::vector<sd::FrameView*> maFrameViewList;
SdCustomShowList* mpCustomShowList;
diff --git a/sd/inc/shapelist.hxx b/sd/inc/shapelist.hxx
index f828ebc61d31..2d759a2bd493 100644
--- a/sd/inc/shapelist.hxx
+++ b/sd/inc/shapelist.hxx
@@ -29,6 +29,10 @@ 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();
@@ -48,26 +52,17 @@ namespace sd
/** @return true if given shape is part of this list */
bool hasShape( SdrObject& rObject ) 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 first element */
+ const_iterator cbegin() const;
- const std::list< SdrObject* >& getList() const { return maShapeList; }
+ /** @return const_iterator pointing to the list termination element */
+ const_iterator cend() const;
private:
virtual void ObjectInDestruction(const SdrObject& rObject);
typedef std::list< SdrObject* > ListImpl;
ListImpl maShapeList;
- ListImpl::iterator maIter;
};
}