LibreOffice Module sfx2 (master) 1
|
#include <ctrlitem.hxx>
Public Member Functions | |
SfxBindings & | GetBindings () |
const SfxBindings & | GetBindings () const |
SfxControllerItem () | |
SfxControllerItem (sal_uInt16 nId, SfxBindings &) | |
virtual | ~SfxControllerItem () |
virtual void | dispose () |
void | Bind (sal_uInt16 nNewId, SfxBindings *) |
void | UnBind () |
void | ReBind () |
bool | IsBound () const |
void | ClearCache () |
SfxControllerItem * | GetItemLink () |
SfxControllerItem * | ChangeItemLink (SfxControllerItem *pNewLink) |
void | SetId (sal_uInt16 nItemId) |
sal_uInt16 | GetId () const |
virtual void | StateChangedAtToolBoxControl (sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) |
virtual void | GetControlState (sal_uInt16 nSID, boost::property_tree::ptree &) |
MapUnit | GetCoreMetric () const |
void | SetFallbackCoreMetric (MapUnit eFallback) |
SAL_DLLPRIVATE void | BindInternal_Impl (sal_uInt16 nNewId, SfxBindings *) |
Static Public Member Functions | |
static SfxItemState | GetItemState (const SfxPoolItem *pState) |
Private Attributes | |
SfxControllerItem * | pNext |
SfxBindings * | pBindings |
MapUnit | eFallbackCoreMetric |
sal_uInt16 | nId |
Definition at line 30 of file ctrlitem.hxx.
SfxControllerItem::SfxControllerItem | ( | ) |
Definition at line 172 of file ctrlitem.cxx.
References Map100thMM, and nId.
SfxControllerItem::SfxControllerItem | ( | sal_uInt16 | nId, |
SfxBindings & | rBindings | ||
) |
Definition at line 181 of file ctrlitem.cxx.
References Bind(), Map100thMM, nId, and nId.
|
virtual |
Definition at line 191 of file ctrlitem.cxx.
References dispose().
void SfxControllerItem::Bind | ( | sal_uInt16 | nNewId, |
SfxBindings * | pBindinx | ||
) |
Definition at line 47 of file ctrlitem.cxx.
References DBG_ASSERT, IsBound(), nId, pBindings, pNext, SfxBindings::Register(), and SfxBindings::Release().
Referenced by SfxControllerItem().
void SfxControllerItem::BindInternal_Impl | ( | sal_uInt16 | nNewId, |
SfxBindings * | pBindinx | ||
) |
Definition at line 64 of file ctrlitem.cxx.
References DBG_ASSERT, IsBound(), nId, pBindings, pNext, SfxBindings::RegisterInternal_Impl(), and SfxBindings::Release().
Referenced by SfxDispatchController_Impl::SfxDispatchController_Impl().
SfxControllerItem * SfxControllerItem::ChangeItemLink | ( | SfxControllerItem * | pNewLink | ) |
Definition at line 156 of file ctrlitem.cxx.
References pNext.
Referenced by SfxBindings::Register_Impl(), and SfxBindings::Release().
void SfxControllerItem::ClearCache | ( | ) |
Definition at line 127 of file ctrlitem.cxx.
References SfxBindings::ClearCache_Impl(), DBG_ASSERT, GetId(), and pBindings.
|
virtual |
Definition at line 196 of file ctrlitem.cxx.
References IsBound(), and UnBind().
Referenced by sfx2::sidebar::ControllerItem::~ControllerItem(), and ~SfxControllerItem().
|
inline |
Definition at line 39 of file ctrlitem.hxx.
References DBG_ASSERT.
Referenced by SfxDispatchController_Impl::addStatusListener(), SfxDispatchController_Impl::dispatch(), SfxDispatchController_Impl::GetDispatcher(), sfx2::sidebar::ControllerItem::RequestUpdate(), and SfxDispatchController_Impl::UnBindController().
|
inline |
Definition at line 43 of file ctrlitem.hxx.
References DBG_ASSERT.
|
virtual |
Reimplemented in sfx2::sidebar::ControllerItem.
Definition at line 229 of file ctrlitem.cxx.
MapUnit SfxControllerItem::GetCoreMetric | ( | ) | const |
Definition at line 302 of file ctrlitem.cxx.
References SfxViewFrame::Current(), eFallbackCoreMetric, SfxViewFrame::GetDispatcher(), SfxBindings::GetDispatcher_Impl(), SfxItemPool::GetMetric(), SfxDispatcher::GetShell(), SfxSlotServer::GetShellLevel(), SfxStateCache::GetSlotServer(), SfxBindings::GetStateCache(), SfxItemPool::GetWhich(), SfxStateCache::Invalidate(), nId, pBindings, and SAL_INFO.
Referenced by SfxDispatchController_Impl::dispatch(), and SfxDispatchController_Impl::StateChanged().
|
inline |
Definition at line 63 of file ctrlitem.hxx.
References nId.
Referenced by SfxDispatchController_Impl::addStatusListener(), ClearCache(), SfxDispatchController_Impl::dispatch(), SfxBindings::Register_Impl(), SfxBindings::Release(), sfx2::sidebar::ControllerItem::RequestUpdate(), SfxStateCache::SetCachedState(), and SfxTemplateControllerItem::StateChangedAtToolBoxControl().
SfxControllerItem * SfxControllerItem::GetItemLink | ( | ) |
Definition at line 31 of file ctrlitem.cxx.
References pNext.
Referenced by SfxBindings::DeleteControllers_Impl(), SfxStateCache::GetState(), SfxViewFrame::INetExecute_Impl(), SfxBindings::Release(), SfxStateCache::SetCachedState(), SfxStateCache::SetState_Impl(), SfxStateCache::SetVisibleState(), and BindDispatch_Impl::statusChanged().
|
static |
Definition at line 258 of file ctrlitem.cxx.
References IsInvalidItem(), SfxPoolItem::IsVoidItem(), and SfxPoolItem::Which().
Referenced by SfxStateCache::SetState_Impl().
bool SfxControllerItem::IsBound | ( | ) | const |
Definition at line 39 of file ctrlitem.cxx.
References pNext.
Referenced by Bind(), BindInternal_Impl(), dispose(), IMPL_LINK(), ReBind(), SetId(), UnBind(), and SfxDispatchController_Impl::UnBindController().
void SfxControllerItem::ReBind | ( | ) |
Definition at line 105 of file ctrlitem.cxx.
References DBG_ASSERT, IsBound(), pBindings, and SfxBindings::Register().
Referenced by IMPL_LINK().
|
inline |
Definition at line 72 of file ctrlitem.hxx.
void SfxControllerItem::SetId | ( | sal_uInt16 | nItemId | ) |
Definition at line 165 of file ctrlitem.cxx.
References DBG_ASSERT, IsBound(), and nId.
Referenced by SfxDispatchController_Impl::SfxDispatchController_Impl().
|
virtual |
Reimplemented in SfxStatusForwarder, sfx2::sidebar::ControllerItem, SfxDispatchController_Impl, and SfxTemplateControllerItem.
Definition at line 202 of file ctrlitem.cxx.
Referenced by SfxViewFrame::INetExecute_Impl(), SfxStateCache::SetVisibleState(), and SfxStatusForwarder::StateChangedAtToolBoxControl().
void SfxControllerItem::UnBind | ( | ) |
Definition at line 82 of file ctrlitem.cxx.
References DBG_ASSERT, IsBound(), pBindings, pNext, and SfxBindings::Release().
Referenced by SfxBindings::DeleteControllers_Impl(), dispose(), IMPL_LINK(), and SfxDispatchController_Impl::UnBindController().
|
private |
Definition at line 35 of file ctrlitem.hxx.
Referenced by GetCoreMetric().
|
private |
Definition at line 36 of file ctrlitem.hxx.
Referenced by Bind(), BindInternal_Impl(), GetCoreMetric(), SetId(), and SfxControllerItem().
|
private |
Definition at line 34 of file ctrlitem.hxx.
Referenced by Bind(), BindInternal_Impl(), ClearCache(), GetCoreMetric(), ReBind(), and UnBind().
|
private |
Definition at line 33 of file ctrlitem.hxx.
Referenced by Bind(), BindInternal_Impl(), ChangeItemLink(), GetItemLink(), IsBound(), and UnBind().