InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
PlugIn.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: robin briggs
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 __PlugIn__
25 #define __PlugIn__
26 
27 
28 #include "GetPlugIn.h"
29 #include "IPlugIn.h"
30 
61 class PlugIn : public IPlugIn {
62 public:
63  PlugIn();
64  ~PlugIn();
65 
70  virtual PluginID GetPluginID() const
71  { return fPluginID; }
72 
76  virtual IDFile GetResourceFile() const;
77 
80  virtual bool16 Load(ISession* theSession);
81 
84  virtual bool16 Unload();
85 
89  virtual void LoadFactories(PluginID ownerComponent, ISession *theSession);
90 
93  virtual bool16 LoadAtStartup();
94 
97  virtual bool16 CanUnload() const;
98 
102  virtual void FixUpData(IDocument *doc);
103 
107  virtual void SetPluginID(PluginID pluginID);
108 #ifdef MACINTOSH
109  virtual void SetBundleRef(CFBundleRef bundle);
110 #endif
111 
112  private:
113  PluginID fPluginID;
114 };
115 
116 
117 #endif // __PlugIn__