![]() | InDesign SDK 20.5 |
Consolidated the following 2.x snippets in here so far:
| inline |
Constructor.
| inlinevirtual |
Destructor.
| ErrorCode SnpEstimateTextDepth::EstimateFrameDepth | ( | const InterfacePtr< ITextFrameColumn > & | textFrameColumn, |
| PMReal & | estimatedDepth | ||
| ) |
Estimates the composed depth of a text frame.
| textFrameColumn | to be measured. |
| estimatedDepth | the composed depth of the text in the frame. |
| ErrorCode SnpEstimateTextDepth::EstimateParcelDepth | ( | const InterfacePtr< IParcel > & | parcel, |
| PMReal & | estimatedDepth | ||
| ) |
Estimates the composed depth of a parcel.
| parcel | to be measured. |
| estimatedDepth | the composed depth of the text in the parcel. |
| ErrorCode SnpEstimateTextDepth::EstimateStoryDepth | ( | const InterfacePtr< ITextModel > & | textModel, |
| PMReal & | estimatedDepth | ||
| ) |
Estimates the composed depth of a story.
| textModel | of story to be measured. |
| estimatedDepth | the composed depth of the text in the story. |
| ErrorCode SnpEstimateTextDepth::EstimateTextDepth | ( | const InterfacePtr< ITextParcelList > & | textParcelList, |
| ParcelKey | fromParcelKey, | ||
| int32 | numberOfParcels, | ||
| PMReal & | estimatedDepth | ||
| ) |
Estimates the depth of the text in a parcel as the y position of the last line of wax (IWaxLine) in the parcel minus the y position of the first line plus the height of the first line.
| textParcelList | gives range of text in each parcel. |
| fromParcelKey | IParcelList index of first parcel to be considered |
| numberOfParcels | must be >=1 |
| estimatedDepth | the composed depth of the text in the parcels. |
| InDesign::TextRange SnpEstimateTextDepth::GetParcelTextRange | ( | IParcel * | parcel | ) |
Return the range of text displayed by the given parcel.
| parcel |
| WideString SnpEstimateTextDepth::GetWideStringFromParcel | ( | IParcel * | parcel | ) |
Return string containing the text displayed in the given parcel.
| parcel | specifies the object whose text is wanted. |
| WideString SnpEstimateTextDepth::GetWideStringFromTextRange | ( | const InDesign::TextRange & | range | ) |
Return string containing the given range of text from the text model.
| range | specifies the text model and range of characters wanted. |
| bool16 SnpEstimateTextDepth::IsStoryOverset | ( | InterfacePtr< ITextModel > | textModel | ) |
Detect if the text in a story is overset via ITextUtils::IsOverset.
| textModel | for story to be tested. |
| bool16 SnpEstimateTextDepth::IsTextFrameOverset | ( | const InterfacePtr< ITextFrameColumn > | textFrameColumn | ) |
Detect if a text frame is overset. When a frame is not large enough to show all of the remaining characters of the the story it displays it is considered by this method as overset.
| IParcel * SnpEstimateTextDepth::QueryParcelContaining | ( | ITextModel * | textModel, |
| const TextIndex | at | ||
| ) |
Return interface pointer to parcel that displays the given TextIndex or nil if the TextIndex is not displayed.
| textModel | |
| at |