![]() | InDesign SDK 20.5 |
Public Types | |
| enum | UndoMode { kUndoScriptRequest = en_UndoScriptRequest, kUndoEntireScript = en_UndoEntireScript, kFastUndoEntireScript = en_FastUndoEntireScript, kAutoUndoScript = en_AutoUndoScript } |
Public Member Functions | |
| RunScriptParams (IScriptRunner *scriptRunner) | |
| RunScriptParams (const RunScriptParams ¶ms, IScriptRunner *scriptRunner) | |
| IScriptRequestData * | QueryScriptRequestData () const |
| ScriptVersion | GetVersion () const |
| void | SetVersion (const ScriptVersion &version) |
| IScript * | QueryTarget () const |
| void | SetTarget (IScript *target) |
| bool16 | GetShowErrorAlert () const |
| void | SetShowErrorAlert (bool16 showErrorAlert) |
| bool16 | GetInvokeDebugger () const |
| void | SetInvokeDebugger (bool16 invokeDebugger) |
| virtual UndoMode | GetUndoMode () const |
| virtual void | SetUndoMode (UndoMode undoMode) |
| PMString | GetUndoName () const |
| void | SetUndoName (const PMString &undoName) |
The undo mode for script execution
| explicit |
Construct a new RunScriptParams object
| scriptRunner | is the script runner that will execute the script |
| RunScriptParams::RunScriptParams | ( | const RunScriptParams & | params, |
| IScriptRunner * | scriptRunner | ||
| ) |
Construct a new RunScriptParams object as a copy of the passed in object but using the passed in scriptRunner (e.g., for re-targeting a script to a different engine)
| params | is the object to copy |
| scriptRunner | is the script runner that will execute the script |
| inline |
Get whether to load the script into a debugger for execution (defaults to kFalse)
| inline |
Get whether the runner should display an alert with the error if an error occurs (defaults to kTrue)
| inlinevirtual |
Get the undo mode for the script's execution (defaults to kUndoScriptRequest)
| inline |
Get the undo name for the undo step in single undo step mode (defaults to "Script")
| inline |
Get the desired version of the DOM in which to execute the script (defaults to the version of the DOM corresponding to the current version of the application)
| IScriptRequestData* RunScriptParams::QueryScriptRequestData | ( | ) | const |
Query the IScriptRequestData that is used to pass arguments and return the result
| IScript* RunScriptParams::QueryTarget | ( | ) | const |
Query the target IScript (defaults to the application object)
| inline |
Set whether to load the script into a debugger for execution (defaults to kFalse)
| inline |
Set whether the runner should display an alert with the error if an error occurs (defaults to kTrue)
| void RunScriptParams::SetTarget | ( | IScript * | target | ) |
Set the target IScript (defaults to the application object)
| inlinevirtual |
Set the undo mode for the script's execution (defaults to kUndoScriptRequest)
| inline |
Set the undo name for the undo step in single undo step mode (defaults to "Script")
| inline |
Set the desired version of the DOM in which to execute the script (defaults to the version of the DOM corresponding to the current version of the application)