InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IObjectStylesUtils Class Referenceabstract

#include <IObjectStylesUtils.h>

Inheritance diagram for IObjectStylesUtils:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_IOBJECTSTYLESUTILS }
 

Public Member Functions

virtual void FillStyleTargetFromSelection (const IPMUnknown *modelTargetBoss, IPMUnknown *targetBoss, IWorkspace *ws, bool16 fillInCategories=kTrue) const =0
 
virtual void SetStyleTargetOnDefaultSelection (const IPMUnknown *targetBoss, IWorkspace *ws, K2Vector< ClassID > &categoriesToOverride)=0
 
virtual void SetStyleTargetOnUIDList (const UIDList &list, const IPMUnknown *targetBoss, IWorkspace *ws, K2Vector< ClassID > &categoriesToOverride)=0
 
virtual void GetTargetFromObjectStyle (const UIDRef &objectStyleUIDRef, IPMUnknown *target, UID fillInUncheckedCategoriesWithThisUID=kInvalidUID)=0
 
virtual void SetTargetIntoObjectStyle (const UIDRef &objectStyleUIDRef, const IPMUnknown *target, const IObjStylesAttrHandler::HowToUseCategories howToUseCat=IObjStylesAttrHandler::kApplyOnlyCheckedCategoriesFromSource)=0
 
virtual void CopyTargetBetweenObjectStyles (IWorkspace *sourceWS, const UID &sourceObjectStyle, IWorkspace *targetWS, const UID &targetObjectStyle)=0
 
virtual void MergeAttrsIntoObjectStyle (const IPMUnknown *sourceObjectStyle, IWorkspace *targetWS, const UID &targetObjectStyle)=0
 
virtual void FillInDefaultGraphicStyle (IWorkspace *ws, IPMUnknown *target, bool16 isRootStyle=kFalse)=0
 
virtual void FillInDefaultTextStyle (IWorkspace *ws, IPMUnknown *target)=0
 
virtual void FillInDefaultFrameGridStyle (IWorkspace *ws, IPMUnknown *target)=0
 
virtual PMString GetUniqueDuplicateName (IWorkspace *ws, const PMString &baseName)=0
 
virtual ICommandCreateSetDefaultStyleCmd (IWorkspace *ws, const PMString &newDefaultStyleName, bool16 applyAttrs, const IPMUnknown *target, bool16 clearOverrides=kFalse)=0
 
virtual ICommandCreateSetDefaultStyleCmd (IWorkspace *ws, const PMString &newDefaultStyleName, bool16 applyAttrs, const IPMUnknown *target, K2Vector< ClassID > &categoriesToOverride)=0
 
virtual ICommandCreateSetDefaultTextStyleCmd (IWorkspace *ws, const PMString &newDefaultStyleName, bool16 applyAttrs, const IPMUnknown *target, bool16 clearOverrides=kFalse, bool16 bDefaultFrameGridCmd=kFalse)=0
 
virtual ICommandCreateSetDefaultTextStyleCmd (IWorkspace *ws, const PMString &newDefaultStyleName, bool16 applyAttrs, const IPMUnknown *target, K2Vector< ClassID > &categoriesToOverride, bool16 bDefaultFrameGridCmd=kFalse)=0
 
virtual ICommandCreateSetDefaultFrameGridStyleCmd (IWorkspace *ws, const PMString &newDefaultStyleName, bool16 applyAttrs, const IPMUnknown *target, bool16 clearOverrides=kFalse, bool16 bDefaultFrameGridCmd=kTrue)=0
 
virtual ICommandCreateSetDefaultFrameGridStyleCmd (IWorkspace *ws, const PMString &newDefaultStyleName, bool16 applyAttrs, const IPMUnknown *target, K2Vector< ClassID > &categoriesToOverride, bool16 bDefaultFrameGridCmd=kTrue)=0
 
virtual bool16 IsStyleOverridenBySelection (const IPMUnknown *modelTargetBoss, const IWorkspace *ws, const IPMUnknown *style, const K2Vector< ClassID > *categories=nil)=0
 
virtual ObjStyleCategoryAttrMap GetSelectionOverridesToStyle (const IPMUnknown *modelTargetBoss, const IWorkspace *ws, const UID styleUID, ObjStyleCategoryNameMap &categoryNameMap, const K2Vector< ClassID > *categories=nil)=0
 
