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

Public Types | |
| enum | { kDefaultIID = IID_ITEXTLINES } |
| enum | LinesType { kLayoutLineEnds = 0, kWindowLineEnds } |
| enum | ExtendType { kDontExtend = 0, kExtendLeft, kExtendRight } |
Public Member Functions | |
| virtual LinesType | GetLinesType ()=0 |
| virtual void | SetLinesType (LinesType lType)=0 |
| virtual void | UpdateFontInfo (const PMString *fontName, bool16 initializeLines)=0 |
| virtual void | UpdateLeading ()=0 |
| virtual PMString & | GetDisplayFontName (IFontMgr::FontStyleBits styleBits=IFontMgr::kNormal)=0 |
| virtual PMReal | GetDisplayFontSize (IDrawingStyle::CapitalizeMode capMode=IDrawingStyle::kCapNormal)=0 |
| virtual PMReal | GetLineHeight (bool16 textOnly=kFalse)=0 |
| virtual IFontInstance * | QueryDisplayFontInstance (IFontMgr::FontStyleBits styleBits, IDrawingStyle::CapitalizeMode capMode)=0 |
| virtual bool16 | ComposeLayout ()=0 |
| virtual void | SetComposeLayout (bool16 shouldCompose)=0 |
| virtual TextIndex | GetLineStartOffsetAtLine (int32 at)=0 |
| virtual TextIndex | GetLineEndOffsetAtLine (int32 at)=0 |
| virtual PMReal | GetYPosition (int32 at)=0 |
| virtual PMReal | GetYPosition (int32 storyIndex, int32 at)=0 |
| virtual PMReal | GetXPosition (int32 at)=0 |
| virtual PMRect | CalculateLineRect (int32 at)=0 |
| virtual PMRect | CalculateLineRect (int32 storyIndex, int32 at)=0 |
| virtual const LineDescription | GetLine (int32 at, bool16 returnRuns=kFalse)=0 |
| virtual const LineDescription | GetLine (int32 storyIndex, int32 at, bool16 returnRuns)=0 |
| virtual void | InitializeLines (const K2Vector< ComposeInformation > &composeInformation, bool16 forceInitialization=kFalse, bool16 scrollARangeIntoView=kFalse)=0 |
| virtual void | AppendLine (const LineDescription &line, bool16 autoScroll=kTrue)=0 |
| virtual bool16 | InsertLine (int32 beforeIndex, const LineDescription &line, bool16 autoScroll=kTrue)=0 |
| virtual bool16 | DeleteLine (int32 at)=0 |
| virtual void | DeleteAllLines ()=0 |
| virtual bool16 | ReplaceLine (int32 at, const LineDescription &line)=0 |
| virtual bool16 | AddFrameDivider (IWaxLine *waxLine, int32 at, const PMPoint &atPosition, UID previousLineFrameUID, bool16 isFrontMost)=0 |
| virtual void | AddLineFromLayoutLine (IWaxLine *waxLine, int32 at, const PMPoint &atPosition, int32 lineNumber, uint32 lineID, bool16 isFrontMost)=0 |
| virtual void | RemoveExcessLines (int32 startIndex, bool16 isFrontMost, bool16 autoScroll=kTrue)=0 |
| virtual void | UpdateLine (int32 at)=0 |
| virtual void | UpdateLine (int32 storyIndex, int32 at)=0 |
| virtual void | SetLastValidIndex (int32 index)=0 |
| virtual int32 | GetLastValidIndex ()=0 |
| virtual int32 | GetLastValidIndex (int32 storyIndex)=0 |
| virtual int32 | GetLastLineIndex ()=0 |
| virtual int32 | GetLastLineIndex (int32 storyIndex)=0 |
| virtual int32 | GetFirstTrueTextLineIndex ()=0 |
| virtual int32 | GetFirstTrueTextLineIndex (int32 storyIndex)=0 |
| virtual void | DeleteCacheForAllLines ()=0 |
| virtual void | SyncScrolling (bool16 lockRelativePosition=kFalse, bool16 scrollToASelectionRange=kFalse)=0 |
| virtual bool16 | SetUniqueIDOfLine (int32 at, uint32 newID)=0 |
| virtual int32 | FindIndexOfLineWithID (uint32 id)=0 |
| virtual int32 | FindIndexOfLineWithID (int32 storyIndex, uint32 id)=0 |
| virtual int32 | FindIndexOfLineAtTextOffset (TextIndex offset, int32 &offsetIntoLine, RangeData::Lean lean, bool16 checkRunBoundary=kFalse)=0 |
| virtual int32 | FindIndexOfLineAtDisplayOffset (TextIndex offset, int32 &offsetIntoLine, RangeData::Lean lean)=0 |
| virtual int32 | FindIndexOfLineAtDisplayOffset (int32 storyIndex, TextIndex offset, int32 &offsetIntoLine, RangeData::Lean lean)=0 |
| virtual void | DisplayRangeToLineIndices (int32 storyIndex, const RangeData &range, int32 *low, int32 *high)=0 |
| virtual int32 | FindIndexOfLineAtPoint (const PMPoint &point)=0 |
| virtual int32 | FindIndexOfLineAtPoint (int32 storyIndex, const PMPoint &point)=0 |
| virtual PMReal | GetXPositionOfDisplayOffsetCharacter (int32 atLineIndex, int32 displayOffsetIntoLine)=0 |
| virtual PMReal | GetXPositionOfDisplayOffsetCharacter (int32 storyIndex, int32 atLineIndex, int32 displayOffsetIntoLine)=0 |
| virtual PMReal | GetXPositionOfCharacter (int32 atLineIndex, int32 characterOffsetIntoLine, TextIndex absoluteTextOffset=-1, bool16 isEndPosition=kFalse, ExtendType extend=kDontExtend, TextIndex absoluteTextEndOffset=-1)=0 |
| virtual PMReal | GetXPositionOfCharacterInRun (int32 atLineIndex, int32 runIndex, int32 characterOffsetIntoRun)=0 |
| virtual bool16 | FindCharacterAtXPosition (int32 atLineIndex, PMReal &xPosition, int32 &offsetIntoLine)=0 |
| virtual PMReal | HitTestText (int32 storyIndex, int32 *lineIndex, const PMPoint &x, TextIndex *nextLine)=0 |
| virtual int32 | GetIndexOfFirstLineInRect (PMRect rectToFit, bool16 partialFitOK=kTrue)=0 |
| virtual void | SetHilite (TextIndex start, TextIndex end, bool16 drawHilite=kTrue, UID extendToDeletedUID=kInvalidUID)=0 |
| virtual void | SetHilite (const RangeData &range, bool16 drawHilite=kTrue, UID extendToDeletedUID=kInvalidUID)=0 |
| virtual void | GetHilite (TextIndex &start, TextIndex &end, SelectionExtension *extendToDeletedUIDs=nil)=0 |
| virtual void | DrawTextHighlight (const InDesign::TextRange &newSelection, const InDesign::TextRange &oldSelection, SelectionExtension *newExtension=nil, SelectionExtension *oldExtension=nil)=0 |
| virtual bool16 | DrawLine (int32 at, IGraphicsPort *gPort, const PMRect &clipRect, const PMPoint &scrollCompensationValue, IPMFont *displayFont, PMReal displaySize, bool16 topLineInDraw)=0 |
| virtual void | InvalidateLine (int32 at, bool16 isFrontMost=kFalse)=0 |
| virtual void | InvalidateRun (int32 at, int32 whichRun, TextIndex startOffsetInRun, TextIndex endOffsetInRun, bool16 isFrontMost=kFalse)=0 |
| virtual void | ClearPendingInvalRect ()=0 |
| virtual void | AddToPendingInvalRect (const PMRect &rectToAdd)=0 |
| virtual PMRect | GetPendingInvalRect ()=0 |
| virtual void | PlayPendingInvals (bool16 instantDraw=kFalse)=0 |
| virtual void | SuspendPlayPendingInvals ()=0 |
| virtual void | ResumePlayPendingInvals ()=0 |
| virtual bool16 | GetPlayPendingInvals () const =0 |
| virtual void | RecordUndoRedoPendingInvals (const PMRect &invals)=0 |
| virtual PMRect * | GetPendingInvalsForUndoRedo ()=0 |
| virtual int32 | GetPages (PMRect rectToFit, int32 columns)=0 |
| virtual void | SetRanges (PMString ranges)=0 |
| virtual void | GetLineNumberStartEnd (int32 &start, int32 &end)=0 |
| virtual void | InitializeStoryCollapsedState (K2Vector< StoryState > &storyList)=0 |
| virtual TextIndex | ModelOffsetToDisplayOffset (TextIndex modelOffset, int32 lineIndex, bool16 ignoreRunTypes=kFalse)=0 |
| virtual TextIndex | ModelIndexToDisplayIndex (TextIndex modelIndex)=0 |
| virtual TextIndex | ModelIndexToDisplayIndex (int32 storyIndex, TextIndex modelIndex)=0 |
| virtual TextIndex | DisplayIndexToModelIndex (TextIndex displayIndex)=0 |
| virtual TextIndex | DisplayIndexToModelIndex (int32 storyIndex, TextIndex displayIndex)=0 |
| virtual void | SetCurrentStoryIndex (int32 i)=0 |
| virtual int32 | GetCurrentStoryIndex ()=0 |
| virtual int32 | GetStoryCount ()=0 |
| virtual UIDList * | GetStoryRefList ()=0 |
| virtual int32 | FindIndexOfStoryAtYPosition (PMReal yPosition, bool16 ExtendLastLineOfLastStoryDown=kFalse)=0 |
| virtual const UIDRef & | GetStoryRef (int32 storyIndex)=0 |
| virtual void | SetStoryRef (const UIDRef &ref, int32 storyIndex)=0 |
| virtual PMReal | GetStoryYDrawStart (int32 storyIndex) const =0 |
| virtual void | SetStoryYDrawStart (PMReal yStartPosition, int32 storyIndex)=0 |
| virtual bool16 | IsStoryCollapsed (int32 storyIndex)=0 |
| virtual void | SetStoryCollapseState (const K2Vector< int32 > &storyIndexes, bool16 collapse)=0 |
| virtual bool16 | IsStoryBarSelected (int32 storyIndex)=0 |
| virtual void | SetStoryBarSelected (int32 storyIndex, bool16 selected)=0 |
| virtual void | RemoveAllStories ()=0 |
| virtual bool8 | GetUseTextRuns ()=0 |
| virtual void | DrawTextDisplayHighlight (int32 storyIndex, const RangeData &newRange, const RangeData &oldRange)=0 |
| virtual TextIndex | DisplayIndexToModelIndex_ (int32 storyIndex, TextIndex displayIndex)=0 |
| virtual RangeData | ModelToDisplayRange (int32 storyIndex, const RangeData &modelRange, UID leftExtra, UID rightExtra)=0 |
| virtual RangeData | DisplayToModelRange (int32 storyIndex, const RangeData &displayRange, UID *leftExtra, UID *rightExtra)=0 |
| virtual RangeData | AtomicRange (int32 storyIndex, RangeData caret, const RangeData &relativeTo)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Friends | |
| class | StoryManager |
The textlines are what defines what characters are in each line of the display on the screen. These are roughly equivalent to the WaxLines in the layout view. This interface owns all line information for the galley and story views. There are methods present in this interface for getting and setting of line information. Normally, non-internal callers will be interested in getting information only. The setting is generally left up the an interaction between this interface an the IQuickComposer interface. The methods are divided up into several sections... Global Attributes - like display font LineDescription Access - methods to get information about a specific line Line Maintenance - Methods used to modify lines (delete or add or recompose all). Also, there are methods to inform callers how many lines there are. Searching - Methods to search through lines and find one of interest based on textIndexes mostly. Text Display - Methods to display lines on screen. View Invaliing - Methods to cause parts of view corresponding to lines to redraw. Printing - mostly internal use for changes to drawing that occur when printing. Text Offset Type Conversion - story/galley uses two different types of text indices (Display and Model). The model indices match the indices in the ITextModel while the display indices match the order that text is actually displayed on the screen in galley/story. The methods in this section aid in the conversion between the two types. Story Management - methods that deal with the management of multiple stories in a single view. All the stories text lines that are displayed in a single view are owned by a single instance of the ITextLines interface. That is to say there is one instance of this interface for each story/galley view no matter how many stories are displayed in the view. The methods in the story management section help get access to each individual stories text lines.
Notes: For routines that do not take a storyIndex it is assumed that the operation will apply to the currently active story. See the methods GetCurrentStoryIndex() and SetCurrentStoryIndex(). InCopy can have more than one story active in a view. InDesign has a one per view approach.
| pure virtual |
This should typically only be used internally. This is used in galley view only (not story) to add the frame and column dividers. This items are actually lines of a specific type. This routine actually decides whether it's should add a divider or not base on the parameters passed in.
| waxLine | layout wax line information for the line that is after the potential frame divider. |
| at | index where the divider might be added before. |
| atPosition | the x position relative to the left side of the view to add the frame divider. |
| previousLineFrameUID | uid of the frame of the wax line before this line. |
| isFrontMost | if view is front most then draw will occur right away otherwise it will simply invalidate and draw later. |
| pure virtual |
This should typically only be used internally. Used to create a matching galley line from a layout wax line. Not used in story view.
| waxLine | layout wax line information to create a matching galley line for. |
| at | index of galley line. |
| atPosition | the x position relative to the left side of the view to add the frame divider. |
| lineNumber | used to display in the info column multiple galley lines may map to one waxline because galley lines also wrap at view edge. |
| lineID | a matching id is stored with the waxline. |
| isFrontMost | if view is front most then draw will occur right away otherwise it will simply invalidate and draw later. |
| pure virtual |
Internal use only. Stores rectanglar area to redraw when window is frontmost which draws sooner than a system inval would.
| rectToAdd |
| pure virtual |
Warning: This should typically only be used internally. The composer will call this to append new lines of text to the view.
| line | description of the line to append |
| autoScroll | should the view scroll to the current text cursor location after appending the line. |
| pure virtual |
For a given caret position return an atomic range surrounding it (internal use)
| storyIndex | index of story to operate on |
| caret | model index |
| relativeTo | extra data for internal use. |
| pure virtual |
Get a rectangle describing a line bounds. The rectangle is described in local coordinates of the view.
| at | index of line. |
| pure virtual |
Get a rectangle describing a line bounds. The rectangle is described in local coordinates of the writingview
| storyIndex | index of story to get line from |
| at | index of line. |
| pure virtual |
Internal use only
| pure virtual |
Deprecated (don't use won't do anything)
| pure virtual |
This should typically only be used internally. The composer will call this to remove all lines from the view.
| pure virtual |
Internal use only
| pure virtual |
This should typically only be used internally. The composer will call this to remove unneeded lines from the view.
| at | index of the line to remove. |
| pure virtual |
Convert a display text index to a model text index
| displayIndex | index to convert |
| pure virtual |
Convert a display text index to a model text index
| storyIndex | index of story to use for conversion |
| displayIndex | index to convert |
| pure virtual |
Convert a display index to a model index
| storyIndex | index of story to operate on |
| displayIndex | display index to convert |
| pure virtual |
Finds the corresponding line indeces for a given text index range.
| storyIndex | to use to get the lines from the range |
| range | find lines corresponding to this text range |
| low | first line with a value in the given range (returned to caller) |
| high | last line with a value in the given range (returned to caller) |
| pure virtual |
Convert a display range to a model index range
| storyIndex | index of story to operate on |
| displayRange | display index range to convert |
| leftExtra | external callers may ignore. |
| rightExtra | external callers may ignore. |
| pure virtual |
Draws a line to the view
| at | index of line to draw |
| gPort | graphics port to draw in |
| clipRect | rectangle to clip drawing to |
| scrollCompensationValue | value we are to within the view. |
| displayFont | font to display main text of line in may be overridden for special run types or missing glyphs |
| displaySize | size to display text of line at. |
| topLineInDraw | is this the first line draw for this round of drawing. Pass kFalse if not sure |
| pure virtual |
Draw a highlight range while erasing previous range. Called internally to match selection state.
| storyIndex | index of story to operate on |
| newRange | range to select (highlight) |
| oldRange | range to deselect (unhighlight) |
| pure virtual |
Method to draw a text highlight in the story/galley views. Should be called from the selection hiliter (BaseTextSelectionHiliter) shouldn't call from other places doing so can cause highlight draws to occur.
| newSelection | New selection range to draw |
| oldSelection | Old selection range to erase |
| newExtension | New selection extension uids to draw |
| oldExtension | Old selection extension uids to erase |
| pure virtual |
Find a character at a given x (horizontal from view left) draw position
| atLineIndex | line index within the current story |
| xPosition | horizontal postion (from view left) |
| offsetIntoLine | gives the offset (index) within of the line of the hit character. |
| pure virtual |
Finds the line and the offset into the line of the display index requested.
| offset | text index to search for in the text lines |
| offsetIntoLine | will contain the number of characters into the line the display index falls at. |
| lean | for cases where the text index falls between two lines this param will facilitate the choice the method will make. LeanBack use first line while LeanForward will use the second |
| pure virtual |
Finds the line and the offset into the line of the display index requested.
| storyIndex | search in this story for the display index |
| offset | text index to search for in the text lines |
| offsetIntoLine | will contain the number of characters into the line the display index falls at. |
| lean | for cases where the text index falls between two lines this param will facilitate the choice the method will make. LeanBack use first line while LeanForward will use the second |
| pure virtual |
Given a coordinate in the view give the index of a line at this coordinate
| point | coordinate to find line at |
| pure virtual |
Given a coordinate in the view give the index of a line at this coordinate
| point | coordinate to find line at |
| pure virtual |
Finds the line and the offset into the line of the text index requested.
| offset | text index to search for in the text lines |
| offsetIntoLine | will contain the number of characters into the line the text index falls at. |
| lean | for cases where the text index falls between two lines this param will facilitate the choice the method will make. LeanBack use first line while LeanForward will use the second |
| checkRunBoundary | if true then for deleted text if the offset is at the start of deleted text make sure we get the first line not the line at the end of the deleted text run. |
| pure virtual |
Return an index of a line with a specific id.
| id | search the text lines for an id that matches this |
| pure virtual |
Return an index of a line with a specific id.
| storyIndex | index of the story to search in. |
| id | search the text lines for an id that matches this |
| pure virtual |
Find the index of a story at a given y view position
| yPosition | the y view position |
| ExtendLastLineOfStoryDown | count area below the last line of the story as belonging to the last story |
| pure virtual |
Index of currently active story
| pure virtual |
Can be used to find out the name of the display font.
| styleBits | the font variant type (see IFontMgr). |
| pure virtual |
Get the point size of the display font.
| styleBits | the font variant type (see IFontMgr). |
| pure virtual |
Index of first line that actually might hold text as opposed to a storyBar or other decoration
| pure virtual |
Index of first line that actually might hold text as opposed to a storyBar or other decoration
| storyIndex | index of story to get first valid index of. |
| pure virtual |
Method to get the current text highlight information. It really just returns the current selection information
| start | the beginning of the current text selection |
| end | the end of the current text selection |
| extendToUIDPair | current uids for track change deleted text selection. |
| pure virtual |
Get first line that intersects the rectangle. This is a quick routine it uses a estimation to get close first then zeros in on the first line from there.
| rectToFit | rectangle to check for a intersecting line |
| partialFitOK | ok to return a line that doesn't totally fall within a rectagle |
| pure virtual |
Return the index of the last line in the current story
| pure virtual |
Return the index of the last line in the specified story
| storyIndex | index of story to get the last line index of. |
| pure virtual |
Return the last updated line (see the UpdateLine() method).
| pure virtual |
Return the last updated line (see the UpdateLine() method).
| storyIndex | index of story to get last valid line from |
| pure virtual |
Get a rectangle describing a line bounds. The rectangle is described in local coordinates of the writingview
| storyIndex | index of story to get line from |
| at | index of line. |
| pure virtual |
Get a full line description for a specific line. Some data in this structure may not be up to date until UpdateLine() is called. Specifically, the text indexes associated with the line are updated with the UpdateLine() method (in this same interface see comments by the UpdateLine method).
| storyIndex | index of story to get line from |
| at | index of line. |
| returnRuns | fill in kTrue to get the RunDescription pointer filled in kFalse (default) otherwise. |
| pure virtual |
Get the text model index of a line end.
| at | index of line. |
| pure virtual |
Get the height of a line.
| textOnly | if you only want to get the text portion not the extra for line spacing pass true. |
| pure virtual |
Get the line number (galley) of the last line and first line in a story
| start | first line number in a story (returned) |
| end | last line number in a story (returned) |
| pure virtual |
Get the text model index of a line start.
| at | index of line. |
| pure virtual |
Will describe the type of line endings in terms of the LinesType enum.
| pure virtual |
Get number of pages to print text
| rectToFit | specifies page height |
| columns | number of columns to print on a page |
| pure virtual |
Internal use only doesn't include an area to be redrawn do to a system inval
| pure virtual |
Internal use only.
| pure virtual |
Is drawing currently suspended
| pure virtual |
Returns the number of stories in displayed in the story/galley view
| pure virtual |
Get a story ref for a given story index
| storyIndex | index of story to get a ref for |
| pure virtual |
Get a list (in display order) of the uidref's of all stories displayed in the story/galley view.
| pure virtual |
Get the yDraw position of a story
| storyIndex | story index to get vertical position of |
| pure virtual |
Is view displaying track changes and notes.
| pure virtual |
Get the left start X offset of a line of the current story.
| at | index of line. |
| pure virtual |
Given a text index offset into a line return the horizontal distance this character is drawn at on the screen from the left side of the view.
| atLineIndex | index of line we want the x-position of a character for |
| characterOffsetIntoLine | text model index of character (offset into line not from model start) |
| absoluteTextOffset | text model index of character (model start) |
| isEndPosition | is this position at the end of a line. |
| extend | used for track change deleted text (internally) if true extend distance to include the deleted text run adjacent (if present). |
| absoluteTextEndOffset | used internally for track change deleted text leave -1 |
| pure virtual |
Given an index of a run within a line and a line index within the current story and a character offset within the run find the display distance of that character offset
| atLineIndex | line index within the current story |
| index | of a run within a line |
| character | offset within the run |
| pure virtual |
Given a display offset into a line return the horizontal distance this character is drawn at on the screen from the left side of the view.
| atLineIndex | index of line we want the x-position of a character for |
| displayOffsetIntoLine | display index into a line |
| pure virtual |
Given a display offset into a line return the horizontal distance this character is drawn at on the screen from the left side of the view.
| storyIndex | story that the line lives in |
| atLineIndex | index of line we want the x-position of a character for |
| displayOffsetIntoLine | display index into a line |
| pure virtual |
Get the Y offset of the line.
| at | index of line. |
| pure virtual |
Get the left start X offset of a line.
| storyIndex | index of story to get line from. |
| pure virtual |
Find line at point and return a text index hit in galley display indexes
| storyIndex | story being hit tested |
| lineIndex | index of line hit |
| x | point to find line at |
| nextLine | text index of the first character in the next line after the line hit (useful for the selection code) |
| pure virtual |
Recompose all lines.
| composeInformation | list of stories to recompose |
| forceInitialization | recompose even if already initialized if TRUE. |
| scrollARangeIntoView | if a range is selected scroll it into view if this is TRUe |
| pure virtual |
Set stories intial collapse or expanded state when printing
| storyList | stories and their corresponding collapse state |
| pure virtual |
This should typically only be used internally. The composer will call this to insert a new lines of text to the view.
| beforeIndex | text line index to insert before. |
| line | description of the line to insert. |
| autoScroll | should the view scroll to the current text cursor location after appending the line. |
| pure virtual |
Invalidate line for later refresh
| at | index of line to draw |
| isFrontMost | is the view frontMost (can pass false if unsure it will still work) |
| pure virtual |
Invalidate run within a line for later refresh. Normally, InvalidateLine is fine instead of this routine and much simpler to use
| at | index of line to draw |
| whichRun | index of run within line to draw |
| startOffsetInRun | textIndex into run to start inval at |
| endOffsetInRun | text index into run to end inval at |
| isFrontMost | is the view frontMost (can pass false if unsure it will still work) |
| pure virtual |
A story divider bar may be selected (InCopy only) see if it is selected
| storyIndex | index of story (and associated story bar to check) |
| pure virtual |
InCopy only stories may be collapsed (hidden except for story divider) see if this is true for a given story
| storyIndex | index to check if collapsed |
| pure virtual |
Convert a model text index to a display text index
| modelIndex | to convert |
| pure virtual |
Convert a model text index to a display text index
| storyIndex | story to use for the conversion |
| modelIndex | to convert |
| pure virtual |
Convert a model text index to a display text index. Mostly for internal use see ModelIndexToDisplayIndex instead.
| modelOffset | model text index to convert |
| lineIndex | line that the model text index lives in |
| ignoreRunTypes | normally routine will only normally look through run types < RunDescription::endPrimaryStoryTypes if true this routine will look through other types as well. kFalse is normally what is wanted |
| pure virtual |
Convert a model range to a display index range
| storyIndex | index of story to operate on |
| modelRange | model index range to convert |
| leftExtra | only used for track changes external users should most likely pass kInvalidUID |
| rightExtra | only used for track changes external users should most likely pass kInvalidUID |
| pure virtual |
Internal use only. Draw all pending invals now don't wait for a system inval to come through
| instantDraw | request immediate drawing instead of inval. May not happen if drawing is suspended. Usually fine to let inval handle it. |
| pure virtual |
Query an instance of the display font.
| styleBits | the font variant type (see IFontMgr). |
| capMode | interested instance of display font for which type kCapSmallLowercase, kCapNormal, kCapAll, kCapSmallEverything, kCapLowercase. |
| pure virtual |
Internal use only.
| pure virtual |
Clear a view of all stories must put stories back in quickly. Should only be used internally normally
| pure virtual |
This should typically only be used internally. Used to remove excess lines that may be present after compostion finishes.
| startIndex | . |
| atPosition | the x position relative to the left side of the view to add the frame divider. |
| lineNumber | used to display in the info column multiple galley lines may map to one waxline because galley lines also wrap at view edge. |
| lineID | a matching id is stored with the waxline. |
| isFrontMost | if view is front most then draw will occur right away otherwise it will simply invalidate and draw later. |
| pure virtual |
This should typically only be used internally. The composer will call this to replace a line with a different line description.
| at | the index of the line to replace. |
| line | description of the new line that will replace the old line information. |
| pure virtual |
Resume drawing (causes a full screen redraw)
| pure virtual |
Deprecated (don't use won't do anything)
| pure virtual |
Set the current model display index (used for all routines in ITextLines that don't take a storyIndex). Note that these indexes are specific to the story/galley view not the IStoryList interface. See the GetStoryRefList() routine in this file. They are indexes into the ref list returned by GetStoryRefList().
| i | index of story to use |
| pure virtual |
This no longer has meaning in Dragontail (depricated) Set a selection instead
| pure virtual |
This no longer has meaning in Dragontail (depricated) Set a selection instead
| pure virtual |
It's not expected 3rd parties would use this. This is only set from the composer. Improper use can cause crashes and screen draw problems.
| index | index of the last valid line |
| pure virtual |
Allows the caller to change the type of line endings. Should normally go through the IGalleyUtils::SetDocWindowView() to do this. This call should only be used in InCopy since InDesign doesn't support galley view only story.
| lType | can pass in either kWindowLineEnds or kLayoutLineEnds (see GetLinesType()) |
| pure virtual |
Set ranges of text to print
| ranges | ranges of text to print |
| pure virtual |
Mark a story bar as selected (internal use)
| storyIndex | index of story (and associated story bar to check) |
| selected | value to set selected state to. kTrue if want to select. |
| pure virtual |
For a list of story indeces in a view set the collapse state
| stories | indices to collapse or expand |
| collapse | kTrue to collapse or false to expand |
| pure virtual |
Used to rearrange draw order of stories set a ref at a given story index. Should use the higher level kReorderStoriesCmdBoss to do this correctly
| ref | story to insert |
| storyIndex | index to place story at |
| pure virtual |
Internal use, set the yDraw position of a story
| yStartPosition | where to start drawing the given story at horizontally. |
| storyIndex | story index to set vertical position of |
| pure virtual |
Set an ID is used to connect TextLines to WaxLines. Shouldn't be called externally. Specific to galley view story doesn't care about this
| at | index of line to assign an id to |
| newID | id to store with a text line this id will match an id stored with a equivalent IWaxLine. |
| pure virtual |
Suspend drawing temporarily while we do some multiple step operations and we don't want to see the screen refreshing during these.
| pure virtual |
Update the scroll bar values and scroll the view to the current selection location.
| lockRelativePosition | don't scroll just update the scroll bars used during background composition if TRUE |
| scrollToASelectionRange | scroll to a range not just an insertion point if TRUE |
| pure virtual |
Allows the caller to change the display font for the view. This is really for internal use external callers should go through kSetGalleyDisplayFontCmdBoss which will end up calling this.
| fontName | name of the font to use as a display font. |
| initializeLines | pass true to cause the lines to be recomposed with the new display font information. |
| pure virtual |
Allows the caller to change the line spacing amount for the view. This is really for internal use external callers should go through kSetLeadingCmdBoss which will end up calling this.
| fontName | name of the font to use as a display font. |
| initializeLines | pass true to cause the lines to be recomposed with the new display font information. |
| pure virtual |
Causes the LineDescription (text index values) to be updated to match the model. This must be called prior to fetching any LineDescription and looking at any of the model or display text index fields. Also, it is not a good idea to simply update through the last line index this will cause a performance hit as then every line (that is not already updated) prior to the index of the line requested will need to be updated. It is highly recommended that the routine GetLineStartOffsetAtLine() or GetLineEndOffsetAtLine() be used when possible instead of this call for external users.
| at | index of line to update through. |
| pure virtual |
Causes the LineDescription (text index values) to be updated to match the model. This must be called prior to fetching any LineDescription and looking at any of the model or display text index fields. Also, it is not a good idea to simply update through the last line index this will cause a performance hit as then every line (that is not already updated) prior to the index of the line requested will need to be updated. It is highly recommended that the routine GetLineStartOffsetAtLine() or GetLineEndOffsetAtLine() be used when possible instead of this call for external users.
| storyIndex | index of story to get line from |
| at | index of line to update through. |