InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Facade::IColorGroupFacade Class Referenceabstract
Inheritance diagram for Facade::IColorGroupFacade:
IPMUnknown

Public Types

enum  { kDefaultIID = IID_ICOLORGROUPFACADE }
 

Public Member Functions

virtual UID CreateAndAddColorGroup (IColorGroupList *colorGroupList, const PMString &name, int32 pos=-1)=0
 
virtual ErrorCode MoveColorGroups (const UIDList &colorGroupList, int32 toPos)=0
 
virtual ErrorCode SetColorGroupName (const UIDRef &colorGroup, const PMString &name)=0
 
virtual ErrorCode AddMembers (const UIDRef &colorGroup, const UIDList &memberList, int32 pos=-1)=0
 
virtual ErrorCode RemoveMembers (const UIDRef &colorGroup, const UIDList &memberList)=0
 
virtual ErrorCode DeleteColorGroups (const UIDList &colorGroupList, bool16 deleteChildren=kFalse)=0
 
virtual ErrorCode RemoveFromRespectiveColorGroups (const UIDList &memberList)=0
 
virtual ErrorCode DuplicateColorGroups (const UIDList &colorGroupList, UIDList &newColorGroupList)=0
 
- Public Member Functions inherited from IPMUnknown
virtual IPMUnknownQueryInterface (PMIID interfaceID) const =0
 
virtual void AddRef () const =0
 
virtual void Release () const =0
 

Member Function Documentation

virtual ErrorCode Facade::IColorGroupFacade::AddMembers (const UIDRefcolorGroup,
const UIDListmemberList,
int32 pos = -1 
)
pure virtual

Add members to a color group at the specified position. A member can be only in one color group. If it is already in any other color group then it would be removed from it.

Parameters
colorGroupIN The color group to which members need to be added.
memberListIN The ordered list of members that need to be added.
posIN 0 based starting position at which the members will be added. Specify -1 to add to the end.
Returns
kSuccess if the members were successfully added, else an error code.
virtual UID Facade::IColorGroupFacade::CreateAndAddColorGroup (IColorGroupListcolorGroupList,
const PMStringname,
int32 pos = -1 
)
pure virtual

Create and add a color group to the color group list.

Parameters
colorGroupListIN the color group list in which the color group is created and added.
nameIN The name of the color group.
posIN 0 based position at which to add the color group. Specify -1 to add to the end.
Returns
UID of the added color group.
virtual ErrorCode Facade::IColorGroupFacade::DeleteColorGroups (const UIDListcolorGroupList,
bool16 deleteChildren = kFalse 
)
pure virtual

Deletes a list of color groups.

Parameters
colorGroupListIN The list of color groups to be deleted
deleteChildrenIN kTrue means children will also be deleted otherwise it will be moved
Returns
kSuccess if the color groups were successfully deleted, else an error code.
virtual ErrorCode Facade::IColorGroupFacade::DuplicateColorGroups (const UIDListcolorGroupList,
UIDListnewColorGroupList 
)
pure virtual
Parameters
colorGroupListIN The list of color group that need to be duplicated.
newColorGroupListOUT The list of newly color groups created.
Returns
kSuccess if the members were successfully duplicated, else an error code.
virtual ErrorCode Facade::IColorGroupFacade::MoveColorGroups (const UIDListcolorGroupList,
int32 toPos 
)
pure virtual

Move color groups to a new position within the same color group list.

Parameters
colorGroupListIN The UIDList of color groups to be moved.
toPosIN 0 based starting position to which the color groups will be moved.
Returns
kSuccess if the color groups were successfully moved, else an error code.
virtual ErrorCode Facade::IColorGroupFacade::RemoveFromRespectiveColorGroups (const UIDListmemberList)
pure virtual
Parameters
memberListIN The list of members to be removed from respective color groups.
Returns
kSuccess if the members were successfully removed, else an error code.
virtual ErrorCode Facade::IColorGroupFacade::RemoveMembers (const UIDRefcolorGroup,
const UIDListmemberList 
)
pure virtual

Remove members from a color group.

Parameters
colorGroupIN The color group from which the members need to be removed.
memberListIN The list of members that need to be removed.
Returns
kSuccess if the members were successfully removed, else an error code.
virtual ErrorCode Facade::IColorGroupFacade::SetColorGroupName (const UIDRefcolorGroup,
const PMStringname 
)
pure virtual

Set the name of a color group.

Parameters
colorGroupIN The color group to be renamed.
nameIN The name of the color group.
Returns
kSuccess if the color group name was successfully set, else an error code.