20#ifndef INCLUDED_SFX2_SFXSTATUSLISTENER_HXX
21#define INCLUDED_SFX2_SFXSTATUSLISTENER_HXX
26#include <com/sun/star/lang/XComponent.hpp>
27#include <com/sun/star/frame/XStatusListener.hpp>
36 css::frame::XStatusListener,
37 css::lang::XComponent>
41 SfxStatusListener(
const css::uno::Reference< css::frame::XDispatchProvider >& rDispatchProvider, sal_uInt16 nSlotId,
const OUString& aCommand );
45 sal_uInt16
GetId()
const {
return m_nSlotID; }
52 virtual void SAL_CALL
dispose()
override;
53 virtual void SAL_CALL addEventListener(
const css::uno::Reference< css::lang::XEventListener >& xListener )
override;
54 virtual void SAL_CALL removeEventListener(
const css::uno::Reference< css::lang::XEventListener >& aListener )
override;
57 virtual void SAL_CALL disposing(
const css::lang::EventObject& Source)
override;
60 virtual void SAL_CALL statusChanged(
const css::frame::FeatureStateEvent& Event)
override;
css::util::URL m_aCommand
SfxStatusListener(const css::uno::Reference< css::frame::XDispatchProvider > &rDispatchProvider, sal_uInt16 nSlotId, const OUString &aCommand)
SfxStatusListener(const SfxStatusListener &)=delete
SfxStatusListener & operator=(const SfxStatusListener &)=delete
css::uno::Reference< css::frame::XDispatch > m_xDispatch
css::uno::Reference< css::frame::XDispatchProvider > m_xDispatchProvider