54 const std::weak_ptr<ViewShell>& rpViewShellWeak,
55 bool bDirectionIsForward);
57 std::weak_ptr<ViewShell> pViewShellWeak,
130 sal_Int32 nObjectIndex,
132 const std::weak_ptr<ViewShell>& rpViewShellWeak,
133 bool bDirectionIsForward);
143 const ::std::vector<::unotools::WeakReference<SdrObject>>&
mrObjectList;
170 sal_Int32 nPageIndex,
172 const std::weak_ptr<ViewShell>& rpViewShellWeak,
173 bool bDirectionIsForward);
175 sal_Int32 nPageIndex,
177 const std::weak_ptr<ViewShell>& rpViewShellWeak,
178 bool bDirectionIsForward,
185 virtual void Reverse()
override;
194 void SetPage (sal_Int32 nPageIndex);
218 sal_Int32 nPageIndex,
222 const std::weak_ptr<ViewShell>& rpViewShellWeak,
223 bool bDirectionIsForward);
Iterator for iteration over all objects in all views.
sal_Int32 mnPageCount
Number of pages in the view that is specified by <member>maPosition</member>.
DocumentIteratorImpl(sal_Int32 nPageIndex, PageKind ePageKind, EditMode eEditMode, SdDrawDocument *pDocument, const std::weak_ptr< ViewShell > &rpViewShellWeak, bool bDirectionIsForward)
virtual IteratorImplBase * Clone(IteratorImplBase *pObject=nullptr) const override
Create an exact copy of this object.
DocumentIteratorImpl & operator=(const DocumentIteratorImpl &)=delete
virtual void GotoNextText() override
Advance to the next text of the current object or to the next object.
virtual ~DocumentIteratorImpl() override
Base class for the polymorphic implementation class of the <type>Iterator</type> class.
IteratorImplBase(SdDrawDocument *pDocument, const std::weak_ptr< ViewShell > &rpViewShellWeak, bool bDirectionIsForward)
The constructor stores the given arguments to be used by the derived classes.
SdDrawDocument * mpDocument
The document on whose data the iterator operates.
virtual bool IsEqualSelection(const IteratorImplBase &rIterator) const
This method is used by the equality operator.
bool mbDirectionIsForward
Specifies the search direction.
virtual IteratorImplBase * Clone(IteratorImplBase *pObject=nullptr) const
Create an exact copy of this object.
virtual bool operator==(const IteratorImplBase &rIterator) const
Test the equality of the this object and the given iterator.
virtual ~IteratorImplBase()
std::weak_ptr< ViewShell > mpViewShellWeak
Necessary secondary source of information.
virtual void GotoNextText()=0
Advance to the next text of the current object or to the next object.
IteratorPosition maPosition
The current position as returned by <member>GetPosition()</member>.
virtual const IteratorPosition & GetPosition()
Return an object that describes the current object.
virtual void Reverse()
Reverse the direction of iteration.
Data collection specifying a <type>SdrObject</type> and its position in a document and view.
Iterator all objects that belong to the current mark list a.k.a.
SelectionIteratorImpl(const SelectionIteratorImpl &rObject)
SelectionIteratorImpl(const ::std::vector< ::unotools::WeakReference< SdrObject > > &rObjectList, sal_Int32 nObjectIndex, SdDrawDocument *pDocument, const std::weak_ptr< ViewShell > &rpViewShellWeak, bool bDirectionIsForward)
virtual bool IsEqualSelection(const IteratorImplBase &rIterator) const override
Compare the given iterator with this object.
IteratorImplBase & operator=(const IteratorImplBase &rIterator)
virtual IteratorImplBase * Clone(IteratorImplBase *pObject=nullptr) const override
Create an exact copy of this object.
virtual bool operator==(const IteratorImplBase &rIterator) const override
Test the equality of the this object and the given iterator.
virtual ~SelectionIteratorImpl() override
virtual void GotoNextText() override
Advance to the next text of the current object or to the next object.
virtual const IteratorPosition & GetPosition() override
Return an object that describes the current object.
const ::std::vector<::unotools::WeakReference< SdrObject > > & mrObjectList
Iterator for iteration over all objects in a single view.
bool mbPageChangeOccurred
Indicates whether a page changed occurred on switching to current page.
std::optional< SdrObjListIter > moObjectIterator
Iterator of all objects on the current page.
void SetPage(sal_Int32 nPageIndex)
Set up page pointer and object list iterator for the specified page.
virtual IteratorImplBase * Clone(IteratorImplBase *pObject=nullptr) const override
Create an exact copy of this object.
SdPage * mpPage
Pointer to the page associated with the current page index. May be NULL.
virtual void GotoNextText() override
Advance to the next text of the current object or to the next object.
virtual void Reverse() override
Reverse the direction of iteration.
virtual ~ViewIteratorImpl() override
ViewIteratorImpl & operator=(const ViewIteratorImpl &)=delete
ViewIteratorImpl(sal_Int32 nPageIndex, SdDrawDocument *pDocument, const std::weak_ptr< ViewShell > &rpViewShellWeak, bool bDirectionIsForward)
EmbeddedObjectRef * pObject