38class IteratorImplBase;
39class IteratorPosition;
228 const std::shared_ptr<ViewShell>& rpViewShell,
229 bool bDirectionIsForward,
245 const std::shared_ptr<ViewShell>& rpViewShell,
246 bool bDirectionIsForward,
268 const std::shared_ptr<ViewShell>& rpViewShell,
271 bool bDirectionIsForward,
The main purpose of this class is searching and replacing as well as spelling of impress documents.
Data collection specifying a <type>SdrObject</type> and its position in a document and view.
bool operator==(const IteratorPosition &aPosition) const
Compare two positions for equality.
PageKind mePageKind
Page kind of the view.
EditMode meEditMode
Edit mode of the view.
IteratorPosition()
Create a new object with all data members set to default values.
sal_Int32 mnPageIndex
The index of a page where the object is located on.
sal_Int32 mnText
Number of the actual SdrText from the current <type>SdrObject</type>
::unotools::WeakReference< SdrObject > mxObject
Pointer to the actual <type>SdrObject</type> object.
This iterator can be used to iterate over all <type>SdrObject</type> objects of one of three set deno...
void Reverse()
Reverse the direction of iteration.
const IteratorPosition & operator*() const
Return the current position of the iterator.
Iterator & operator++()
The prefix increment operator returns the iterator pointing to the next object.
Iterator & operator=(const Iterator &rIterator)
Assign the iterator from the given one.
bool operator==(const Iterator &rIterator) const
Test equality of two iterators.
std::unique_ptr< IteratorImplBase > mxIterator
The implementation object to which most of the methods are forwarded.
bool operator!=(const Iterator &rIterator) const
Test whether two iterators point to different objects.
This class wraps the <type>SdOutliner</type> class and represents it as a container of <type>SdrObjec...
Iterator current()
Return an iterator that points to the current object of one of the sets described above.
OutlinerContainer & operator=(const OutlinerContainer &)=delete
OutlinerContainer(SdOutliner *pOutliner)
Create a new wrapper object for the given outliner.
static sal_Int32 GetPageIndex(SdDrawDocument const *pDocument, const std::shared_ptr< ViewShell > &rpViewShell, PageKind ePageKind, EditMode eEditMode, bool bDirectionIsForward, IteratorLocation aLocation)
Return the index of a page that contains an object that a new iterator shall point to.
OutlinerContainer(const OutlinerContainer &)=delete
Iterator begin()
Return an iterator that points to the first object of one of the sets described above.
Iterator CreateIterator(IteratorLocation aLocation)
Create an iterator.
Iterator end()
Return an iterator that marks the end of the iteration.
static Iterator CreateSelectionIterator(const ::std::vector<::unotools::WeakReference< SdrObject > > &rObjectList, SdDrawDocument *pDocument, const std::shared_ptr< ViewShell > &rpViewShell, bool bDirectionIsForward, IteratorLocation aLocation)
Create an iterator that iterates over all currently selected <type>SdrObjects</type> objects of the <...
static Iterator CreateDocumentIterator(SdDrawDocument *pDocument, const std::shared_ptr< ViewShell > &rpViewShell, bool bDirectionIsForward, IteratorLocation aLocation)
Create an iterator that iterates over all <type>SdrObjects</type> objects of the <member>mpOutliner</...
SdOutliner * mpOutliner
The wrapped outliner that is represented as object container.
EmbeddedObjectRef * pObject
IteratorLocation
Use this enum to specify the initial location of the object pointed to by a newly created iterator.