InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IExtendScriptUtils.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 __IExtendScriptUtils__
25 #define __IExtendScriptUtils__
26 
27 #include "IPMUnknown.h"
28 #include "JavaScriptID.h"
29 #include "IScriptRunner.h"
30 #include "Utils.h"
31 
33 {
34 public:
35  enum { kDefaultIID = IID_IEXTENDSCRIPTUTILS } ;
36 
45  virtual ErrorCode CreateExtendScriptEngine( const PMString& engineName, bool16 isResettable, bool16 isDebuggable ) const = 0 ;
46 
53  virtual ErrorCode DeleteExtendScriptEngine( const PMString& engineName ) const = 0 ;
54 
63  virtual ErrorCode RunFileInEngine( const PMString& engineName, const IDFile& idFile,
64  bool16 showErrorAlert = kTrue, bool16 invokeDebugger = kFalse ) const = 0 ;
65 
74  virtual ErrorCode RunScriptInEngine( const PMString& engineName, const PMString& scriptText,
75  bool16 showErrorAlert = kTrue, bool16 invokeDebugger = kFalse ) const = 0 ;
76 
90  virtual ErrorCode RunScriptInEngine( const PMString& engineName, const ScriptData& script,
91  const ScriptRecordData& arguments, ScriptData& result, PMString& errorString,
92  bool16 showErrorAlert = kTrue, bool16 invokeDebugger = kFalse,
94  const PMString& undoName = PMString() ) const = 0 ;
95 
102  virtual ErrorCode AddIncludePathToEngine( const PMString& engineName, IDFile folderPath ) const = 0 ;
103 
110  virtual ErrorCode RemoveIncludePathFromEngine( const PMString& engineName, IDFile folderPath ) const = 0 ;
111 
115  virtual PMString GetDefaultHBAPIPackageName() const = 0 ;
116 
132  virtual ErrorCode RunScriptInEngine( const PMString& engineName, const ScriptData& script, bool16 evalStringAsFilePath,
133  const ScriptRecordData& arguments, ScriptData& result, PMString& errorString,
134  bool16 showErrorAlert = kTrue, bool16 invokeDebugger = kFalse,
136  const PMString& undoName = PMString() ) const = 0 ;
137 } ;
138 
139 #endif