InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IColorGroupFacade.h
1 //========================================================================================
2 //
3 // ADOBE CONFIDENTIAL
4 //
5 // $File$
6 //
7 // Owner: Ankur Gupta
8 //
9 // $Author$
10 //
11 // $DateTime$
12 //
13 // $Revision$
14 //
15 // $Change$
16 //
17 // Copyright 2014 Adobe Systems Incorporated
18 // All Rights Reserved.
19 //
20 // NOTICE: All information contained herein is, and remains
21 // the property of Adobe Systems Incorporated and its suppliers,
22 // if any. The intellectual and technical concepts contained
23 // herein are proprietary to Adobe Systems Incorporated and its
24 // suppliers and are protected by trade secret or copyright law.
25 // Dissemination of this information or reproduction of this material
26 // is strictly forbidden unless prior written permission is obtained
27 // from Adobe Systems Incorporated.
28 //
29 //========================================================================================
30 
31 #ifndef _ICOLORGROUPFACADE_
32 #define _ICOLORGROUPFACADE_
33 
34 #include "ColorSystemID.h"
35 #include "IColorGroupList.h"
36 #include "UIDList.h"
37 
38 namespace Facade
39 {
41  {
42  public:
43  enum { kDefaultIID = IID_ICOLORGROUPFACADE };
44 
45  public:
46 
53  virtual UID CreateAndAddColorGroup(IColorGroupList* colorGroupList, const PMString& name, int32 pos = -1) = 0;
54 
60  virtual ErrorCode MoveColorGroups(const UIDList& colorGroupList, int32 toPos) = 0;
61 
67  virtual ErrorCode SetColorGroupName(const UIDRef& colorGroup, const PMString& name) = 0;
68 
76  virtual ErrorCode AddMembers(const UIDRef& colorGroup, const UIDList& memberList, int32 pos = -1) = 0 ;
77 
83  virtual ErrorCode RemoveMembers(const UIDRef& colorGroup, const UIDList& memberList) = 0 ;
84 
90  virtual ErrorCode DeleteColorGroups(const UIDList& colorGroupList, bool16 deleteChildren = kFalse) = 0 ;
91 
95  virtual ErrorCode RemoveFromRespectiveColorGroups(const UIDList& memberList) = 0 ;
96 
101  virtual ErrorCode DuplicateColorGroups(const UIDList& colorGroupList, UIDList& newColorGroupList) = 0 ;
102  };
103 }
104 #endif // _ICOLORGROUPFACADE_