InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IInkMgrUtils.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bernd Paradies
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __IInkMgrUtils__
25 #define __IInkMgrUtils__
26 
27 #include "IPMUnknown.h"
28 #include "Utils.h"
29 
30 #include "IColorData.h"
31 
32 #include "PrintID.h"
33 #include "ColorSystemID.h"
34 #include "ShuksanID.h"
35 #include "PMString.h"
36 #include "UIDList.h"
37 #include "IInkData.h"
38 #include "BravoForwardDecl.h"
39 
40 
41 class IWorkspace;
42 class ISwatchList;
43 class UIDList;
44 class PMReal;
45 class IDataBase;
46 class IInkList;
47 class IPMInkBossData;
48 
49 
52 class IInkMgrUtils : public IPMUnknown
53 {
54 public:
55  enum { kDefaultIID = IID_IINKMGRUTILS };
56 
59  typedef enum {
63 
68 
74  virtual IInkList* _QueryActiveInkList (IActiveContext* = nil) = 0;
75 
79  virtual IInkList* _QueryActiveDocInkList () = 0;
80 
85  virtual IInkList* QueryDocInkList (IDataBase* iDataBase) = 0;
86 
94  virtual UIDList GetInkAliasListFromInkList (IInkList* iInkList, bool16 excludeSwatchAliases = kFalse) = 0;
95 
107  virtual UID GetInksAliasInfo (IInkList* iInkList, UID inkUID, PMString& aliasInkName, bool16& isProcessInk, int32& plateOrder, ColorArray& colorValue) = 0;
108 
114  virtual UID GetInksAliasUID (IInkList* iInkList, PMString& inkName) = 0;
115 
121  virtual UID GetInksAliasUID (IInkList* iInkList, UID inkUID) = 0;
122 
128  virtual bool16 InksSwatchIsAliased (IInkList* iInkList, const UIDRef& inkRef) = 0;
129 
135  virtual int32 GetPrintInkPlateOrder (IInkList* iInkList, UID inkUID) = 0;
136 
142  virtual UIDRef GetSpotInksColorSwatchUID (const UIDRef& inkRef, IPMUnknown* iSwatchOrInkList = nil) = 0;
143 
150  virtual bool16 GetSpotInSwatchList (IDataBase* iDB, const PMString& spotName, PSProcessInkType type) = 0;
151 
157  virtual IInkData::InkType GetInksColorUsageType (const UIDRef& swatchRef, ISwatchList* iSwatchList = nil) = 0;
158 
163  virtual void _InvokeInkManagerDialog (IInkList* iInkList = nil, RsrcID dlgID = 0) = 0;
164 
169  virtual PMString GetInkUIName (IPMInkBossData* iInkBossData) = 0;
170 
175  virtual PMString GetInkPSName (IPMInkBossData*) = 0;
176 
182  virtual UIDList GetVisibleInkListFromInkList (IInkList* iInkList, bool16 allToProcess) = 0;
183 
192  virtual UID FindInk(IInkList*, PMString inkName) = 0;
193 
200  virtual UID FindPSInk(IInkList*, PMString inkName, PSProcessInkType psInkType) = 0;
201 
207 
213  virtual bool16 ColorsAreModified(IInkList*, UIDList swatchUIDList) = 0;
214 
221  virtual CAGMColorSpace CreateAliasedColorSpace(IInkList* iInkList, UID& aliasee, bool16 doPrint = kFalse) = 0;
222 
229  virtual bool16 InkListHasSpotInks (IInkList* iInkList = nil, bool16 ignoreConvert2Process = kFalse) = 0;
230 
238  virtual UIDList GetInksUsedOnSpread(UIDRef& spreadRef, int32 flags, IInkList* iInkList = nil, PMRect* pBoundsRect = nil) = 0;
239 };
240 
241 
242 #endif // __IInkMgrUtils__