22#include <com/sun/star/lang/XComponent.hpp>
23#include <com/sun/star/util/XCloseListener.hpp>
24#include <com/sun/star/frame/XTerminateListener.hpp>
25#include <com/sun/star/lang/XInitialization.hpp>
26#include <com/sun/star/lang/XServiceInfo.hpp>
41 css::lang::XInitialization,
42 css::lang::XServiceInfo >
58 virtual void SAL_CALL
dispose()
override;
59 virtual void SAL_CALL
addEventListener(
const css::uno::Reference< css::lang::XEventListener >& xListener )
override;
60 virtual void SAL_CALL
removeEventListener(
const css::uno::Reference< css::lang::XEventListener >& aListener )
override;
63 virtual void SAL_CALL
initialize(
const css::uno::Sequence< css::uno::Any >& aArguments )
override;
73class OLockListener :
public ::cppu::WeakImplHelper< css::util::XCloseListener,
74 css::frame::XTerminateListener >
78 css::uno::Reference< css::embed::XActionsApproval >
m_xApproval;
80 css::uno::WeakReference< css::lang::XComponent >
m_xWrapper;
88 OLockListener( css::uno::WeakReference< css::lang::XComponent > xWrapper,
89 css::uno::Reference< css::uno::XInterface > xInstance,
91 css::uno::Reference< css::embed::XActionsApproval > xApproval );
99 virtual void SAL_CALL
disposing(
const css::lang::EventObject& Source )
override;
102 virtual void SAL_CALL
queryClosing(
const css::lang::EventObject& Source,
sal_Bool GetsOwnership )
override;
103 virtual void SAL_CALL
notifyClosing(
const css::lang::EventObject& Source )
override;
106 virtual void SAL_CALL
queryTermination(
const css::lang::EventObject& Event )
override;
107 virtual void SAL_CALL
notifyTermination(
const css::lang::EventObject& Event )
override;
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual void SAL_CALL initialize(const css::uno::Sequence< css::uno::Any > &aArguments) override
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > m_aListenersContainer
virtual ~OInstanceLocker() override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
rtl::Reference< OLockListener > m_xLockListener
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual void SAL_CALL dispose() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
css::uno::WeakReference< css::lang::XComponent > m_xWrapper
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
css::uno::Reference< css::uno::XInterface > m_xInstance
virtual void SAL_CALL queryClosing(const css::lang::EventObject &Source, sal_Bool GetsOwnership) override
virtual void SAL_CALL notifyClosing(const css::lang::EventObject &Source) override
css::uno::Reference< css::embed::XActionsApproval > m_xApproval
virtual void SAL_CALL queryTermination(const css::lang::EventObject &Event) override
virtual ~OLockListener() override
virtual void SAL_CALL notifyTermination(const css::lang::EventObject &Event) override
OLockListener(css::uno::WeakReference< css::lang::XComponent > xWrapper, css::uno::Reference< css::uno::XInterface > xInstance, sal_Int32 nMode, css::uno::Reference< css::embed::XActionsApproval > xApproval)