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

Public Member Functions | |
| virtual UID | GetBasedOn () const =0 |
| virtual UID | GetNextStyle () const =0 |
| virtual UID | GetCharStyle () const =0 |
| virtual UID | GetPreviewColor () const =0 |
| virtual const PMString & | GetName () const =0 |
| virtual bool16 | IsStyleImported () const =0 |
| virtual void | SetBasedOn (const UID &base)=0 |
| virtual void | SetNextStyle (const UID &next)=0 |
| virtual void | SetCharStyle (const UID &charStyle)=0 |
| virtual void | SetPreviewColor (const UID &color)=0 |
| virtual void | SetName (const PMString &s, bool16 translatable=kFalse)=0 |
| virtual void | SetIsStyleImported (bool16 isStyleImported)=0 |
| virtual void | SetKeyboardShortcut (VirtualKey virtualKey, int16 modifiers)=0 |
| virtual VirtualKey | GetKeyboardShortcut (int16 *modifiers) const =0 |
| virtual GlobalTime | GetKeyboardShortcutTimeStamp () const =0 |
| virtual void | SetKeyboardShortcutTimeStamp (GlobalTime gtime)=0 |
| virtual void | SetStyleType (IStyleInfo::StyleType styleType)=0 |
| virtual IStyleInfo::StyleType | GetStyleType () const =0 |
| virtual void | Copy (const IStyleInfo *other)=0 |
| virtual void | SetUniqueID (const PMString &uniqueId)=0 |
| virtual const PMString & | GetUniqueID () const =0 |
| virtual void | GenerateAndSetUniqueID ()=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
Data interface for the non-attribute parts of a style. Usually, but not necessarily a text style. Necessary for anything listed by an IStyleNameTable. May be part of the style itself, or part of a command that operates on styles.
| pure virtual |
Copy the style information from one IStyleInfo instance to this instance.
| other | the style information to copy. MAY NOT BE NIL. |
| pure virtual |
FOR INTERNAL USE ONLY Generates a unique ID and sets it for the style.
| pure virtual |
Get the UID of the style this style is based on
| pure virtual |
Unsupported at this time. Do not use.
| pure virtual |
Get the VirtualKey for the keyboard shortcut that triggers this style.
| modifiers | MAY NOT BE NIL |
| pure virtual |
Get the keyboard shortcut time stamp. If two styles share the same keyboard shortcut, the one with the newer time stamp is used.
| pure virtual |
Get the name of this style.
| pure virtual |
Get the UID of the next style. Only applicable to paragraph styles. Only applied after typing a <CR>
| pure virtual |
Get the color UID to use for the style preview mode.
| pure virtual |
Get the type of the style see
| pure virtual |
FOR INTERNAL USE ONLY Get the unique id of this style. Can return empty string if no unique id has been set.
| pure virtual |
Was this style imported? Usually during a <Place> operation.
| pure virtual |
Set the UID of the style this style is based on. There may be restrictions. For example, you cannot create cycles and paragraph styles must be based on [No Paragraph Style].
| base | is the UID of the style to base this one on. |
| pure virtual |
Unsupported at this time. Do not use.
| pure virtual |
Is this style a paragraph style?
| isParaStyle | DEPRECATED – used SetStyleType since we now support other style types! Is this style imported? |
| isStyleImported |
| pure virtual |
Set the keyboard shortcut that triggers this style.
| virtualKey | is the key code. |
| modifiers | are the modifier keys. |
| pure virtual |
Set the keyboard shortcut time stamp. If two styles share the same keyboard shortcut, the one with the newer time stamp is used.
| gtime | specifies the current time, used to compare conflicted shortcuts. |
| pure virtual |
Set the name of this style.
| s | is the style name. |
| translatable | would always be kFalse for user-specified names. [No Paragraph Style] is translated, for example. |
| pure virtual |
Set the UID of the next style. Only applicable to paragraph styles. Only applied after typing a <CR>
| base | is the UID of the style that would follow this one. |
| pure virtual |
Get the color UID to use for the style preview mode.
| pure virtual |
Sets the type of the style see
| styleType |
| pure virtual |
FOR INTERNAL USE ONLY Sets the unique id for the style.