![]() | InDesign SDK 20.5 |
#include <IGalleyInfoUtils.h>

Public Types | |
| enum | { kDefaultIID = IID_IGALLEYINFOUTILS } |
| enum | FitType { kDepthFit = 0, kWordCountFit, kLineCountFit, kPageCountFit, kGeometryFit, kCharacterFit, kDisableFit } |
Public Member Functions | |
| virtual int32 | StoryCountWords (ITextModel *textModel, TextIndex begin, TextIndex end)=0 |
| virtual int32 | StoryCountLines (ITextModel *textModel, TextIndex begin, TextIndex end)=0 |
| virtual int32 | StoryCountFit (ITextModel *textModel, PMReal *pctFilled=nil, FitType fitMethod=kDepthFit, PMReal *fractionalFitValue=nil)=0 |
| virtual FitInformation | StoryCountFit (ITextModel *textModel, FitType fitMethod)=0 |
| virtual bool16 | ToggleIdle (bool16 start=kTrue, IPMUnknown *pIdleLoc=nil)=0 |
| virtual bool16 | ShouldCountLine (IWaxLine **waxLine, IWaxIterator *waxIterator)=0 |
| virtual PMReal | StoryCountDepth (ITextModel *textModel, const StatsScope &scope)=0 |
| virtual int32 | GetTotalLines (void)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
This interface contains methods for calculating text statistic like amount of text overset, underset etc.
| pure virtual |
Get count for TotalLines that are possible inside textFrame
| pure virtual |
Returns whether a specific text line should be added to the line count when calling StoryCountLines() above.
| waxLine | line to check if it should be counted |
| waxIterator | iterator used to get the waxline |
| pure virtual |
Returns the physical composed (layout view) on screen depth of a story or part of a story if a range is asked for which is not the entire story. The depth is returned in default InDesign units. This will return -1.0 if it was unable to calculate the depth for some reason.
| textModel | story to measure the depth of |
| begin | first textindex to measure depth from. |
| pure virtual |
Will calculate the how well the text fits based on several methods. Recommend that the routine returning FitInformation be used instead although this one is provided for legacy.
| textModel | story to measure the depth of |
| pctFilled | return parameter gives the total percentage fit 1.0 is totally fit smaller than 1.0 is a percentage |
| fitMethod | what type of fit calculation to perform |
| can | return a real value instead of a int32 in this parameter if more precision is needed |
| pure virtual |
Will calculate the how well the text fits based on several methods. Returns better information than the above StoryCountFit routine.
| textModel | story to measure the depth of |
| pctFilled | return parameter gives the total percentage fit 1.0 is totally fit smaller than 1.0 is a percentage |
| fitMethod | what type of fit calculation to perform |
| can | return a real value instead of a int32 in this parameter if more precision is needed |
| pure virtual |
No longer used by InCopy was used in 2.x to calculate the number of lines has been replaced to use ITypeToolSuite::GetWordCountInfo instead and the new method is shared with InDesign.
| textModel | story to count lines of |
| begin | text index to start counting lines at. |
| end | text index to stop counting lines at. |
| pure virtual |
No longer used by InCopy was used in 2.x to calculate the number of words has been replaced to use ITypeToolSuite::GetWordCountInfo instead and the new method is shared with InDesign.
| textModel | story to count words of |
| begin | text index to start counting words at. |
| end | text index to stop counting words at. |
| pure virtual |
Toggle the text statistics idle task on or off
| start | kTrue to turn it on |
| pIdleLoc | an interface in the same boss as the idle task |