InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
INewLinkConverter.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: SusanCL
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 // Description:
24 // This class defines an interface used to convert IDatalinks to the new link
25 // architecture.
26 //
27 //========================================================================================
28 
29 #ifndef __INewLinkConverter__
30 #define __INewLinkConverter__
31 
32 // ----- Includes -----
33 #include "IPMUnknown.h"
34 #include "LinksID.h"
35 
46 {
47 public:
48  enum { kDefaultIID = IID_INEWLINKCONVERTER };
49 
55  virtual ErrorCode DoConvert (const UIDRef& oldLinkRef) = 0;
56 
57 protected:
64  virtual UID CreateNewLinkObject (const UIDRef& oldLinkRef) = 0;
65 
71  virtual ErrorCode DoCustomConversion (const UIDRef& oldLinkRef) = 0;
72 };
73 
74 #endif // __INewLinkConverter__