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

Public Types | |
| enum | { kDefaultIID = IID_IOBJECTSTYLEINFO } |
| enum | { kInvalidTimeStamp = 0, kPubConvertedTimeStamp = 1, kRefConvertedTimeStamp = 2 } |
Public Member Functions | |
| virtual UID | GetBasedOn () const =0 |
| virtual void | SetBasedOn (const UID &newBaseStyleUID)=0 |
| virtual const PMString & | GetName () const =0 |
| virtual void | SetName (const PMString &newStyleName, bool16 translatable=kFalse)=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 const PMString & | GetBasedOnStyleName () const =0 |
| virtual void | SetBasedOnStyleName (const PMString &basedOnStyleName)=0 |
Public Member Functions inherited from IPMUnknown | |
| virtual IPMUnknown * | QueryInterface (PMIID interfaceID) const =0 |
| virtual void | AddRef () const =0 |
| virtual void | Release () const =0 |
An interface to get object style's name and based on information.
| anonymous enum |
Timestamp field for style shortcut to be consistent with text style(IStyleInfo.h). It will be better to define them in one place.
| pure virtual |
Get the style UID which this style is based on.
| pure virtual |
Get based on style name. We don't persist this info and it only facilitate the UI to use based on info, otherwise, we may end up add more interfaces to pass around.
| pure virtual |
Get 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 |
Returns the style name.
| pure virtual |
Set the style UID which this style is based on.
| newBaseStyleUID | the style UID which this style is based on. |
| pure virtual |
Set based on style name. We don't persist this info and it only facilitate the UI to use based on info, otherwise, we may end up add more interfaces to pass around.
| newStyleName | the new style name. |
| 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 style name.
| newStyleName | the new style name. |