InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IScriptEngine.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Jonathan W. Brown
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 __IScriptEngine__
25 #define __IScriptEngine__
26 
27 #include "IPMUnknown.h"
28 #include "ScriptingID.h"
29 #include "RequestContext.h"
30 
31 class IScriptRequestData ;
32 class IScriptManager ;
33 
34 using namespace ScriptInfo ;
35 
43 class IScriptEngine : public IPMUnknown
44 {
45 public:
46  enum { kDefaultIID = IID_ISCRIPTENGINE } ;
47 
51  virtual ErrorCode Install() = 0 ;
55  virtual ErrorCode UnInstall() = 0 ;
56 
60  virtual EngineContext GetRequestContext() const = 0 ;
61 
65  virtual IScriptManager* QueryScriptManager() const = 0 ;
66 
70  virtual IScriptRequestData* CreateScriptRequestData() /*const*/ = 0 ;
71 
75  virtual PMString GetName() const = 0 ;
76 
80  virtual bool16 IsScriptActive() const = 0 ;
84  virtual void IncrementActiveScriptCount() = 0 ;
88  virtual void DecrementActiveScriptCount() = 0 ;
89 
93  virtual bool16 GetShowAlerts() const = 0 ;
97  virtual bool16 GetShowDialogs() const = 0 ;
98 } ;
99 
100 #endif