LibreOffice Module framework (master) 1
Functions
framework::pattern::frame Namespace Reference

Functions

bool closeIt (const css::uno::Reference< css::uno::XInterface > &xResource)
 close (or dispose) the given resource. More...
 

Function Documentation

◆ closeIt()

bool framework::pattern::frame::closeIt ( const css::uno::Reference< css::uno::XInterface > &  xResource)
inline

close (or dispose) the given resource.

@descr It try to close the given resource first. Delegating of the ownership can be influenced from outside. If closing isn't possible (because the needed interface isn't available) dispose() is tried instead. All possible exceptions are handled inside. So the user of this method has to look for the return value only.

Attention: \n The given resource will not be cleared.
But later using of it can produce an exception!
Parameters
xResourcethe object, which should be closed here.
Returns
[bool] sal_True if closing failed.

Definition at line 49 of file frame.hxx.

Referenced by framework::CloseDispatcher::implts_closeFrame(), and framework::CloseDispatcher::implts_prepareFrameForClosing().