virtual bool16 SelectionContainsMixedOverrides (const IPMUnknown *modelTargetBoss, const IWorkspace *ws, const K2Vector< ClassID > *categories=nil)=0
 
virtual void SetAttrsInTarget (IPMUnknown *fillTargetBoss, const IPMUnknown *applyTargetBoss, const IPMUnknown *oldTargetBoss, const IWorkspace *ws, bool16 clearOverrides)=0
 
virtual void FillStyleTargetWithAllSupportedCategories (IPMUnknown *targetBoss) const =0
 
virtual void FillStyleTargetCategoriesFromStyle (const UIDRef &styleUIDRef, IPMUnknown *targetBoss)=0
 
virtual bool16 CanItemsBreakLinkFromObjectStyles (IWorkspace *ws, const UIDList &itemList)=0
 
virtual bool16 CanBaseStyleOnStyle (IWorkspace *ws, UID style1, UID style2) const =0
 
virtual IWorkspaceQueryWorkspaceFromDataBase (IDataBase *db) const =0
 
virtual void RemoveStyleAttributes (const UIDRef &styleUIDRef) const =0
 
virtual K2Vector< ClassIDGetCateogryList () const =0
 
virtual ProtocolCollection GetNotificationProtocolListForObjectStyles (IWorkspace *ws) const =0
 
virtual void NotifyObjectStyleInfoChanged (const UIDList *itemList, ICommand *cmd, ClassID cmdClassID, const LazyNotificationData *data=nil) const =0
 
virtual void NotifyObjectStyleNameTableChanged (const UIDList *itemList, ICommand *cmd, ClassID cmdClassID=kInvalidClass, const LazyNotificationData *data=nil) const =0
 
virtual K2Vector< ClassIDGetCategoriesThatAffectTextFrameDefaults () const =0
 
virtual K2Vector< ClassIDGetCategoriesThatAffectGraphicFrameDefaults () const =0
 
virtual bool16 IsReservedObjectStyleName (const PMString &styleName) const =0
 
virtual void GetFormattedString (const PMReal &value, const bool16 &bHorizontal, const IWorkspace *ws, PMString &outString)=0
 
virtual void FixTextStylesInDefaultObjectStyles (IWorkspace *ws)=0
 
virtual bool16 IsItemWithCategoryAppliedByObjectStyle (const UIDRef &item, const ClassID &categoryClass, UIDRef &objectStyleUIDRef) const =0
 
virtual IObjStylesAttrHandlerQueryObjectStyleHandler (const ClassID &handlerClass) const =0
 
virtual bool16 DoesItemHaveSameTextAttrsWithObjectStyle (const UIDRef &item, const ClassID &category) 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 IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Detailed Description

Utility methods for working with object styles.

Member Function Documentation

virtual bool16 IObjectStylesUtils::CanBaseStyleOnStyle (IWorkspacews,
UID style1,
UID style2 
) const
pure virtual

Returns true if no circular reference is creating when basing style 1 on style 2

Parameters
wsThe current workspce
style1The style we are changing the based on info for
style2The style to base style1 on
Returns
bool16 kTrue if there is no circular reference is creating when basing style 1 on style 2
virtual bool16 IObjectStylesUtils::CanItemsBreakLinkFromObjectStyles (IWorkspacews,
const UIDListitemList 
)
pure virtual

Check if the passed in items has non-root object style embedded.

Parameters
wsThe current workspce
itemListThe item list that we are going to check.
Returns
bool16 kTrue indicates there is at least one item has non-root object style embedded. kFalse indicates there is either no items at all or all items has root object style.
virtual void IObjectStylesUtils::CopyTargetBetweenObjectStyles (IWorkspacesourceWS,
const UIDsourceObjectStyle,
IWorkspacetargetWS,
const UIDtargetObjectStyle 
)
pure virtual

CopyAttrsBetweenObjectStyles: Get the attributes from object style and set it into targetBoss Convert them if necessary

NOTE: MUST BE CALLED FROM A COMMAND OR IN A DATABASE TRANSACTION

Parameters
sourceWSThe source style workspce
sourceObjectStyleThe source style we are pulling from
targetWSThe target style workspce
targetObjectStyleThe target style we are pushing the attriubtes to
virtual ICommand* IObjectStylesUtils::CreateSetDefaultFrameGridStyleCmd (IWorkspacews,
const PMStringnewDefaultStyleName,
bool16 applyAttrs,
const IPMUnknowntarget,
bool16 clearOverrides = kFalse,
bool16 bDefaultFrameGridCmd = kTrue 
)
pure virtual

