InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPhase2Conversion.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Steve Pellegrin
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 of Interface:
24 // Manages file format conversions between different versions of plug-ins.
25 //
26 //========================================================================================
27 
28 #ifndef __IPhase2Conversion__
29 #define __IPhase2Conversion__
30 
31 // ----- Interfaces -----
32 
33 #include "IPMUnknown.h"
34 
35 // ----- Includes -----
36 #include "OMTypes.h"
37 
38 // ----- ID.h files -----
39 
40 #include "ShuksanID.h"
41 
42 
43 class FormatID;
44 class IDataBase;
45 class IPMStream;
46 
53 {
54 // Methods for clients.
55 public:
56  enum { kDefaultIID = IID_IPHASE2CONVERSION };
57 
63  virtual UIDRef GetRootObject() const = 0;
64 
68  {
87  };
88 
92  virtual RootObjectType GetRootObjectType() const = 0;
93 
98  virtual PluginID GetSourcePluginIDForClass(ClassID clsID) = 0;
99 
105 
111  virtual bool16 GetSourcePluginFormatNumber(PluginID plugin, FormatID &format) = 0;
112 
115  virtual bool16 ReadSourceData(UID uid, ImplementationID implID, const FormatID &format, IPMStream *outStream) = 0;
116 
121  virtual PluginID GetTargetPluginIDForClass(ClassID clsID) = 0;
122 
128 
134  virtual bool16 GetTargetPluginFormatNumber(PluginID plugin, FormatID &format) = 0;
135 
142  virtual void RemoveClass(ClassID clsID) = 0;
143 
150  virtual void RemoveImplementation(ImplementationID implID) = 0;
151 
152 public:
157  virtual void SetRootObject(const UIDRef &root) = 0;
158 };
159 
160 
161 #endif // __IPhase2Conversion__
162