InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
CusDtLnkImportLinkConverter.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 
24 #ifndef __CusDtLnkImportLinkConverter__
25 #define __CusDtLnkImportLinkConverter__
26 
27 // ----- Includes -----
28 #include "ILink.h"
29 
30 #include "CPMUnknown.h"
31 #include "IDTime.h"
32 #include "WideString.h"
33 
34 class IDataLink;
35 
37 {
38 public:
40 
42  virtual ~CusDtLnkImportLinkConverter();
43 
44  virtual LinkType GetLinkType() const { return kImport; }
45  virtual LinkClientID GetClientID() const { return fClientId; }
46 
47  virtual UID GetResource() const { return kInvalidUID; }
48  virtual void SetResource(UID resourceUID) { ASSERT_UNIMPLEMENTED(); }
49  virtual ResourceModificationState GetResourceModificationState() const { return fResourceModState; }
51 
52  virtual UID GetObject() const { return kInvalidUID; }
53  virtual void SetObject(UID objectUID) { ASSERT_UNIMPLEMENTED(); }
55  virtual void SetObjectModificationState(ObjectModificationState modState) { ASSERT_UNIMPLEMENTED(); }
56 
57  virtual bool16 GetShowInUI() const { return kTrue; }
58  virtual void SetShowInUI(bool16 bShowInUI) { ASSERT_UNIMPLEMENTED(); }
59 
60  virtual bool16 GetCanEmbed() const { return kTrue; }
61  virtual void SetCanEmbed(bool16 bCanEmbed) { ASSERT_UNIMPLEMENTED(); }
62 
63  virtual bool16 GetCanUnembed() const { return kTrue; }
64  virtual void SetCanUnembed(bool16 bCanUnembed) { ASSERT_UNIMPLEMENTED(); }
65 
66  virtual bool16 GetCanPackage() const { return kTrue; }
67  virtual void SetCanPackage(bool16 bCanPackage) { ASSERT_UNIMPLEMENTED(); }
68 
69  virtual ImportPolicy GetImportPolicy() const { return kNoAutoImport; }
70  virtual void SetImportPolicy(ImportPolicy policy) { ASSERT_UNIMPLEMENTED(); }
71 
72  virtual WideString GetImportStamp() const { return fImportStamp; }
73  virtual IDTime GetImportModTime() const { return fImportModTime; }
74  virtual IDTime GetLastImportTime() const { return fLastImportTime; }
75 
76  virtual ExportPolicy GetExportPolicy() const { return kNoAutoExport; }
77  virtual void SetExportPolicy(ExportPolicy policy) { ASSERT_UNIMPLEMENTED(); }
78 
79  virtual IDTime GetLastExportTime() const { return fLastExportTime; }
80 
81  virtual void AddChildren(const UIDList& children) { ASSERT_UNIMPLEMENTED(); return; }
82  virtual void DeleteChildren(const UIDList& children) { ASSERT_UNIMPLEMENTED(); return; }
83  virtual uint32 GetChildren(UIDList& children) const { ASSERT_UNIMPLEMENTED(); return 0; }
84  virtual uint32 GetNumChildren() const { ASSERT_UNIMPLEMENTED(); return 0; }
85 
86  virtual UID GetParent() const { ASSERT_UNIMPLEMENTED(); return kInvalidUID; }
87 
88  virtual ErrorCode Update(bool bForceUpdate, UIFlags uiFlags, UID& linkUID) { ASSERT_UNIMPLEMENTED(); return kFailure; }
89  virtual ErrorCode CopyAttributes (const UIDRef& linkRef) { ASSERT_UNIMPLEMENTED(); return kFailure; }
90 
91  virtual ErrorCode Init (IDataLink* iDataLink);
92 
93 private:
94  virtual bool Init(LinkClientID clientId, UID resourceUID, UID objectUID) { ASSERT_UNIMPLEMENTED(); return false; }
95 
96  virtual void InitFromINX(IDataBase* db,
97  LinkType type,
98  LinkClientID clientId,
99  const WideString& importStamp,
100  const IDTime& importModTime,
101  const IDTime& lastImportTime,
102  const IDTime& lastExportTime,
103  bool16 isSharedContentLink) { ASSERT_UNIMPLEMENTED(); }
104 
105  virtual ErrorCode CopyAttributes(const ILink* pLink) {ASSERT_UNIMPLEMENTED(); return kFailure; }
106 
107  // Member variables
108  LinkType fType;
109  LinkClientID fClientId;
110 
111  ResourceModificationState fResourceModState;
112 
113  IDTime fLastExportTime;
114  IDTime fLastImportTime;
115  IDTime fImportModTime;
116  WideString fImportStamp;
117 };
118 
119 
120 #endif // __CusDtLnkImportLinkConverter__