CreateSetDefaultFrameGridStyleCmd: Creates a command to change the default frame grid style for the workspace

Parameters
wsThe current workspce
newDefaultStyleNameThe new default style name
applyAttrsTrue if we should apply the attrs from the style, this is not true when creating the style
targetThe style target (kObjectStylesTargetBoss)
clearOverridesTrue if we want to clear overrides, otherwise kFalse.
bDefaultFrameGridCmdTrue if this command is for set the default frame grid style, otherwise kFalse(set default text style)
Returns
ICommand The command to se the default frame grid style
virtual ICommand* IObjectStylesUtils::CreateSetDefaultFrameGridStyleCmd (IWorkspacews,
const PMStringnewDefaultStyleName,
bool16 applyAttrs,
const IPMUnknowntarget,
K2Vector< ClassID > & categoriesToOverride,
bool16 bDefaultFrameGridCmd = kTrue 
)
pure virtual

CreateSetDefaultFrameGridStyleCmd: Same as above except it takes a list of overrides instead of just a bool

Parameters
wsThe current workspce
newDefaultStyleNameThe new default style name
applyAttrsTrue if we should apply the attrs from the style, this is not true when creating the style
targetThe style target (kObjectStylesTargetBoss)
categoriesToOverrideA list of categories to clear overrides in
bDefaultFrameGridCmdTrue if this command is for set the default frame grid style, otherwise kFalse(set default text style)
Returns
ICommand The command to se the default frame grid style
virtual ICommand* IObjectStylesUtils::CreateSetDefaultStyleCmd (IWorkspacews,
const PMStringnewDefaultStyleName,
bool16 applyAttrs,
const IPMUnknowntarget,
bool16 clearOverrides = kFalse 
)
pure virtual

CreateSetDefaultStyleCmd: Creates a command to change the default style for the workspace

Parameters
wsThe current workspce
newDefaultStyleNameThe new default style name
applyAttrsTrue if we should apply the attrs from the style, this is not true when creating the style
targetThe style target (kObjectStylesTargetBoss)
clearOverridesTrue if we want to clear overrides, otherwise kFalse.
Returns
ICommand The command to set the default graphics style
virtual ICommand* IObjectStylesUtils::CreateSetDefaultStyleCmd (IWorkspacews,
const PMStringnewDefaultStyleName,
bool16 applyAttrs,
const IPMUnknowntarget,
K2Vector< ClassID > & categoriesToOverride 
)
pure virtual

CreateSetDefaultStyleCmd: Same as above except it takes a list of overrides instead of just a bool

Parameters
wsThe current workspce
newDefaultStyleNameThe new default style name
applyAttrsTrue if we should apply the attrs from the style, this is not true when creating the style
targetThe style target (kObjectStylesTargetBoss)
categoriesToOverrideA list of categories to clear overrides in
Returns
ICommand The command to set the default graphics style
virtual ICommand* IObjectStylesUtils::CreateSetDefaultTextStyleCmd (IWorkspacews,
const PMStringnewDefaultStyleName,
bool16 applyAttrs,
const IPMUnknowntarget,
bool16 clearOverrides = kFalse,
bool16 bDefaultFrameGridCmd = kFalse 
)
pure virtual

CreateSetDefaultTextStyleCmd: Creates a command to change the default style for the workspace

Parameters
wsThe current workspce
newDefaultStyleNameThe new default style name
applyAttrsTrue if we should apply the attrs from the style, this is not true when creating the style
targetThe style target (kObjectStylesTargetBoss)
clearOverridesTrue if we want to clear overrides, otherwise kFalse.
bDefaultFrameGridCmdTrue if this command is for set the default frame grid style, otherwise kFalse(set default text style)
Returns
ICommand The command to set the default text style
virtual ICommand* IObjectStylesUtils::CreateSetDefaultTextStyleCmd (IWorkspacews,
const PMStringnewDefaultStyleName,
bool16 applyAttrs,
const IPMUnknowntarget,
K2Vector< ClassID > & categoriesToOverride,
bool16 bDefaultFrameGridCmd = kFalse 
)
pure virtual

CreateSetDefaultTextStyleCmd: Same as above except it takes a list of overrides instead of just a bool

