InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDuotoneInfo.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: David Berggren
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 // Purpose:
24 // Stores info about duotone inks read in from a placed graphic (i.e. PSD file)
25 //
26 //========================================================================================
27 
28 #ifndef __IDuotoneInfo__
29 #define __IDuotoneInfo__
30 
31 #include "IPMUnknown.h"
32 #include "IColorData.h"
33 #include "ImageID.h"
34 #include "PMString.h"
35 
40 class IDuotoneInfo : public IPMUnknown
41 {
42 public:
43  enum { kDefaultIID = IID_IDUOTONEINFO };
44 
45  // ***********************
46  // Add/Remove methods
47  // ***********************
48 
56  virtual void AppendDuotoneInk ( const PMString& inkName,
57  int32 colorSpace,
58  const ColorArray& colorData,
59  uint8* clut
60  ) = 0;
61 
65  virtual void RemoveInk ( uint32 index ) = 0;
66 
69  virtual void Clear() = 0;
70 
71  // ***********************
72  // Set methods
73  // ***********************
74 
79  virtual void SetInkName (uint32 index, const PMString& newName) = 0;
80 
86  virtual void SetInkColor (uint32 index, int32 colorSpace, const ColorArray& colorData) = 0;
87 
93  virtual void SetInkCLUT (uint32 index, uint8* clut) = 0;
94 
95  // ***********************
96  // Get methods
97  // ***********************
98 
104  virtual uint32 GetNumberInks () const = 0;
105 
110  virtual PMString GetNthInkName (uint32 index) const = 0;
115  virtual int32 GetNthInkColorSpace (uint32 index) const = 0;
120  virtual ColorArray GetNthInkColorData (uint32 index) const = 0;
126  virtual ErrorCode GetNthInkCLUT (uint32 index, uint8* clut) const = 0;
127 
128 };
129 
130 #endif