![]() | InDesign SDK 20.5 |

Public Types | |
| enum | { kDefaultIID = IID_IOBJECTSTYLESSUITE } |
Public Member Functions | |
| virtual bool16 | CanCreateNewObjectStyleFromSelection () const =0 |
| virtual ErrorCode | CreateNewObjectStyleFromSelection (PMString styleName, PMString &createdStylePath, UID parentUID=kInvalidUID, int32 position=-1)=0 |
| virtual ErrorCode | CreateNewObjectStyle (IObjectStyleInfo *iObjectStyleInfo, IPMUnknown *target, UID parentUID=kInvalidUID, int32 position=-1)=0 |
| virtual ErrorCode | EditObjectStyle (IObjectStyleInfo *iObjectStyleInfo, IPMUnknown *target, const PMString &editStyleName, int32 numApplies=0)=0 |
| virtual bool16 | CanApplyObjectStyle () const =0 |
| virtual ErrorCode | ApplyObjectStyle (const PMString name, const bool16 bApplyDefaultGraphicStyle, bool16 overrideExistingAttrs, bool16 applyEmptyCatWithRoot, bool16 affectAppliedItems=kFalse)=0 |
| virtual ErrorCode | ClearObjectStyleOverrides ()=0 |
| virtual bool16 | CanClearUnCheckedOverridesWithNoneStyle () const =0 |
| virtual ErrorCode | ClearOverridesNotDefinedByStyle ()=0 |
| virtual bool16 | CanModifyStyleList () const =0 |
| virtual bool16 | CanModifyStyles (const K2Vector< PMString > &styleIndexs) const =0 |
| virtual bool16 | CanDeleteStyles (const K2Vector< PMString > &styleIndexs) const =0 |
| virtual ErrorCode | DeleteObjectStyles (const K2Vector< PMString > &styleIndexs, const PMString &styleToReplaceWith, const bool16 &bPerserveFormat=kFalse)=0 |
| virtual ErrorCode | SortObjectStyles ()=0 |
| virtual ErrorCode | LoadObjectStyles (const StyleClashResolutionTypes::GlobalClashResolutionStrategy &globalClashResolutionStrategy, const IDFile &sourceFile, const std::map< PMString, bool32 > &importMap, const std::map< PMString, bool32 > &clashMap, const std::map< PMString, StyleClashResolutionTypes::StyleClashResolutionStrategy > &resolveMap)=0 |
| virtual ErrorCode | ExportObjectStyles (const IDFile &targetFile, const K2Vector< PMString > &objectStyles)=0 |
| virtual ErrorCode | ImportObjectStyles (const IDFile &sourceFile)=0 |
| virtual ErrorCode | RenameObjectStyle (const int32 styleIndex, const PMString &newName)=0 |
| virtual ErrorCode | ReplaceObjectStyles (const K2Vector< PMString > &styleNames, const PMString &replaceWith)=0 |
| virtual bool16 | CanRedefineObjectStyle () const =0 |
| virtual bool16 | CanClearOverrides () const =0 |
| virtual ErrorCode | RedefineStyle ()=0 |
| virtual ErrorCode | ChangeDefaultTextStyle (const PMString &newStyleName)=0 |
| virtual PMString | GetDefaultTextStyle ()=0 |
| virtual ErrorCode | ChangeDefaultGraphicStyle (const PMString &newStyleName)=0 |
| virtual PMString | GetDefaultGraphicStyle ()=0 |
| virtual ErrorCode | ChangeDefaultFrameGridStyle (const PMString &newStyleName)=0 |
| virtual PMString | GetDefaultFrameGridStyle ()=0 |
| virtual ErrorCode | DuplicateObjectStyles (const K2Vector< PMString > &styleNames, K2Vector< PMString > &styleNamesCreated)=0 |
| virtual bool16 | CanMoveObjectStyles (const K2Vector< PMString > &styleNames, const int32 dropBefore=-1)=0 |
| virtual ErrorCode | MoveObjectStyles (const K2Vector< PMString > &styleNames, const int32 dropBefore)=0 |
| virtual K2Vector< PMString > | GetCurrentObjectStyles () const =0 |
| virtual PMString | GetNameOfNthStyle (const int32 n) const =0 |
| virtual int32 | GetStyleIndexFromName (const PMString &name) const =0 |
| virtual int32 | GetNumObjectStyles () const =0 |
| virtual PMString | GetUniqueDuplicateName (IStyleGroupHierarchy *hierParent, const PMString &baseName) const =0 |
| virtual void | CreateStyleName (IStyleGroupHierarchy *hierParent, PMString *styleName) const =0 |
| virtual bool16 | CanDoBreakLinkToObjectStyles () const =0 |
| virtual ErrorCode | BreakLinkToObjectStyles ()=0 |
| virtual ErrorCode | BreakLinkFromProvidedObjectStyles (const K2Vector< PMString > styleList)=0 |
| virtual bool16 | CanBaseStyleOnStyle (PMString &style1, PMString &style2) const =0 |
| virtual IPMUnknown * | QueryStyleTargetFromStyle (const PMString &name) const =0 |
| virtual IPMUnknown * | QueryStyleTargetFromSelection (const PMString &basedOnStyleName) const =0 |
| virtual bool16 | SelectionOverridesObjStyle (UID objecStyleUID=kInvalidUID) const =0 |
| virtual bool16 | DoesObjectStyleHaveOverride (const PMString &name) const =0 |
| virtual PMString | GetStylesBasedOnStyleName (const PMString &name) const =0 |
| virtual VirtualKey | GetStylesKeyboardShortcut (const PMString &name, int16 *modifiers) const =0 |
| virtual const ObjStyleCategoryAttrMap | GetCurrentOverridesAttributeMap () const =0 |
| virtual const ObjStyleCategoryNameMap | GetCurrentOverridesNameMap () const =0 |
| virtual bool16 | SelectionContainsFrameGridStyle () const =0 |
| virtual bool16 | SelectionWithMixedOverrides () const =0 |
| virtual ObjStyleDialogLockStateObj * | CreateLocakStateObj (const PMString &styleName) 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 |
| pure virtual |
Apply the object style to the current selection.
| name | the name of style to be applied. |
| bApplyDefaultGraphicStyle | indicates that we always apply normal graphic frame style. |
| overrideExistingAttrs | indicates that shall we clear override. |
| applyEmptyCatWithRoot | apply unchecked categories with root |
| affectAppliedItems | indicates that we only apply the style to the object with the same style(clear overrdes) return ErrorCode. |
| pure virtual |
Break the link of all the page items with the provided object styles. return ErrorCode = kSuccess if we are done.
| pure virtual |
Break the link between object style and current selection. return ErrorCode = kSuccess if we are done.
| pure virtual |
Return true if you can apply an object style to the given selection
| pure virtual |
Returns true if no circular reference is creating when basing style 1 on style 2
| style1 | The style we are changing the based on info for |
| style2 | The style to base style1 on |
| pure virtual |
Can clear the overrides for the object styles in the current selection. return bool16 = kFalse if the selection does NOT contain overrides, otherwise return kTrue.
| pure virtual |
Returns true if we can apply the none style to the unchcecked categories and it will change the object (clear non-none attrs)
| pure virtual |
True if you can create a new object style from the current selection
| pure virtual |
True if you can delete the styles associated with these names
| pure virtual |
Check if we can we disconnect the object styles from the current selection. return bool16 = kTrue if there is an object in the selection with object style embeded; otherwise, return kFalse.
| pure virtual |
True if you can modify the style list
| pure virtual |
True if you can modify the styles associated with these names
| pure virtual |
True if you can move the object style to a new location in the list
| styleNames | vector of the style names to move |
| dropBefore | the position you are dropping to, default value = -1 means don't consider this value |
| pure virtual |
Can the object style of the current selection be redefined based on selected overrides. return bool16 = kFalse if the selection contains mixed overrides, no overrides, or mixed styles, otherwise return kTrue.
| pure virtual |
Changes the default frame grid style for the current database
| newStyleName |
| pure virtual |
Changes the default graphic style for the current database
| newStyleName |
| pure virtual |
Changes the default text style for the current database
| newStyleName |
| pure virtual |
Clears the overrides on the current style
| pure virtual |
Apply the attributes from root style which are not defined in the style.
| pure virtual |
INTERNAL USE ONLY
| pure virtual |
Create new object style.
| iObjectStyleInfo | IN: the info about this object style. |
| IPMUnknown | IN: the target(attributes) within the object style. |
| parentUID | [IN] UID of the parent group where the style is being created. kInvalidUID to create at root level |
| position | [IN] position with in the parent, where style is going to be created. -1 to create at the end. |
| pure virtual |
Creates a new Object Style which has the attributes of the current selection
| styleName | [IN] name of new style to being created. |
| createdStylePath | [OUT] full path of created style. |
| parentUID | [IN] UID of the parent group where the style is being created. kInvalidUID to create at root level |
| position | [IN] position with in the parent, where style is going to be created. -1 to create at the end. |
| pure virtual |
Get the unique object style name.
STOLEN FROM TextStyleTargetServer, refactor some year...
| pure virtual |
Deletes the objects styles from the StyleNameTable for the current selection
| pure virtual |
Return true if the selection has object style overrides
| name | the name of the object style to check against. |
| pure virtual |
Duplicates the Object Styles
| styleNames | IN: the names of the styles to duplicate |
| styleNamesCreated | OUT: the names of the styles to created |
| pure virtual |
Duplicates the Object Style
| iObjectStyleInfo | IN: the info about this object style. |
| IPMUnknown | IN: the target(attributes) within the object style. |
| editStyleName | IN: the name of the style to be edited. |
| numApplies | IN: used only by the dialog, set to the number of times we have applied this command |
| pure virtual |
Export the objects styles to a document
Get the object style PMStrings of the current selection. return K2Vector<PMString> object style UID list.
| pure virtual |
Returns the list of the current overrides attributes in the selection
| pure virtual |
Returns the list of the current overrides names in the selection
| pure virtual |
Returns the default frame grid style
| pure virtual |
Returns the default graphics style
| pure virtual |
Returns the default text style
| pure virtual |
Get the object style name of the nth entry in the style table returnPMString object style name
| pure virtual |
Gets the number of object styles in the current list
| pure virtual |
Get the object style index of the style name passed in return int32 object style index
| pure virtual |
Return the style which this style is based on
| name | style's name to find based on style for |
| pure virtual |
Return the style's keyboard shortcut
| name | style's name to find based on style for |
| modifiers | OUT: the modifiers |
| pure virtual |
Get the unique duplicate object style name with the base name provided.
| pure virtual |
Import the objects styles from the another document
| pure virtual |
Loads the objects styles from the another document.
| globalClashResolutionStrategy | IN: global clash resolution strategy. |
| sourceFile | IN: source file which we load from. |
| importMap | IN: import styles. |
| clashMap | IN: styles that are conflict with existing styles. |
| resolveMap | IN: result styles after resolving the conflicts. |
| pure virtual |
Moves the Object Styles in the list
| styleNames | vector of the style names to move |
| dropBefore | the position you are dropping to |
| pure virtual |
Returns a representation of the information in the style (created from the selection) for the UI to use
| basedOnStyleName | The name of the style we get categories info. |
| pure virtual |
Returns a representation of the information (created from the style named) in the style for the UI to use
| name | The name of the style to create from |
| pure virtual |
Redefines the style of the current selection based on the text attributes of the current selection. (Any overrides become part of the style.)
| pure virtual |
Renames the current style
| pure virtual |
Replaces the attrs in a style with new ones
| pure virtual |
Check if current selection has [Normal Grid] applied to it or not. return bool16 kTrue = there is [Normal Grid] applied; otherwise return kFalse.
| pure virtual |
Return true if the selection has object style overrides
| objecStyleUID | the uid of the object style to check against, if kInvalidUID uses current object style of the selection |
| pure virtual |
Check if selection has mixed overrides or not. return bool16 kTrue = there is mixed overrides; otherwise return kFalse.
| pure virtual |
Sorts the Object Style List