![]() | InDesign SDK 20.5 |

Public Types | |
| enum | { kDefaultIID = IID_IOBJSTYLESATTRHANDLER } |
| enum | HowToUseCategories { kApplyAllCategories, kApplyOnlyCheckedCategoriesFromSource, kApplyOnlyUncheckedCategoriesInTarget } |
Public Member Functions | |
| virtual void | GetFillStyleTargetFromSelectionTarget (const IPMUnknown *modelTarget, IPMUnknown *styleTarget, const IWorkspace *ws) const =0 |
| virtual void | SetStyleAttrsInDefaultSelection (const IPMUnknown *styleTarget, const IWorkspace *ws, K2Vector< ClassID > &categoriesToOverride)=0 |
| virtual void | SetStyleAttrsInUIDList (const UIDList &list, const IPMUnknown *styleTarget, const IWorkspace *ws, K2Vector< ClassID > &categoriesToOverride)=0 |
| virtual void | GetDefaultGraphicFrameStyleAttrs (IPMUnknown *targetBoss, const IWorkspace *ws, const bool16 isRootStyle=kFalse) const =0 |
| virtual void | GetDefaultTextFrameStyleAttrs (IPMUnknown *targetBoss, const IWorkspace *ws) const =0 |
| virtual void | GetDefaultFrameGridStyleAttrs (IPMUnknown *targetBoss, const IWorkspace *ws) const =0 |
| virtual void | SetAttrsInTarget (IPMUnknown *fillTargetBoss, const IPMUnknown *applyTargetBoss, const IPMUnknown *oldTargetBoss, bool16 clearOverrides)=0 |
| virtual void | GetAttrsFromObjectStyle (const UIDRef &objectStyleUIDRef, IPMUnknown *targetBoss, const HowToUseCategories howToUseCat=kApplyAllCategories)=0 |
| virtual void | SetAttrsIntoObjectStyle (const UIDRef &objectStyleUIDRef, const IPMUnknown *targetBoss, const HowToUseCategories howToUseCat=kApplyAllCategories)=0 |
| virtual void | CopyAttrsBetweenObjectStyles (const IWorkspace *sourceWS, const UID &sourceObjectStyle, const IWorkspace *targetWS, const UID &targetObjectStyle)=0 |
| virtual void | MergeAttrsIntoObjectStyle (const IPMUnknown *sourceObjectStyle, const IWorkspace *targetWS, const UID &targetObjectStyle)=0 |
| virtual bool16 | IsStyleOverridenBySelection (const IPMUnknown *modelTargetBoss, const IWorkspace *ws, const IPMUnknown *style, const K2Vector< ClassID > *categories=nil) const =0 |
| virtual bool16 | SelectionContainsMixedOverrides (const IPMUnknown *modelTarget, const IWorkspace *ws, const K2Vector< ClassID > *categories) const =0 |
| virtual void | FillTargetWithAllSupportedAttrCategories (IPMUnknown *targetBoss)=0 |
| virtual K2Vector< ClassID > | GetAcceptedCategories () const =0 |
| virtual ObjStyleCategoryAttrMap | GetOverrideList (const IPMUnknown *modelTargetBoss, const IWorkspace *ws, const IPMUnknown *target, const K2Vector< ClassID > *categories, ObjStyleCategoryNameMap &categoryNameMap) const =0 |
| virtual ObjStyleCategoryAttrMap | GetAcceptedAttributeList (const IPMUnknown *target, const IWorkspace *ws, ObjStyleCategoryNameMap &categoryNameMap) const =0 |
| virtual ProtocolCollection | GetNotificationProtocolList () const =0 |
| virtual void | DoAttrConversion (IDataBase *targetDB, IPMUnknown *iTargetStyleAttributes, const IWorkspace *targetWS, IDataBase *sourceDB)=0 |
| virtual void | RemoveStyleAttributes (const UIDRef &styleUIDRef)=0 |
| virtual K2Vector< ClassID > | GetCategoriesThatAffectTextFrameDefaults () const =0 |
| virtual K2Vector< ClassID > | GetCategoriesThatAffectGraphicFrameDefaults () const =0 |
| virtual void | GetCategoryByAttribute (const ClassID &attributeID, ClassID &categoryClass) const =0 |
| virtual void | SetStyleAttrsInUIDListPostAddToHierarchy (const UIDList &list, const IPMUnknown *styleTarget, const IWorkspace *ws, K2Vector< ClassID > &categoriesToOverride)=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 |
CopyAttrsBetweenObjectStyles: Get the attributes from object style and set it into targetBoss Convert them if necessary
| sourceWS | The source style workspce |
| sourceObjectStyle | The source style we are pulling from |
| targetWS | The target style workspce |
| targetObjectStyle | The target style we are pushing the attriubtes to |
| pure virtual |
Convert the UID based attributes from source db to target db.
| targetDB | the targetDB for the new attributes. |
| iTargetStyleAttributes | the source attributes. |
| targetWS | the target workspace for the new attributes. |
| sourceDb | the sourceDB for the source attributes. |
| pure virtual |
FillTargetWithAllSupportedAttrCategories: Fills the target with the categories this handler supports
| styleTarget | The style target attribute information we are filling |
| pure virtual |
Get supported attribute list of the specified target in this handler.
Get accepted categories of this handler.
| pure virtual |
GetAttrsFromObjectStyle: Get the attributes from object style and set it into targetBoss
| objectStyleUIDRef | The style we are pulling from |
| howToUseCat | The flag indicates if we should ignore categories status when setting attributes, use only the attributes in the checked categories or use only the attributes in the unchecked categories (note uses SOURCE cateories) |
| pure virtual |
Returns a list of categories supported by this handler which affect the graphic defaults
| pure virtual |
Returns a list of categories supported by this handler which affect the text defaults
| pure virtual |
Get the category ID which the given attribute belongs to.
| attributeID | [IN] the given attribute. |
| categoryClass | [OUT] the category that the attribute belongs to. |
| pure virtual |
GetDefaultFrameGridStyleAttrs: Gets the default attribute and fills in the target for the default frame grid style
| styleTarget | The style target attribute information we are filling |
| ws | The current workspce |
| pure virtual |
GetDefaultGraphicFrameStyleAttrs: Gets the default attribute and fills in the target for the default graphic frame style
| styleTarget | The style target attribute information we are filling |
| ws | The current workspce |
| isRootStyle | The flag indicating if the attrs are for root style or not. |
| pure virtual |
GetDefaultTextFrameStyleAttrs: Gets the default attribute and fills in the target for the default text frame style
| styleTarget | The style target attribute information we are filling |
| ws | The current workspce |
| pure virtual |
GetFillStyleTargetFromSelectionTarget: Gets the attributes from the model and fills in the target
| modelTarget | The csb representing the selection |
| styleTarget | The style target attribute information we are filling |
| ws | The current workspce |
| pure virtual |
Returns the protocol list for attributes in this style. This is used by observers so they know when the attributes which may make the object propertes different then the object style change (example – to observer for overrides to the style)
| style | The style to get the protocol list for |
| pure virtual |
IsStyleOverridenBySelection: Checks to see if its portion of the object style is overriden on the selection
| modelTarget | The csb representing the selection |
| ws | The current workspce |
| style | The boss with the style data |
| categories | Optional parameter to indicate which categories to check for overrides – when nil we assume all |
| pure virtual |
MergeAttrsIntoObjectStyle: Only adds the attributes which are in the source, but not in the target
| sourceObjectStyle | The source style we are pulling from |
| targetWS | The target style workspce |
| targetObjectStyle | The source style we are mergring the attriubtes to |
| pure virtual |
Remove the attributes that are not supported anymore.
| styleUIDRef | The UIDRef of the style. |
| pure virtual |
SelectionContainsMixedOverrides: Checks to see if its portion of the object style is overriden on the selection
| modelTarget | The csb representing the selection |
| ws | The current workspce |
| categories | Optional parameter to indicate which categories to check for overrides – when nil we assume all |
| pure virtual |
SetAttrsInTarget: Applies attributes from the first target to the second target based on the override rules May not have a full set of attributes when done
| fillTargetBoss | The style target we are filling |
| applyTargetBoss | The style target attribute information we would like to apply (that we are |
| oldTargetBoss | The style target attribute information from the old style |
| clearOverrides | True if we are clearing overrides (attributes which are different then the current style) |
| pure virtual |
SetAttrsIntoObjectStyle: Get the attributes from object style and set it into targetBoss
| objectStyleUIDRef | The style we are putting the attriubtes on |
| styleTarget | The style target attribute information |
| howToUseCat | The flag indicates if we should ignore categories status when setting attributes, use only the attributes in the checked categories or use only the attributes in the unchecked categories (note uses SOURCE cateories) |
| pure virtual |
SetStyleAttrsInDefaultSelection: Sets the attributes in the default selection state
| styleTarget | The style target attribute information |
| ws | The current workspce |
| categoriesToOverride | A list of the categories to override |
| pure virtual |
SetStyleAttrsInUIDList: Sets the attributes in the model and from the target
| list | The UIDList of the pageitems to change |
| styleTarget | The style target attribute information |
| ws | The current workspce |
| categoriesToOverride | A list of the categories to override |
| pure virtual |
Apply the attributes which need to be applied only after the page item is added to hierarchy. Relevant for size and position attributes in object styles.
| list | The UIDList of the pageitems to change |
| styleTarget | The style target attribute information |
| ws | The current workspce |
| categoriesToOverride | A list of the categories to override |