InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IImportImageCmdData.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Jeff Argast
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 __IImportImageCmdData__
25 #define __IImportImageCmdData__
26 
27 #include "IPMUnknown.h"
28 #include "ImageID.h"
29 
33 {
34 public:
36  enum { kDefaultIID = IID_IIMPORTIMAGECMDDATA };
37 
54  virtual void Set(IDataBase* db, UID uid, IPMStream *stream,
55  bool8 showProgressBar = kTrue,
56  bool8 forceCreateProxy = kFalse, // kFalse allows the command to share the proxy with
57  // another image if that image has the same link. kFalse
58  // helps prevent pub bloat.
59  int16 transparencyAlphaIndex = -1, // If >= 0, it is the index of the alpha to use as
60  // a transparency mask.
61  bool8 allowAutoEmbedding = kTrue) = 0;
62 
66  virtual IPMStream *GetStream() const = 0;
67 
71  virtual IDataBase* GetImageDB() const = 0;
72 
76  virtual UID GetImageUID() const = 0;
77 
81  virtual bool8 GetShowProgress() const = 0;
82 
85  virtual bool8 GetForceCreateProxy() const = 0;
86 
89  virtual int16 GetTransparencyIndex() const = 0;
90 
93  virtual bool8 GetAllowAutoEmbedding() const = 0;
94 
97  virtual ClassID GetFormatClassId() const = 0;
98 
116  virtual void Set(IDataBase* db, UID uid, IPMStream *stream,
117  bool8 showProgressBar = kTrue,
118  bool8 forceCreateProxy = kFalse,
119  int16 transparencyAlphaIndex = -1,
120  bool8 allowAutoEmbedding = kTrue,
121  ClassID formatClassId = kInvalidClass) = 0;
122 };
123 
124 #endif