Parameters
wsThe current workspce
newDefaultStyleNameThe new default style name
applyAttrsTrue if we should apply the attrs from the style, this is not true when creating the style
targetThe style target (kObjectStylesTargetBoss)
categoriesToOverrideA list of categories to clear overrides in
bDefaultFrameGridCmdTrue if this command is for set the default frame grid style, otherwise kFalse(set default text style)
Returns
ICommand The command to set the default text style
virtual bool16 IObjectStylesUtils::DoesItemHaveSameTextAttrsWithObjectStyle (const UIDRefitem,
const ClassIDcategory 
) const
pure virtual

Check if the given item has the same text attributes or not comparing with the given object style's category applied to it.

Parameters
item[IN] the given item.
category[IN] the given category. kTrue indicates the attributes are same; otherwise return kFalse.
virtual void IObjectStylesUtils::FillInDefaultFrameGridStyle (IWorkspacews,
IPMUnknowntarget 
)
pure virtual

FillInDefaultFrameGridStyle: Gets the default attribute and fills in the target for the default frame grid style

Parameters
wsThe current workspce
targetThe style target attribute information we are filling
virtual void IObjectStylesUtils::FillInDefaultGraphicStyle (IWorkspacews,
IPMUnknowntarget,
bool16 isRootStyle = kFalse 
)
pure virtual

FillInDefaultGraphicStyle: Gets the default attribute and fills in the target for the default graphic frame style

Parameters
wsThe current workspce
targetThe style target attribute information we are filling
isRootStyleThe flag indicates if we fill default graphic attributes for root style.
virtual void IObjectStylesUtils::FillInDefaultTextStyle (IWorkspacews,
IPMUnknowntarget 
)
pure virtual

FillInDefaultTextStyle: Gets the default attribute and fills in the target for the default text frame style

Parameters
wsThe current workspce
targetThe style target attribute information we are filling
virtual void IObjectStylesUtils::FillStyleTargetCategoriesFromStyle (const UIDRefstyleUIDRef,
IPMUnknowntargetBoss 
)
pure virtual

FillStyleTargetCategoriesFromStyle: Fills in the IObjStylesAttrCategoriesList interface on the object style to have all supported categories of the style passed in.

Parameters
styleUIDRefThe style we get category information from
targetBossThe style target attribute information we are filling
virtual void IObjectStylesUtils::FillStyleTargetFromSelection (const IPMUnknownmodelTargetBoss,
IPMUnknowntargetBoss,
IWorkspacews,
bool16 fillInCategories = kTrue 
) const
pure virtual

FillStyleTargetFromSelection: Gets the attributes from the model and fills in the target

Parameters
modelTargetBossThe csb representing the selection
targetBossThe style target attribute information we are filling
wsThe current workspce fillInCategories Optional Param – true by default, fills in the categories with the default values
virtual void IObjectStylesUtils::FillStyleTargetWithAllSupportedCategories (IPMUnknowntargetBoss) const
pure virtual

FillStyleTargetWithAllSupportedCategories: Fills in the IObjStylesAttrCategoriesList interface on the object style to have all supported categories

Parameters
targetBossThe style target (kObjectStylesTargetBoss)
virtual void IObjectStylesUtils::FixTextStylesInDefaultObjectStyles (IWorkspacews)
pure virtual

INTERNAL USE ONLY Must call within database transaction, will much with your default object styles

Parameters
wsThe workspace containing the styles
virtual K2Vector<ClassID> IObjectStylesUtils::GetCategoriesThatAffectGraphicFrameDefaults () const
pure virtual

Returns a list of categories which affect the graphic defaults

Returns
K2Vector<ClassID> the category list for graphic defaults
virtual K2Vector<ClassID> IObjectStylesUtils::GetCategoriesThatAffectTextFrameDefaults () const
pure virtual

Returns a list of categories which affect the text defaults

Returns
K2Vector<ClassID> the category list for text frame defaults
virtual K2Vector<ClassID> IObjectStylesUtils::GetCateogryList () const
pure virtual

Get all the categories we supported in object style.

Returns
K2Vector<ClassID> the category list
virtual void IObjectStylesUtils::GetFormattedString (const PMRealvalue,
const bool16 & bHorizontal,
const IWorkspacews,
PMStringoutString 
)
pure virtual

TEMPORARY

