Skip to main content

What it does

Represents the task window.

Methods

Definition

Description

CloseDocument( document : IDocument )

Closes the document for editing from script.

When calling this method, the document state is changed.

CloseEditorWindow()

Closes the document editor.

Important! When closing the document editor, all unsaved changes will be lost.

When calling this method, the document state is changed.

CloseTask( bool )

Closes the task with a warning that the process will be canceled (if the argument is set to true) or without a warning (if the argument is set to false).

DocumentState( document : IDocument ) : TDocumentState

Retrieves the document state in the task window.

Note: The method cannot be invoked from a secondary thread.

EditDocument( document : IDocument, page : IPage ) : IDocumentEditor

Opens the document in the document editor for editing.

Note: If the document is opened successfully, the object of the IDocumentEditor type is returned. Otherwise null is returned.

When calling this method, the document state is changed.

OpenDocument( document : IDocument )

Opens the document for editing from script. The method can be called even when the document is opened in the document editor with read-only permissions.

When calling this method, the document state is changed.

RejectTask( bool )

Rejects the task with a warning that the process will be canceled (if the argument is set to true) or without a warning (if the argument is set to false).

Properties

NameTypeAccessDescription
BatchIBatchRead-onlyThe batch
DocumentsWindowIDocumentsWindowRead-onlyThe documents window
EditorWindowIDocumentEditorRead-onlyThe document editor
HandleintRead-onlyThe handle of the window
MainWindowIMainWindowRead-onlyThe main window
ModeTTaskWindowModeRead/writeThe view mode