22#include <com/sun/star/lang/XComponent.hpp>
23#include <com/sun/star/lang/DisposedException.hpp>
24#include <com/sun/star/util/CloseVetoException.hpp>
25#include <com/sun/star/util/XCloseable.hpp>
49inline bool closeIt(
const css::uno::Reference< css::uno::XInterface >& xResource)
51 css::uno::Reference< css::util::XCloseable > xClose (xResource, css::uno::UNO_QUERY);
52 css::uno::Reference< css::lang::XComponent > xDispose(xResource, css::uno::UNO_QUERY);
64 catch(
const css::util::CloseVetoException&)
66 catch(
const css::lang::DisposedException&)
68 catch(
const css::uno::RuntimeException&)
70 catch(
const css::uno::Exception&)
bool closeIt(const css::uno::Reference< css::uno::XInterface > &xResource)
close (or dispose) the given resource.