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

Public Types | |
| enum | { kDefaultIID = IID_IGALLEYFITCALCULATOR } |
Public Member Functions | |
| virtual void | SetDocRef (const UIDRef &docRef)=0 |
| virtual UIDRef | GetDocRef ()=0 |
| virtual void | SetStoryRef (const UIDRef &storyRef)=0 |
| virtual UIDRef | GetStoryRef ()=0 |
| virtual void | SetFitControl (bool16 useCachedLineCount=kFalse, bool16 updateFit=kTrue)=0 |
| virtual void | SetFitType (IGalleyInfoUtils::FitType fitType)=0 |
| virtual IGalleyInfoUtils::FitType | GetFitType ()=0 |
| virtual void | SetCharCount (int32 charCount)=0 |
| virtual int32 | GetCharCount ()=0 |
| virtual void | SetLineCount (int32 lineCount)=0 |
| virtual int32 | GetLineCount ()=0 |
| virtual void | SetLastLineVPos (PMReal lastLineVPos)=0 |
| virtual PMReal | GetLastLineVPos ()=0 |
| virtual void | SetLastLineHeight (PMReal lastLineHeight)=0 |
| virtual PMReal | GetLastLineHeight ()=0 |
| virtual void | SetLastValidFrame (const UIDRef &frameRef)=0 |
| virtual UIDRef | GetLastValidFrame ()=0 |
| virtual void | SetFirstOverflowLine (int32 firstOverflowLine)=0 |
| virtual int32 | GetFirstOverflowLine ()=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 is a data interface associated with the fit widget. It contains or calculates information related to how close a story is to fit. The widget uses this information to display a percentage fit bar.
| pure virtual |
Current cached character count
| pure virtual |
Get a document reference that the fit calculations are performed on
| pure virtual |
Not used. Get index of first line in overset
| pure virtual |
Get the current fit type used to decide what type string to display in the fit control (words, lines, depth).
| pure virtual |
Not used. Height of the last line in the story.
| pure virtual |
Not used. Vertical position of the last line of text
| pure virtual |
Not used. Last text frame that has text in it.
| pure virtual |
How many lines are there in the story. Optional data, information required only if calling SetFitControl with useCachedLineCount == kTrue
| pure virtual |
Get the text story reference that fit information is calculated for.
| pure virtual |
How many characters are there in the story. Optional data, information required only if calling SetFitControl with useCachedLineCount == kTrue
| charCount | - character count |
| pure virtual |
Set a document reference that the fit calculations will be performed on
| docRef | the document reference to perform the calculations on |
| pure virtual |
Not used. Set index of first line in overset
| firstOverflowLine | - index of first line in overset |
| pure virtual |
Cause the fit information to be calculated and the fit widget to be updated.
| useCachedLineCount | obsolete to be removed |
| updateFit | kTrue to invalidate the fit widget for draw |
| pure virtual |
Get the current fit type used to decide what type string to display in the fit control (words, lines, depth).
| fitType | - pass the type fit that the ui should display. Must have set the corresponding fields in this interface to use the correct values. |
| pure virtual |
Not used. Height of the last line in the story.
| lastLineHeight | - last line in story height |
| pure virtual |
Not used. Vertical position of the last line of text extracted from waxLine->GetYPosition()
| lastLineVPos | - position of line |
| pure virtual |
Not used. Last text frame that has text in it.
| frameRef | - last valid frame ref |
| pure virtual |
Set how many lines are there in the story. Optional data, information required only if calling SetFitControl with useCachedLineCount == kTrue
| lineCount | - line count |
| pure virtual |
Set a story to perform fit calculations on.
| storyRef | the story to set the interface to look at |