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

Public Types | |
| enum | { kDefaultIID = IID_IFOCUSCACHE } |
Public Member Functions | |
| virtual int32 | CountParagraphStyles () const =0 |
| virtual int32 | CountCharacterStyles () const =0 |
| virtual int32 | CountCharacterStylesFromRunIns () const =0 |
| virtual UID | GetNthParagraphStyle (int32 n) const =0 |
| virtual UID | GetNthCharacterStyle (int32 n) const =0 |
| virtual UID | GetNthCharacterStyleFromRunIn (int32 n) const =0 |
| virtual bool16 | IsStyleOverridden (UID style) const =0 |
| virtual int32 | CountSelectedRuns () const =0 |
| virtual int32 | CountAttributes (const ClassID &attr) const =0 |
| virtual const IPMUnknown * | QueryAttributeN (int32 which, const ClassID &attr, const PMIID &interfaceID) const =0 |
| virtual int32 | CountFonts (ClassID fontUIDBoss=kTextAttrFontUIDBoss) const =0 |
| virtual UID | GetNthFamilyUIDAndFace (int32 nthFont, PMString *faceName, ClassID fontUIDBoss=kTextAttrFontUIDBoss) const =0 |
| virtual const PMString & | GetNthFont (int32 nthFont, bool16 *incorrectFace=nil, ClassID fontUIDBoss=kTextAttrFontUIDBoss) const =0 |
| virtual const Fixed * | GetNthMMAxes (int32 nthFont, int32 *numaxes) const =0 |
| virtual bool16 | GetOverrideList (K2Vector< PMString > &overrideStrings, bool16 getForParaStyle) const =0 |
| virtual void | InvalidateCache ()=0 |
| virtual void | ResetCache_NoNotify ()=0 |
| virtual void | Inserted (TextIndex where, int32 howmuch)=0 |
| virtual void | Deleted (TextIndex where, int32 howmuch)=0 |
| virtual void | FocusWasMoved (const ITextModel *model, TextIndex start, TextIndex end, bool16 excludeCacheEnd=kTrue)=0 |
| virtual bool16 | CacheAlreadyBuilt () const =0 |
| virtual uint32 | GetTimeStamp () const =0 |
| virtual void | CopyToAttributeLists (AttributeBossList *attrList, AttributeBossList *mixedList=nil) const =0 |
| virtual bool16 | IsRubyApplied () const =0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
A text range that is active (selected) with an ITextFocus on it has the FocusCache interface that can report back the attributes within the range. Efficient for all attributes, but not the best for just checking one.
| pure virtual |
lets you check if the cache needs building (which is expensive)
| pure virtual |
copies the attributes into attribute boss lists.
| attrList | attributes that are NOT-MIXED are added to this list |
| mixedList | if non-nil, the first value of mixed attributes are added to this list. |
| pure virtual |
How many different values for a particular attribute exist? More than one indicate a mixed selection.
| attr | specifies which text attribute. |
| pure virtual |
How many different character styles are selected?
| pure virtual |
How many different character styles that came from run-in style attributes are selected?
| pure virtual |
Return the number of different fonts in the selection. These will not necessarily be in any particular order.
| fontUIDBoss | which boss (default is kTextAttrFontUIDBoss). |
| pure virtual |
How many different paragraph styles are selected?
| pure virtual |
How many different attribute runs were in the selection?
| pure virtual |
text was deleted fromt the model; may invalidate the cache; shouldn't be necessary to call.
| where | is the position. |
| howmuch | specifies how many characters were deleted. |
| pure virtual |
called automatically when the focus was adjusted, maybe cache needs to be invalidated, maybe not.
| model | is the story. |
| start | is the new beginning of the selection. |
| end | is the end of the new selection. |
| excludeCacheEnd | specifies whether the very end of the selection should cause a recalculation of attributes. |
| pure virtual |
Get the Nth different character style in the selection. Not necessarily in any order.
| n | specifies which character style. |
| pure virtual |
Get the Nth different character style in the selection that came from run-in styles. Not necessarily in any order.
| n | specifies which character style from the run-in style paragraph attributes. |
| pure virtual |
Get InDesign font data for the nth font in the selection.
| nthFont | specifies which font. |
| faceName | is set to the Nth selected font's face name |
| fontUIDBoss | which boss (default is kTextAttrFontUIDBoss). |
| pure virtual |
Get postscript font name information about the nth font in the selection.
| nthFont | which font in the selection is being asked about? |
| incorrectFace | was the applied face correct for this postscript font name? If the face is incorrect (e.g. family = Times, face = "Ornaments") the postscript name will be what was used (e.g. Times-Roman). |
| fontUIDBoss | which boss (default is kTextAttrFontUIDBoss). |
| pure virtual |
Return the multiple-master data for the font.
| nthFont | which font? |
| numaxes | returns how many axes? |
| pure virtual |
Get the Nth different paragraph style in the selection. Not necessarily in any order.
| n | specifies which paragraph style. |
| pure virtual |
Get the list of overrides descriptions applied to the selection.
| overrideList,: | the list of overrides in the selection. |
| getForParaStyle | kTrue get for the paragraph style, kFalse, get for the character style. |
| pure virtual |
| pure virtual |
text was inserted in the model; may invalidate the cache; shouldn't be necessary to call.
| where | is the location of the insert. |
| howmuch | is the number of characters inserted. |
| pure virtual |
invalidate the cache (called by setting attributes for instance) shouldn't be necessary to call
| pure virtual |
checks Ruby Strand for presence of ruby, caches value.
| pure virtual |
Does the specified style have "overrides" applied? The definition of overrides is different for character & paragraph styles, but this routine handles both.
| style | is the style in question. |
| pure virtual |
Return a specific text attribute applied to the selection. Doesn't tunnel into styles.
| which | specifies which of all values for the same attribute should be returned. |
| attr | specifies which text attribute. |
| interfaceID | specifies which interface to return. |
| pure virtual |
invalidate the cache (called by setting attributes for instance) used by selection sub-system shouldn't be necessary to call from public api