19#ifndef INCLUDED_SFX2_SOURCE_INC_STATCACH_HXX
20#define INCLUDED_SFX2_SOURCE_INC_STATCACH_HXX
22#include <com/sun/star/frame/XDispatch.hpp>
23#include <com/sun/star/frame/XDispatchProvider.hpp>
24#include <com/sun/star/frame/XStatusListener.hpp>
25#include <com/sun/star/frame/FeatureStateEvent.hpp>
26#include <com/sun/star/beans/PropertyValue.hpp>
40 css::uno::Reference< css::frame::XDispatch >
xDisp;
48 css::uno::Reference< css::frame::XDispatch >
xDisp,
52 virtual void SAL_CALL
statusChanged(
const css::frame::FeatureStateEvent& Event )
override;
53 virtual void SAL_CALL
disposing(
const css::lang::EventObject& Source )
override;
56 sal_Int16
Dispatch(
const css::uno::Sequence < css::beans::PropertyValue >& aProps,
bool bForceSynchron );
85 sal_uInt16
GetId()
const;
89 {
return GetSlotServer( rDispat, css::uno::Reference< css::frame::XDispatchProvider > () ); }
90 css::uno::Reference< css::frame::XDispatch >
GetDispatch()
const;
100 void GetState( boost::property_tree::ptree& );
108 const css::uno::Reference < css::frame::XDispatch >&
css::uno::Reference< css::frame::XDispatch > xDisp
const css::frame::FeatureStateEvent & GetStatus() const
virtual void SAL_CALL statusChanged(const css::frame::FeatureStateEvent &Event) override
BindDispatch_Impl(css::uno::Reference< css::frame::XDispatch > xDisp, css::util::URL aURL, SfxStateCache *pStateCache, const SfxSlot *pSlot)
css::frame::FeatureStateEvent aStatus
sal_Int16 Dispatch(const css::uno::Sequence< css::beans::PropertyValue > &aProps, bool bForceSynchron)
virtual void SAL_CALL disposing(const css::lang::EventObject &Source) override
const css::uno::Reference< css::frame::XDispatch > & GetInternalDispatch() const
SfxStateCache(const SfxStateCache &rOrig)=delete
void Invalidate(bool bWithSlot)
SfxControllerItem * GetItemLink() const
SfxControllerItem * ChangeItemLink(SfxControllerItem *pNewBinding)
bool IsControllerDirty() const
css::uno::Reference< css::frame::XDispatch > GetDispatch() const
const SfxSlotServer * GetSlotServer(SfxDispatcher &rDispat)
void SetState(SfxItemState, const SfxPoolItem *, bool bMaybeDirty=false)
void SetCachedState(bool bAlways)
SfxControllerItem * GetInternalController() const
const SfxSlotServer * GetSlotServer(SfxDispatcher &rDispat, const css::uno::Reference< css::frame::XDispatchProvider > &xProv)
css::uno::Reference< css::frame::XDispatch > xMyDispatch
void SetInternalController(SfxControllerItem *pCtrl)
SfxControllerItem * pInternalController
void SetInternalDispatch(const css::uno::Reference< css::frame::XDispatch > &rDisp)
void ReleaseInternalController()
void SetState_Impl(SfxItemState, const SfxPoolItem *, bool bMaybeDirty)
void SetVisibleState(bool bShow)
void GetState(boost::property_tree::ptree &)
sal_Int16 Dispatch(const SfxItemSet *pSet, bool bForceSynchron)
rtl::Reference< BindDispatch_Impl > mxDispatch
SfxControllerItem * pController
#define DBG_ASSERT(sCon, aError)