virtual ProtocolCollection IObjectStylesUtils::GetNotificationProtocolListForObjectStyles (IWorkspacews) const
pure virtual

Get observer protocol list see ::GetNotificationProtocolList.

Parameters
wsThe workspace containing the styls
Returns
ProtocolCollection protocols to observer
virtual ObjStyleCategoryAttrMap IObjectStylesUtils::GetSelectionOverridesToStyle (const IPMUnknownmodelTargetBoss,
const IWorkspacews,
const UID styleUID,
ObjStyleCategoryNameMapcategoryNameMap,
const K2Vector< ClassID > * categories = nil 
)
pure virtual

GetSelectionOverridesToStyle: Returns a list of the current overrides in the selection

Parameters
modelTargetBossThe csb representing the selection
wsThe current workspce
styleUIDThe style UID we are checking
categoryNameMapOut – category name list
categoriesOptional parameter to indicate which categories to check for overrides – when nil we assume all
Returns
ObjStyleCategoryAttrMap represents the overrides
virtual void IObjectStylesUtils::GetTargetFromObjectStyle (const UIDRefobjectStyleUIDRef,
IPMUnknowntarget,
UID fillInUncheckedCategoriesWithThisUID = kInvalidUID 
)
pure virtual

GetAttrsFromObjectStyle: Get the attributes from object style and set it into targetBoss

Parameters
objectStyleUIDRefThe style we are pulling from
targetThe style target attribute information we are filling
fillInUncheckedCategoriesWithThisUIDoptional param – Usually the root style if we are filling in the missing categories
virtual PMString IObjectStylesUtils::GetUniqueDuplicateName (IWorkspacews,
const PMStringbaseName 
)
pure virtual

GetUniqueDuplicateName: Gets a unique duplicate string for the new style

Parameters
wsThe current workspce
baseNameThe base name to start from
Returns
PMString The unique name
virtual bool16 IObjectStylesUtils::IsItemWithCategoryAppliedByObjectStyle (const UIDRefitem,
const ClassIDcategoryClass,
UIDRefobjectStyleUIDRef 
) const
pure virtual

Check if the item has object style or not and the attributes within the passed in category has been applied to it or not.

Parameters
item[IN] the item to check.
categoryClass[IN] the category ID related to the attributes we are going to check.
objectStyleUIDRef[OUT] if the item has object style, it will be set as the object style's UIDRef.
Returns
bool16 kTrue indicates that the item has object style and the passed in category attributes are applied.
virtual bool16 IObjectStylesUtils::IsReservedObjectStyleName (const PMStringstyleName) const
pure virtual

Check if the styleName passed in is a reserved style name or not.

Parameters
styleNameIN the style name to be checked.
Returns
bool16 kTrue indicates that the style name is reserved, otherwise, return kFalse.
virtual bool16 IObjectStylesUtils::IsStyleOverridenBySelection (const IPMUnknownmodelTargetBoss,
const IWorkspacews,
const IPMUnknownstyle,
const K2Vector< ClassID > * categories = nil 
)
pure virtual

IsStyleOverridenBySelection: Checks to see if its portion of the object style is overriden on the selection

Parameters
modelTargetBossThe csb representing the selection
wsThe current workspce
styleThe boss with the style data
categoriesOptional parameter to indicate which categories to check for overrides – when nil we assume all
Returns
bool16 true if the style is overriden
virtual void IObjectStylesUtils::MergeAttrsIntoObjectStyle (const IPMUnknownsourceObjectStyle,
IWorkspacetargetWS,
const UIDtargetObjectStyle 
)
pure virtual

MergeAttrsIntoObjectStyle: Only adds the attributes which are in the source, but not in the target

NOTE: MUST BE CALLED FROM A COMMAND OR IN A DATABASE TRANSACTION

Parameters
sourceObjectStyleThe source style we are pulling from
targetWSThe target style workspce
targetObjectStyleThe source style we are mergring the attriubtes to
virtual void IObjectStylesUtils::NotifyObjectStyleInfoChanged (const UIDListitemList,
ICommandcmd,
ClassID cmdClassID,
const LazyNotificationDatadata = nil 
) const
pure virtual

Called from the commands, notifys when a object style info changes

Parameters
itemListitem list to notify – expected, first item is the workspace
cmdcalling command
cmdClassIDclass of calling command
virtual void IObjectStylesUtils::NotifyObjectStyleNameTableChanged (const UIDListitemList,
ICommandcmd,
ClassID cmdClassID = kInvalidClass,
const LazyNotificationDatadata = nil 
) const
pure virtual

