The Free and Open Productivity Suite
QA Volunteers Needed -- Help us test OpenOffice

Developer's Guide

API

SDK

Tips 'n' Tricks

Miscellaneous

Content for Apache OpenOffice version 3.4.

:: 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 Feather

Copyright & License | Privacy | Contact Us | Donate

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