LibreOffice Module sfx2 (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
SfxStateCache Class Reference

#include <statcach.hxx>

Collaboration diagram for SfxStateCache:
[legend]

Public Member Functions

 SfxStateCache (sal_uInt16 nFuncId)
 
 ~SfxStateCache ()
 
sal_uInt16 GetId () const
 
const SfxSlotServerGetSlotServer (SfxDispatcher &rDispat, const css::uno::Reference< css::frame::XDispatchProvider > &xProv)
 
const SfxSlotServerGetSlotServer (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 &)
 
SfxControllerItemChangeItemLink (SfxControllerItem *pNewBinding)
 
SfxControllerItemGetItemLink () const
 
void SetInternalController (SfxControllerItem *pCtrl)
 
void ReleaseInternalController ()
 
SfxControllerItemGetInternalController () 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_ImplmxDispatch
 
sal_uInt16 nId
 
SfxControllerItempInternalController
 
css::uno::Reference< css::frame::XDispatch > xMyDispatch
 
SfxControllerItempController
 
SfxSlotServer aSlotServ
 
SfxPoolItempLastItem
 
SfxItemState eLastState
 
bool bCtrlDirty:1
 
bool bSlotDirty:1
 
bool bItemVisible:1
 
bool bItemDirty
 

Friends

class BindDispatch_Impl
 

Detailed Description

Definition at line 60 of file statcach.hxx.

Constructor & Destructor Documentation

◆ SfxStateCache() [1/2]

SfxStateCache::SfxStateCache ( const SfxStateCache rOrig)
privatedelete

◆ SfxStateCache() [2/2]

SfxStateCache::SfxStateCache ( sal_uInt16  nFuncId)

Definition at line 184 of file statcach.cxx.

References bCtrlDirty, bItemDirty, bSlotDirty, nId, and UNKNOWN.

◆ ~SfxStateCache()

SfxStateCache::~SfxStateCache ( )

Member Function Documentation

◆ ChangeItemLink()

SfxControllerItem * SfxStateCache::ChangeItemLink ( SfxControllerItem pNewBinding)
inline

Definition at line 126 of file statcach.hxx.

References bCtrlDirty, bItemDirty, and pController.

Referenced by SfxBindings::Release().

◆ ClearCache()

void SfxStateCache::ClearCache ( )
inline

Definition at line 118 of file statcach.hxx.

References bItemDirty.

Referenced by SfxBindings::ClearCache_Impl(), and SfxBindings::Invalidate().

◆ Dispatch()

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().

◆ GetDispatch()

css::uno::Reference< css::frame::XDispatch > SfxStateCache::GetDispatch ( ) const

◆ GetId()

sal_uInt16 SfxStateCache::GetId ( ) const
inline

◆ GetInternalController()

SfxControllerItem * SfxStateCache::GetInternalController ( ) const
inline

◆ GetInternalDispatch()

const css::uno::Reference< css::frame::XDispatch > & SfxStateCache::GetInternalDispatch ( ) const
inline

Definition at line 109 of file statcach.hxx.

References xMyDispatch.

Referenced by SfxBindings::GetDispatch().

◆ GetItemLink()

SfxControllerItem * SfxStateCache::GetItemLink ( ) const
inline

◆ GetSlotServer() [1/2]

const SfxSlotServer * SfxStateCache::GetSlotServer ( SfxDispatcher rDispat)
inline

Definition at line 88 of file statcach.hxx.

References GetSlotServer().

◆ GetSlotServer() [2/2]

const SfxSlotServer * SfxStateCache::GetSlotServer ( SfxDispatcher rDispat,
const css::uno::Reference< css::frame::XDispatchProvider > &  xProv 
)

◆ GetState()

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().

◆ Invalidate()

void SfxStateCache::Invalidate ( bool  bWithSlot)

◆ IsControllerDirty()

bool SfxStateCache::IsControllerDirty ( ) const
inline

◆ ReleaseInternalController()

void SfxStateCache::ReleaseInternalController ( )
inline

Definition at line 106 of file statcach.hxx.

References pInternalController.

Referenced by SfxBindings::Release().

◆ SetCachedState()

void SfxStateCache::SetCachedState ( bool  bAlways)

◆ SetInternalController()

void SfxStateCache::SetInternalController ( SfxControllerItem pCtrl)
inline

Definition at line 104 of file statcach.hxx.

References DBG_ASSERT, and pInternalController.

◆ SetInternalDispatch()

void SfxStateCache::SetInternalDispatch ( const css::uno::Reference< css::frame::XDispatch > &  rDisp)
inline

Definition at line 111 of file statcach.hxx.

References xMyDispatch.

Referenced by SfxBindings::GetDispatch().

◆ SetState()

void SfxStateCache::SetState ( SfxItemState  eState,
const SfxPoolItem pState,
bool  bMaybeDirty = false 
)

◆ SetState_Impl()

void SfxStateCache::SetState_Impl ( SfxItemState  eState,
const SfxPoolItem pState,
bool  bMaybeDirty 
)
private

◆ SetVisibleState()

void SfxStateCache::SetVisibleState ( bool  bShow)

Friends And Related Function Documentation

◆ BindDispatch_Impl

friend class BindDispatch_Impl
friend

Definition at line 62 of file statcach.hxx.

Referenced by GetSlotServer().

Member Data Documentation

◆ aSlotServ

SfxSlotServer SfxStateCache::aSlotServ
private

Definition at line 69 of file statcach.hxx.

Referenced by GetSlotServer(), Invalidate(), SetCachedState(), and SetState_Impl().

◆ bCtrlDirty

bool SfxStateCache::bCtrlDirty
private

◆ bItemDirty

bool SfxStateCache::bItemDirty
private

Definition at line 75 of file statcach.hxx.

Referenced by ChangeItemLink(), ClearCache(), SetCachedState(), SetState_Impl(), and SfxStateCache().

◆ bItemVisible

bool SfxStateCache::bItemVisible
private

Definition at line 74 of file statcach.hxx.

Referenced by SetVisibleState().

◆ bSlotDirty

bool SfxStateCache::bSlotDirty
private

Definition at line 73 of file statcach.hxx.

Referenced by GetSlotServer(), Invalidate(), SetCachedState(), SetState_Impl(), and SfxStateCache().

◆ eLastState

SfxItemState SfxStateCache::eLastState
private

Definition at line 71 of file statcach.hxx.

Referenced by SetCachedState(), SetState_Impl(), and SetVisibleState().

◆ mxDispatch

rtl::Reference<BindDispatch_Impl> SfxStateCache::mxDispatch
private

◆ nId

sal_uInt16 SfxStateCache::nId
private

◆ pController

SfxControllerItem* SfxStateCache::pController
private

◆ pInternalController

SfxControllerItem* SfxStateCache::pInternalController
private

◆ pLastItem

SfxPoolItem* SfxStateCache::pLastItem
private

Definition at line 70 of file statcach.hxx.

Referenced by SetCachedState(), SetState_Impl(), SetVisibleState(), and ~SfxStateCache().

◆ xMyDispatch

css::uno::Reference< css::frame::XDispatch > SfxStateCache::xMyDispatch
private

Definition at line 67 of file statcach.hxx.

Referenced by GetInternalDispatch(), and SetInternalDispatch().


The documentation for this class was generated from the following files: