|
Syntax
- boolean terminate
();
Description
tries to terminate the desktop.
First, a vetoable queryTermination-event is broadcast. If no
TerminationVetoException was thrown, a notifyTermination-event is
broadcast and true
will be returned; otherwise an
abortTermination-event is broadcast and false
will be returned.
See also
- TerminationVetoException
-
See also
- XTerminateListener
-
Syntax
- oneway void addTerminateListener
(
- com::sun::star::frame::XTerminateListener xListener );
Description
registers an event listener to the desktop, which is called
when the desktop is queried to terminate, and when it really
terminates.
Syntax
- oneway void removeTerminateListener
(
- com::sun::star::frame::XTerminateListener xListener );
Description
unregisters an event listener which was registered with
XDesktop::addTerminateListener .
Syntax
- com::sun::star::container::XEnumerationAccess getComponents
();
Returns
-
a collection of all components which are loaded into a frame.
The component is, by definition, the model of the control which
is loaded into a frame, or if no model exists, into the control
itself.
The service, Components , which is available from this
method is a collection of all components of the desktop which are open
within a frame of the desktop.
See also
- Components
-
Syntax
- com::sun::star::lang::XComponent getCurrentComponent
();
Returns
-
the component within the desktop environment which has the UI focus.
Normally, the component is the model part of the
active component. If no model exists it is the active controller
(view) itself.
Syntax
- com::sun::star::frame::XFrame getCurrentFrame
();
Returns
-
the frame of the component which has the
UI focus within this desktop enviroment.
|