Methods
| Definition | Description |
|---|---|
| CloseDocument( document : IDocument ) | Closes the document for editing from a script. Calling this method changes the document state. |
| CloseEditorWindow() | Closes the document editor. When you close the document editor, all unsaved changes are lost. Calling this method changes the document state. |
| CloseTask( bool ) | Closes the task. Pass true to warn first that the process will be canceled, or false to close without a warning. |
| DocumentState( document : IDocument ) : TDocumentState | Retrieves the document state in the task window. This method cannot be invoked from a secondary thread. |
| EditDocument( document : IDocument, page : IPage ) : IDocumentEditor | Opens the document in the document editor for editing. If the document is opened successfully, an object of the IDocumentEditor type is returned. Otherwise, null is returned. Calling this method changes the document state. |
| OpenDocument( document : IDocument ) | Opens the document for editing from a script. You can call this method even when the document is open in the document editor with read-only permissions. Calling this method changes the document state. |
| RejectTask( bool ) | Rejects the task. Pass true to warn first that the process will be canceled, or false to reject without a warning. |
Properties
| Name | Type | Access | Description |
|---|---|---|---|
| Batch | IBatch | Read-only | The batch. |
| DocumentsWindow | IDocumentsWindow | Read-only | The documents window. |
| EditorWindow | IDocumentEditor | Read-only | The document editor. |
| Handle | int | Read-only | The handle of the window. |
| MainWindow | IMainWindow | Read-only | The main window. |
| Mode | TTaskWindowMode | Read/write | The view mode. |
