{
"OnLoadFinished", "OnViewCreated", "OnFocus", "OnLoad"
}, context);
// closing a document by API
final XCloseable closeDoc = (XCloseable) UnoRuntime.queryInterface(XCloseable.class,
databaseDoc);
context = "close (API)";
impl_startObservingEvents(context);
closeDoc.close(true);
impl_stopObservingEvents(m_globalEvents,
new String[]
{
"OnPrepareUnload", "OnViewClosed", "OnUnload"
}, context);