Called from the commands, notifys when a object style name table changes

Parameters
itemListitem list to notify – expected, first item is the workspace
cmdcalling command
virtual IObjStylesAttrHandler* IObjectStylesUtils::QueryObjectStyleHandler (const ClassIDhandlerClass) const
pure virtual

Query the object style handler with the passed in handler ID. The caller will take the ownship.

Parameters
handlerClass[IN] the ID of handler.
Returns
IObjStylesAttrHandler* the handler interface.
virtual IWorkspace* IObjectStylesUtils::QueryWorkspaceFromDataBase (IDataBasedb) const
pure virtual

Query the workspace by passing the database.

Parameters
dbThe database used by querying workspace.
Returns
IWorkspace The result workspace. Caller should be responsible for releasing the interface.
virtual void IObjectStylesUtils::RemoveStyleAttributes (const UIDRefstyleUIDRef) const
pure virtual

Remove the attributes that are not supported anymore.

Parameters
styleUIDRefThe UIDRef of the style.
virtual bool16 IObjectStylesUtils::SelectionContainsMixedOverrides (const IPMUnknownmodelTargetBoss,
const IWorkspacews,
const K2Vector< ClassID > * categories = nil 
)
pure virtual

SelectionContainsMixedOverrides: Checks to see if current selection has mixed overrides or not.

Parameters
modelTargetBossThe csb representing the selection
wsThe current workspce
categoriesOptional parameter to indicate which categories to check for overrides – when nil we assume all
Returns
bool16 True if the selection contains mixed overrides
virtual void IObjectStylesUtils::SetAttrsInTarget (IPMUnknownfillTargetBoss,
const IPMUnknownapplyTargetBoss,
const IPMUnknownoldTargetBoss,
const IWorkspacews,
bool16 clearOverrides 
)
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

NOTE: MUST BE CALLED FROM A COMMAND OR IN A DATABASE TRANSACTION

Parameters
fillTargetBossThe style target we are filling
applyTargetBossThe style target attribute information we would like to apply (that we are
oldTargetBossThe style target attribute information from the old style
clearOverridesTrue if we are clearing overrides (attributes which are different then the current style)
virtual void IObjectStylesUtils::SetStyleAttrsInUIDListPostAddToHierarchy (const UIDListlist,
const IPMUnknownstyleTarget,
const IWorkspacews,
K2Vector< ClassID > & categoriesToOverride 
)
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.

Parameters
listThe UIDList of the pageitems to change
styleTargetThe style target attribute information
wsThe current workspce
categoriesToOverrideA list of the categories to override
virtual void IObjectStylesUtils::SetStyleTargetOnDefaultSelection (const IPMUnknowntargetBoss,
IWorkspacews,
K2Vector< ClassID > & categoriesToOverride 
)
pure virtual

SetStyleTargetOnDefaultSelection: Sets the attributes in the default selection state

Parameters
targetBossThe style target (kObjectStylesTargetBoss)
wsThe current workspce
categoriesToOverrideThis of categories we are overriding attributes in
virtual void IObjectStylesUtils::SetStyleTargetOnUIDList (const UIDListlist,
const IPMUnknowntargetBoss,
IWorkspacews,
K2Vector< ClassID > & categoriesToOverride 
)
pure virtual

SetStyleAttrsInUIDList: Sets the attributes in the model and from the target

Parameters
listThe UIDList of the pageitems to change
targetBossThe style target (kObjectStylesTargetBoss)
wsThe current workspce
categoriesToOverrideThis of categories we are overriding attributes in
virtual void IObjectStylesUtils::SetTargetIntoObjectStyle (const UIDRefobjectStyleUIDRef,
const IPMUnknowntarget,
const IObjStylesAttrHandler::HowToUseCategories howToUseCat = IObjStylesAttrHandler::kApplyOnlyCheckedCategoriesFromSource 
)
pure virtual

SetTargetIntoObjectStyle: Get the attributes from object style and set it into targetBoss

NOTE: MUST BE CALLED FROM A COMMAND OR IN A DATABASE TRANSACTION

Parameters
objectStyleUIDRefThe style we are putting the attriubtes on
targetThe style target (kObjectStylesTargetBoss)
howToUseCatThe 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