- Description
- provides functionality for treating the object as part of a hierarchy
of a database document's sub documents.
The ::com::sun::star::ucb::XCommandProcessor::execute method
of a DocumentDefinition supports at least the following commands, additionally to
the ones already supported by the DefinitionContent:
- open: loads the sub document in an own frame. The return value of
the
execute method is the model of the loaded document.
- store: stores the document.
- openDesign: opens the sub document in an own frame, in design mode.
The user can make changes to the document, and save those changes. The return value of
the
execute method is the model of the loaded document.
- preview: retrieves an image showing a preview of the sub document.
- getDocumentInfo: retrieves the document information, as
::com::sun::star::document::XDocumentInfo instance, of the sub document.
- delete: deletes the sub document from the database document.
- close: closes the sub document, if it had previously been opened
using either the
open or openDesign command. The return value
of the execute command is a boolean value indicating whether
the sub document could be closed. Reasons for not closing the document include vetos by
third parties, for instance, because the user opened a dialog modal to the sub document,
or a long-running task such as printing is currently running.
|