LibreOffice Module sfx2 (master) 1
|
#include <statcach.hxx>
Public Member Functions | |
SfxStateCache (sal_uInt16 nFuncId) | |
~SfxStateCache () | |
sal_uInt16 | GetId () const |
const SfxSlotServer * | GetSlotServer (SfxDispatcher &rDispat, const css::uno::Reference< css::frame::XDispatchProvider > &xProv) |
const SfxSlotServer * | GetSlotServer (SfxDispatcher &rDispat) |
css::uno::Reference< css::frame::XDispatch > | GetDispatch () const |
sal_Int16 | Dispatch (const SfxItemSet *pSet, bool bForceSynchron) |
bool | IsControllerDirty () const |
void | ClearCache () |
void | SetState (SfxItemState, const SfxPoolItem *, bool bMaybeDirty=false) |
void | SetCachedState (bool bAlways) |
void | Invalidate (bool bWithSlot) |
void | SetVisibleState (bool bShow) |
void | GetState (boost::property_tree::ptree &) |
SfxControllerItem * | ChangeItemLink (SfxControllerItem *pNewBinding) |
SfxControllerItem * | GetItemLink () const |
void | SetInternalController (SfxControllerItem *pCtrl) |
void | ReleaseInternalController () |
SfxControllerItem * | GetInternalController () const |
const css::uno::Reference< css::frame::XDispatch > & | GetInternalDispatch () const |
void | SetInternalDispatch (const css::uno::Reference< css::frame::XDispatch > &rDisp) |
Private Member Functions | |
SfxStateCache (const SfxStateCache &rOrig)=delete | |
void | SetState_Impl (SfxItemState, const SfxPoolItem *, bool bMaybeDirty) |
Private Attributes | |
rtl::Reference< BindDispatch_Impl > | mxDispatch |
sal_uInt16 | nId |
SfxControllerItem * | pInternalController |
css::uno::Reference< css::frame::XDispatch > | xMyDispatch |
SfxControllerItem * | pController |
SfxSlotServer | aSlotServ |
SfxPoolItem * | pLastItem |
SfxItemState | eLastState |
bool | bCtrlDirty:1 |
bool | bSlotDirty:1 |
bool | bItemVisible:1 |
bool | bItemDirty |
Friends | |
class | BindDispatch_Impl |
Definition at line 60 of file statcach.hxx.
|
privatedelete |
SfxStateCache::SfxStateCache | ( | sal_uInt16 | nFuncId | ) |
Definition at line 184 of file statcach.cxx.
References bCtrlDirty, bItemDirty, bSlotDirty, nId, and UNKNOWN.
SfxStateCache::~SfxStateCache | ( | ) |
Definition at line 200 of file statcach.cxx.
References DBG_ASSERT, IsInvalidItem(), mxDispatch, pController, pInternalController, and pLastItem.
|
inline |
Definition at line 126 of file statcach.hxx.
References bCtrlDirty, bItemDirty, and pController.
Referenced by SfxBindings::Release().
|
inline |
Definition at line 118 of file statcach.hxx.
References bItemDirty.
Referenced by SfxBindings::ClearCache_Impl(), and SfxBindings::Invalidate().
sal_Int16 SfxStateCache::Dispatch | ( | const SfxItemSet * | pSet, |
bool | bForceSynchron | ||
) |
Definition at line 484 of file statcach.cxx.
References mxDispatch, nId, and TransformItems().
Referenced by SfxBindings::Execute_Impl().
css::uno::Reference< css::frame::XDispatch > SfxStateCache::GetDispatch | ( | ) | const |
Definition at line 477 of file statcach.cxx.
References mxDispatch.
Referenced by SfxBindings::Execute_Impl(), SfxBindings::QueryState(), SfxBindings::Update(), and SfxBindings::Update_Impl().
|
inline |
Definition at line 147 of file statcach.hxx.
References nId.
Referenced by SfxBindings::DeleteControllers_Impl(), SfxBindings::Invalidate(), SfxBindings::Release(), BindDispatch_Impl::statusChanged(), and SfxBindings::UpdateControllers_Impl().
|
inline |
Definition at line 107 of file statcach.hxx.
References pInternalController.
Referenced by SfxBindings::DeleteControllers_Impl(), SfxBindings::LeaveRegistrations(), SfxBindings::Release(), SfxBindings::Update(), and SfxBindings::Update_Impl().
|
inline |
Definition at line 109 of file statcach.hxx.
References xMyDispatch.
Referenced by SfxBindings::GetDispatch().
|
inline |
Definition at line 141 of file statcach.hxx.
References pController.
Referenced by SfxBindings::DeleteControllers_Impl(), SfxViewFrame::INetExecute_Impl(), SfxBindings::LeaveRegistrations(), SfxBindings::QueryControlState(), SfxBindings::Release(), BindDispatch_Impl::statusChanged(), SfxBindings::Update(), and SfxBindings::Update_Impl().
|
inline |
Definition at line 88 of file statcach.hxx.
References GetSlotServer().
const SfxSlotServer * SfxStateCache::GetSlotServer | ( | SfxDispatcher & | rDispat, |
const css::uno::Reference< css::frame::XDispatchProvider > & | xProv | ||
) |
Definition at line 227 of file statcach.cxx.
References aSlotServ, aURL, bCtrlDirty, BindDispatch_Impl, bSlotDirty, DBG_ASSERT, SfxDispatcher::FindServer_(), SfxDispatcher::GetFrame(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), SfxSlotServer::GetSlot(), SfxSlotPool::GetSlot(), SfxSlotPool::GetSlotPool(), GetSlotServer(), SfxSlot::GetUnoName(), mxDispatch, nId, SfxSlot::pUnoName, and SfxGetpApp().
Referenced by SfxBindings::CreateSet_Impl(), SfxBindings::Execute_Impl(), SfxControllerItem::GetCoreMetric(), GetSlotServer(), SfxBindings::QueryState(), and SfxBindings::Update().
void SfxStateCache::GetState | ( | boost::property_tree::ptree & | rState | ) |
Definition at line 328 of file statcach.cxx.
References SfxControllerItem::GetItemLink(), mxDispatch, nId, and pController.
Referenced by SfxBindings::QueryControlState().
void SfxStateCache::Invalidate | ( | bool | bWithSlot | ) |
Definition at line 211 of file statcach.cxx.
References aSlotServ, bCtrlDirty, bSlotDirty, mxDispatch, and SfxSlotServer::SetSlot().
Referenced by SfxControllerItem::GetCoreMetric(), SfxBindings::Invalidate(), SfxBindings::SetState(), and BindDispatch_Impl::statusChanged().
|
inline |
Definition at line 92 of file statcach.hxx.
References bCtrlDirty.
Referenced by SfxBindings::CreateSet_Impl(), SfxBindings::NextJob_Impl(), SfxBindings::SetState(), SfxBindings::Update(), and SfxBindings::UpdateControllers_Impl().
|
inline |
Definition at line 106 of file statcach.hxx.
References pInternalController.
Referenced by SfxBindings::Release().
void SfxStateCache::SetCachedState | ( | bool | bAlways | ) |
Definition at line 450 of file statcach.cxx.
References aSlotServ, bCtrlDirty, bItemDirty, bSlotDirty, DBG_ASSERT, eLastState, SfxControllerItem::GetId(), SfxControllerItem::GetItemLink(), mxDispatch, nId, pController, pInternalController, and pLastItem.
Referenced by SfxShell::PutItem(), SfxBindings::Update(), and SfxBindings::Update_Impl().
|
inline |
Definition at line 104 of file statcach.hxx.
References DBG_ASSERT, and pInternalController.
|
inline |
Definition at line 111 of file statcach.hxx.
References xMyDispatch.
Referenced by SfxBindings::GetDispatch().
void SfxStateCache::SetState | ( | SfxItemState | eState, |
const SfxPoolItem * | pState, | ||
bool | bMaybeDirty = false |
||
) |
Definition at line 310 of file statcach.cxx.
References SetState_Impl().
Referenced by SfxShell::PutItem(), SfxBindings::SetState(), SfxBindings::Update(), and SfxBindings::UpdateControllers_Impl().
|
private |
Definition at line 387 of file statcach.cxx.
References aSlotServ, bCtrlDirty, bItemDirty, bSlotDirty, SfxPoolItem::Clone(), DBG_ASSERT, eLastState, SfxControllerItem::GetItemLink(), SfxControllerItem::GetItemState(), IsInvalidItem(), mxDispatch, nId, pController, pInternalController, and pLastItem.
Referenced by SetState().
void SfxStateCache::SetVisibleState | ( | bool | bShow | ) |
Definition at line 342 of file statcach.cxx.
References bItemVisible, eLastState, SfxControllerItem::GetItemLink(), IsInvalidItem(), mxDispatch, nId, pController, pInternalController, pLastItem, and SfxControllerItem::StateChangedAtToolBoxControl().
Referenced by SfxBindings::SetVisibleState().
|
friend |
Definition at line 62 of file statcach.hxx.
Referenced by GetSlotServer().
|
private |
Definition at line 69 of file statcach.hxx.
Referenced by GetSlotServer(), Invalidate(), SetCachedState(), and SetState_Impl().
|
private |
Definition at line 72 of file statcach.hxx.
Referenced by ChangeItemLink(), GetSlotServer(), Invalidate(), IsControllerDirty(), SetCachedState(), SetState_Impl(), and SfxStateCache().
|
private |
Definition at line 75 of file statcach.hxx.
Referenced by ChangeItemLink(), ClearCache(), SetCachedState(), SetState_Impl(), and SfxStateCache().
|
private |
Definition at line 74 of file statcach.hxx.
Referenced by SetVisibleState().
|
private |
Definition at line 73 of file statcach.hxx.
Referenced by GetSlotServer(), Invalidate(), SetCachedState(), SetState_Impl(), and SfxStateCache().
|
private |
Definition at line 71 of file statcach.hxx.
Referenced by SetCachedState(), SetState_Impl(), and SetVisibleState().
|
private |
Definition at line 64 of file statcach.hxx.
Referenced by Dispatch(), GetDispatch(), GetSlotServer(), GetState(), Invalidate(), SetCachedState(), SetState_Impl(), SetVisibleState(), and ~SfxStateCache().
|
private |
Definition at line 65 of file statcach.hxx.
Referenced by Dispatch(), GetId(), GetSlotServer(), GetState(), SetCachedState(), SetState_Impl(), and SetVisibleState().
|
private |
Definition at line 68 of file statcach.hxx.
Referenced by ChangeItemLink(), GetItemLink(), GetState(), SetCachedState(), SetState_Impl(), SetVisibleState(), and ~SfxStateCache().
|
private |
Definition at line 66 of file statcach.hxx.
Referenced by GetInternalController(), ReleaseInternalController(), SetCachedState(), SetInternalController(), SetState_Impl(), SetVisibleState(), and ~SfxStateCache().
|
private |
Definition at line 70 of file statcach.hxx.
Referenced by SetCachedState(), SetState_Impl(), SetVisibleState(), and ~SfxStateCache().
|
private |
Definition at line 67 of file statcach.hxx.
Referenced by GetInternalDispatch(), and SetInternalDispatch().