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

Public Member Functions | |
| virtual ErrorCode | Init (bool16 doCreateBasicStylesOnly=kTrue)=0 |
| virtual int32 | GetNumStyles (void)=0 |
| virtual ErrorCode | GetNthStyleName (int32 index, PMString *pName)=0 |
| virtual bool32 | IsNthStyleEditable (int32 index)=0 |
| virtual bool32 | IsNthStyleDeleteable (int32 index)=0 |
| virtual int32 | GetStyleIndexByName (const PMString &pName)=0 |
| virtual int32 | GetStyleIndexByUID (UID styleUID)=0 |
| virtual PMString | GetUniqueStyleName (PMString &baseName)=0 |
| virtual UIDRef | GetNthStyleRef (int32 index)=0 |
| virtual PMString | GetNoStyleName (void)=0 |
| virtual UIDRef | GetNoStyleUIDRef (void)=0 |
| virtual PMString | GetDefaultStyleName (void)=0 |
| virtual UIDRef | GetDefaultStyleUIDRef (void)=0 |
| virtual int32 | GetNumReservedStyles (void)=0 |
| virtual ErrorCode | SetNthStyleName (int32 index, PMString &name)=0 |
| virtual ErrorCode | AddStyle (PMString &name, bool16 nameLocked=kFalse, bool16 editLocked=kFalse, bool16 deleteLocked=kFalse)=0 |
| virtual ErrorCode | CopyNthStyle (int32 srcIndex, PMString &newName)=0 |
| virtual ErrorCode | DeleteNthStyle (int32 index)=0 |
| virtual ErrorCode | EditNthStyle (int32 index, ITrapStyle *iStyleSetting, bool16 updateLockInfo=kFalse, bool16 nameLocked=kFalse, bool16 editLocked=kFalse, bool16 deleteLocked=kFalse)=0 |
| virtual void | ListInsert (UID uid, int32 index=-1)=0 |
| virtual void | ListRemove (int32 index)=0 |
| virtual void | ListReplace (UID uid, int32 index)=0 |
| virtual ErrorCode | CopyStyleData (UIDRef srcStyle, UIDRef dstStyle)=0 |
| virtual ErrorCode | ImportStyles (const UIDRef &, RangeProgressBar *=nil)=0 |
| virtual ErrorCode | ExportStyles (const UIDRef &, K2Vector< int32 > &indexList, RangeProgressBar *=nil)=0 |
| virtual UIDList | GetReferencedStyles (const UIDList &styeList, int32 flag)=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 for managing the trap style list in the application or the document workspace.
| anonymous enum |
kExcludeDefault indicate default styles should be excluded from the search.
| anonymous enum |
kExcludeDefault indicate all styles that cannot be edited should be excluded from the search.
| anonymous enum |
kExcludeDefault indicate all styles that cannot be deleted should be excluded from the search.
| pure virtual |
Add a style with the specified name .
| index | specifies the nth style |
| name | is the new style name |
| nameLocked | is true if name can not be edited, |
| editLocked | is true if none of the properties can be edited |
| deleteLocked | is true if style cannot be delete |
| pure virtual |
Copy the nth style with the specified new style name.
| index | specifies the nth style |
| newName | is the new style name |
Copy style settings from srcStyle to the dstStyle.
| srcStyle | is the source style to copy from. |
| dstStyle | is the target style. |
| pure virtual |
Delete the nth style .
| index | specifies the nth style |
| pure virtual |
Edit the nth style with the specified style settings.
| index | specifies the nth style |
| iStyleSetting | is the new style name |
| updateLockInfo | true if the style's lock properties should be udpated |
| nameLocked | is true if name can not be edited |
| editLocked | is true if none of the properties can be edited |
| deleteLocked | is true if style cannot be delete |
| pure virtual |
Export a list of styles specified by indexList in the current list to the destination list manager specified by dstListMgrRef.
| indexList | specifies a list of style to export. If the indexList is empty, export all styles. |
| pProgressBase | If a RangeProgressBar proc is passed, progress will be updated. |
| pure virtual |
Returns the style name for the "Default" style.
| pure virtual |
Returns the default "Default" style UIDRef.
| pure virtual |
Returns the default "No Trap Style" style name.
| pure virtual |
Returns the default "No Trap Style" style UIDRef.
| pure virtual |
Gets the name of the nth style.
| index | specifies the nth style to get |
| pName | is the style name |
| pure virtual |
Obtains the UID of the Nth style object.
| index | specifies the style index |
| pure virtual |
Get number of reserved styles in the list. Currently two default styles are supported: [No Trap Style] and "Default" Reserved styles are typically grouped at the beginning of the list.
| pure virtual |
Returns the number styles in the list.
| pure virtual |
Returns a list style that are used in the database.
| styeList | is the list of style references to check. If style list is empty, then all styles are checked. |
| flag | indicate which style if any to exclude. |
| pure virtual |
Return the index of the given style name.
| pName | specifies sytle name |
| pure virtual |
Return the index of the given style UID.
| styleUID | specifies sytle UID |
Return an unique style name within the style list based on the specified baseName.
| baseName | is the base name |
| pure virtual |
Import the style list specified by the srcListMgrRef into the current list. This method may be processing one or more commands, the caller should enclosed with command sequence for redo/undo.
| pProgressBase | If a RangeProgressBar proc is passed, progress will be updated. |
| pure virtual |
Initialize the trap style list.
| doCreateBasicStylesOnly | if true it only creates the basic styles. |
| pure virtual |
Return whether or not the nth style can be deleted.
| index | specifies the nth style to get |
| pure virtual |
Return whether or not the nth style is editable.
| index | specifies the nth style to get |
| pure virtual |
These manipulate the list. They do NOT do any corresponding maintenance of the style object – they're available for the use of commands which manipulate the list. They should not be used out side of a command!Insert a style UID in list.
| uid | is the style UID to insert is the position to insert at. If index is -1, then uid is appended at the end. |
| pure virtual |
Remove a style UID from the list.
| index | is the style to remove |
| pure virtual |
Replace nth style with the specified style UID.
| uid | is the new style UID |
| index | is the style to replace |
| pure virtual |
Set the style name for the nth style.
| index | specifies the nth style |
| name | is the new style name |