InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IImageReadFormat.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: jargast
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 __IImageReadFormat__
25 #define __IImageReadFormat__
26 
27 #include "IPMUnknown.h"
28 #include "IImageStream.h"
29 
30 class IGraphicLayerInfo;
31 class IImageAttributes;
32 class IPMStream;
33 
54 {
55 public:
56  // format options for SetFormatOption
57  enum {
58  kOptionSetImage = 1,
59  kOptionSetLayer = 2
60  };
61 
62  // format data options for SetFormatOption
63  enum {
64  kOptionUseFullRes = kMaxInt32,
65  kOptionUseSmallestRes = 0
66  };
67 
77  virtual bool16 Open(IPMStream* iPMStream) = 0;
78 
96  virtual bool16 GetImageAttributes(IImageAttributes* iImageAttributes) = 0;
97 
109  virtual bool16 GetGraphicLayerInfo(IGraphicLayerInfo* iLayerInfo) = 0;
110 
116  virtual bool16 Close() = 0;
117 
130  virtual bool16 CanRead(IPMStream* iPMStream) = 0;
131 
163  virtual bool16 SetFormatOption (uint32 formatOption, uint32& formatData) = 0;
164 
174  virtual bool16 ReadData(ImageStreamRecord& outRecord) = 0;
175 
176 
177 };
178 
179 #endif