Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.15

API

SDK

Tips ‘n’ Tricks

Miscellaneous


:: com :: sun :: star :: embed ::

service DocumentCloser
Supported Interface
::com::sun::star::lang::XComponent
Description
The main task of this service is to close an office document frame embedded in an application running in another process correctly.

The usual usage of this service is to create it, initialize with document frame, and to dispose the service. While disposing the service will do all the required actions to let the frame be closed using ::com::sun::star::util::XCloseable::close( true ). Thus in case there is a code that prevents closing of the frame the code avtomatically becomes the owner of the frame.

In addition the code will disconnect the VCL window the frame is based on from the container system window.



Constructors' Summary
DocumentCloserCtor1 is used to initialize the object on it's creation.  
Constructors' Details
DocumentCloserCtor1
DocumentCloserCtor1( [in] ::com::sun::star::frame::XFrame  xFrame )
raises( ::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::frame::DoubleInitializationException,
::com::sun::star::uno::Exception );

Description
is used to initialize the object on it's creation.
Parameter xFrame
the frame of the document that should be closed.

 
Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.