InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IWaxIterator Class Referenceabstract

#include <IWaxIterator.h>

Public Member Functions

virtual UIDRef GetStrandIterating () const =0
 
virtual IWaxLineGetFirstWaxLine (TextIndex start, int32 *pOffset=nil)=0
 
virtual const IWaxLineGetFirstWaxLine (TextIndex start, int32 *pOffset=nil) const =0
 
virtual IWaxLineGetNextWaxLine ()=0
 
virtual const IWaxLineGetNextWaxLine () const =0
 
virtual IWaxLineGetPreviousWaxLine ()=0
 
virtual const IWaxLineGetPreviousWaxLine () const =0
 
virtual void ClearCurrentLine () const =0
 
virtual IWaxLineGetCurrentWaxLine ()=0
 
virtual const IWaxLineGetCurrentWaxLine () const =0
 
virtual TextIndex GetCurrentWaxLineOrigin () const =0
 
virtual int32 GetCurrentWaxLineSpan () const =0
 
virtual TextIndex GetCurrentWaxLineEnd () const =0
 

Detailed Description

Used to iterate over IWaxLines An IWaxIterator is returned from IWaxStrand::NewWaxIterator(). The returned object must be deleted. NOTE: This is not derived from IPMUnknown.

See Also
IWaxLines
IWaxStrand::NewWaxIterator

Member Function Documentation

virtual void IWaxIterator::ClearCurrentLine () const
pure virtual
Clears the cached current line. The current TextIndex stays the same

and the next call to GetNextWaxLine(), GetPreviousWaxLine() or GetCurrentWaxLine() will restore a cached value.

virtual IWaxLine* IWaxIterator::GetCurrentWaxLine ()
pure virtual

Returns the WaxLine at the current iterator position.

Returns
- The current wax line or nil.
virtual const IWaxLine* IWaxIterator::GetCurrentWaxLine () const
pure virtual

Returns the WaxLine at the current iterator position.

Returns
- The current wax line or nil.
virtual TextIndex IWaxIterator::GetCurrentWaxLineEnd () const
pure virtual

Returns the end of the current WaxLine.

Returns
- The end of the current WaxLine.
virtual TextIndex IWaxIterator::GetCurrentWaxLineOrigin () const
pure virtual

Returns the current TextIndex of the the iterator.

Returns
- The TextIndex of the iterator.
virtual int32 IWaxIterator::GetCurrentWaxLineSpan () const
pure virtual

Returns the span of the current WaxLine.

Returns
- The span of the current WaxLine.
virtual IWaxLine* IWaxIterator::GetFirstWaxLine (TextIndex start,
int32 * pOffset = nil 
)
pure virtual

Returns the IWaxLine at the given text index. This WaxLine is only valid until the next GetxxxWaxLine method call or the destruction of the IWaxIterator, whichever comes first. This method is also used to initialize the iterator.

Parameters
start- The text index containing the line you want
*pOffset- Filled with the offset from the beginning of the line where start can be found
Returns
- The wax line containing "start"
virtual const IWaxLine* IWaxIterator::GetFirstWaxLine (TextIndex start,
int32 * pOffset = nil 
) const
pure virtual

Returns the IWaxLine at the given text index. This WaxLine is only valid until the next GetxxxWaxLine method call or the destruction of the IWaxIterator, whichever comes first. This method is also used to initialize the iterator.

Parameters
start- The text index containing the line you want
*pOffset- Filled with the offset from the beginning of the line where start can be found
Returns
- The wax line containing "start"
virtual IWaxLine* IWaxIterator::GetNextWaxLine ()
pure virtual

Returns either the next wax line or nil if the end of story is reached.

Returns
- The next wax line or nil.
virtual const IWaxLine* IWaxIterator::GetNextWaxLine () const
pure virtual

Returns either the next wax line or nil if the end of story is reached.

Returns
- The next wax line or nil.
virtual IWaxLine* IWaxIterator::GetPreviousWaxLine ()
pure virtual

Returns either the previous IWaxLine, or nil if the start of the story is reached.

Returns
- The previous wax line or nil.
virtual const IWaxLine* IWaxIterator::GetPreviousWaxLine () const
pure virtual

Returns either the previous IWaxLine, or nil if the start of the story is reached.

Returns
- The previous wax line or nil.
virtual UIDRef IWaxIterator::GetStrandIterating () const
pure virtual

Indicates which strand this class is iterating over.

Returns
- A UIDRef from which you can get an IWaxStrand
See Also
IWaxStrand