InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ITextObjectParent::SingleRangeIter Class Reference

Helper class for those implemenations that only have a single range. More...

#include <ITextObjectParent.h>

Inheritance diagram for ITextObjectParent::SingleRangeIter:
ITextObjectParent::RangeIter

Public Member Functions

 SingleRangeIter (const UIDRef &textModelRef, const ITextStoryThread *thread, TextIndex threadStart, int32 threadSpan, TextIndex rangeStart, int32 rangeSpan)
 
 SingleRangeIter (const UIDRef &textModelRef, const ITextStoryThread *thread, TextIndex threadStart, int32 threadSpan, TextIndex adjThreadStart, int32 adjThreadSpan, TextIndex rangeStart, int32 rangeSpan)
 
bool16 GetFirstRange (UIDRef &textModelRef, InterfacePtr< const ITextStoryThread > &thread, TextIndex &threadStart, int32 &threadSpan, TextIndex &adjThreadStart, int32 &adjThreadSpan, TextIndex &rangeStart, int32 &rangeSpan)
 
bool16 GetNextRange (InterfacePtr< const ITextStoryThread > &thread, TextIndex &threadStart, int32 &threadSpan, TextIndex &adjThreadStart, int32 &adjThreadSpan, TextIndex &rangeStart, int32 &rangeSpan)
 

Additional Inherited Members

- Protected Member Functions inherited from ITextObjectParent::RangeIter
 RangeIter (const RangeIter &other)
 

Detailed Description

Helper class for those implemenations that only have a single range.

Member Function Documentation

bool16 ITextObjectParent::SingleRangeIter::GetFirstRange (UIDReftextModelRef,
InterfacePtr< const ITextStoryThread > & thread,
TextIndex & threadStart,
int32 & threadSpan,
TextIndex & adjThreadStart,
int32 & adjThreadSpan,
TextIndex & rangeStart,
int32 & rangeSpan 
)
inlinevirtual

Returns the first range (if any) managed by the parent. The range may include the final CR of the TextStoryThread not

Parameters
textModelUID
threadStartThe TextIndex of the start of the Thread
threadSpanThe number of characters in the Thread
adjThreadStartThe adjusted TextIndex of the start of the Thread. For more applications this will be the same as threadStart. However, some implementations such as the backing store wish to prevent access to some number of chracters at the start and end of the story thread without disguising the true thread boundries. All extending adjustments that take for things like Words, Lines, TextStyleRanges, etc will be clipped to the adjThreadStart and adjThreadSpan.
adjThreadSpanThe adjusted number of characters in the Thread
rangeStartThe TextIndex of the start of the range within which text objects will be found
rangeSpanThe number of characters in the range within which text objects will be found - may be zero.
Returns
kTrue if there is a first Range, kFalse otherwise

Implements ITextObjectParent::RangeIter.

bool16 ITextObjectParent::SingleRangeIter::GetNextRange (InterfacePtr< const ITextStoryThread > & thread,
TextIndex & threadStart,
int32 & threadSpan,
TextIndex & adjThreadStart,
int32 & adjThreadSpan,
TextIndex & rangeStart,
int32 & rangeSpan 
)
inlinevirtual

Returns a subsequent range (if any) managed by the parent. The range may include the final CR of the TextStoryThread not

Parameters
threadStartThe TextIndex of the start of the Thread
threadSpanThe number of characters in the Thread
adjThreadStartThe adjusted TextIndex of the start of the Thread. For more applications this will be the same as threadStart. However, some implementations such as the backing store wish to prevent access to some number of chracters at the start and end of the story thread without disguising the true thread boundries. All extending adjustments that take for things like Words, Lines, TextStyleRanges, etc will be clipped to the adjThreadStart and adjThreadSpan.
adjThreadSpanThe adjusted number of characters in the Thread
rangeStartThe TextIndex of the start of the range within which text objects will be found
rangeSpanThe number of characters in the range within which text objects will be found - may be zero.
Returns
kTrue if there is a subsequent Range, kFalse otherwise

Implements ITextObjectParent::RangeIter.