LibreOffice Module sfx2 (master) 1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
SfxDispatchController_Impl Class Referencefinal

#include <unoctitm.hxx>

Inheritance diagram for SfxDispatchController_Impl:
[legend]
Collaboration diagram for SfxDispatchController_Impl:
[legend]

Public Member Functions

 SfxDispatchController_Impl (SfxOfficeDispatch *pDisp, SfxBindings *pBind, SfxDispatcher *pDispat, const SfxSlot *pSlot, css::util::URL aURL)
 
virtual ~SfxDispatchController_Impl () override
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint) override
 
void StateChanged (sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState, SfxSlotServer const *pServ)
 
virtual void StateChangedAtToolBoxControl (sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
 
void setMasterSlaveCommand (bool bSet)
 
void dispatch (const css::util::URL &aURL, const css::uno::Sequence< css::beans::PropertyValue > &aArgs, const css::uno::Reference< css::frame::XDispatchResultListener > &rListener)
 
void addStatusListener (const css::uno::Reference< css::frame::XStatusListener > &xControl, const css::util::URL &aURL)
 
void UnBindController ()
 
SfxDispatcherGetDispatcher ()
 
void SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame)
 
- Public Member Functions inherited from SfxControllerItem
SfxBindingsGetBindings ()
 
const SfxBindingsGetBindings () 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 ()
 
SfxControllerItemGetItemLink ()
 
SfxControllerItemChangeItemLink (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 *)
 
- Public Member Functions inherited from SfxListener
 SfxListener ()
 
 SfxListener (const SfxListener &rCopy)
 
virtual ~SfxListener () COVERITY_NOEXCEPT_FALSE
 
void StartListening (SfxBroadcaster &rBroadcaster, DuplicateHandling eDuplicateHanding=DuplicateHandling::Unexpected)
 
void EndListening (SfxBroadcaster &rBroadcaster, bool bRemoveAllDuplicates=false)
 
void EndListeningAll ()
 
bool IsListening (SfxBroadcaster &rBroadcaster) const
 
sal_uInt16 GetBroadcasterCount () const
 
SfxBroadcasterGetBroadcasterJOE (sal_uInt16 nNo) const
 
virtual void Notify (SfxBroadcaster &rBC, const SfxHint &rHint)
 
void RemoveBroadcaster_Impl (SfxBroadcaster &rBC)
 
virtual bool IsSdrView () const
 

Static Public Member Functions

static OUString getSlaveCommand (const css::util::URL &rURL)
 
- Static Public Member Functions inherited from SfxControllerItem
static SfxItemState GetItemState (const SfxPoolItem *pState)
 

Private Member Functions

void sendStatusChanged (const OUString &rURL, const css::frame::FeatureStateEvent &rEvent)
 

Static Private Member Functions

static void addParametersToArgs (const css::util::URL &aURL, css::uno::Sequence< css::beans::PropertyValue > &rArgs)
 
static MapUnit GetCoreMetric (SfxItemPool const &rPool, sal_uInt16 nSlot)
 

Private Attributes

css::util::URL aDispatchURL
 
SfxDispatcherpDispatcher
 
SfxBindingspBindings
 
const SfxPoolItempLastState
 
SfxOfficeDispatchpDispatch
 
bool bMasterSlave
 
bool bVisible
 
css::uno::WeakReference< css::frame::XFrame > xFrame
 

Detailed Description

Definition at line 103 of file unoctitm.hxx.

Constructor & Destructor Documentation

◆ SfxDispatchController_Impl()

SfxDispatchController_Impl::SfxDispatchController_Impl ( SfxOfficeDispatch pDisp,
SfxBindings pBind,
SfxDispatcher pDispat,
const SfxSlot pSlot,
css::util::URL  aURL 
)

◆ ~SfxDispatchController_Impl()

SfxDispatchController_Impl::~SfxDispatchController_Impl ( )
overridevirtual

Definition at line 378 of file unoctitm.cxx.

References IsInvalidItem(), pDispatch, SfxOfficeDispatch::pImpl, and pLastState.

Member Function Documentation

◆ addParametersToArgs()

void SfxDispatchController_Impl::addParametersToArgs ( const css::util::URL &  aURL,
css::uno::Sequence< css::beans::PropertyValue > &  rArgs 
)
staticprivate

Definition at line 414 of file unoctitm.cxx.

References aURL, INetURLObject::decode(), nIndex, URLTypeNames, and INetURLObject::WithCharset.

Referenced by dispatch().

◆ addStatusListener()

void SfxDispatchController_Impl::addStatusListener ( const css::uno::Reference< css::frame::XStatusListener > &  xControl,
const css::util::URL &  aURL 
)

◆ dispatch()

void SfxDispatchController_Impl::dispatch ( const css::util::URL &  aURL,
const css::uno::Sequence< css::beans::PropertyValue > &  aArgs,
const css::uno::Reference< css::frame::XDispatchResultListener > &  rListener 
)

◆ GetCoreMetric()

MapUnit SfxDispatchController_Impl::GetCoreMetric ( SfxItemPool const &  rPool,
sal_uInt16  nSlot 
)
staticprivate

Definition at line 494 of file unoctitm.cxx.

References SfxItemPool::GetMetric(), and SfxItemPool::GetWhich().

◆ GetDispatcher()

SfxDispatcher * SfxDispatchController_Impl::GetDispatcher ( )

◆ getSlaveCommand()

OUString SfxDispatchController_Impl::getSlaveCommand ( const css::util::URL &  rURL)
static

Definition at line 500 of file unoctitm.cxx.

References nIndex.

Referenced by dispatch().

◆ Notify()

void SfxDispatchController_Impl::Notify ( SfxBroadcaster rBC,
const SfxHint rHint 
)
overridevirtual

Reimplemented from SfxListener.

Definition at line 368 of file unoctitm.cxx.

References SfxListener::EndListening(), SfxHint::GetId(), pBindings, and pDispatcher.

◆ sendStatusChanged()

void SfxDispatchController_Impl::sendStatusChanged ( const OUString &  rURL,
const css::frame::FeatureStateEvent &  rEvent 
)
private

Definition at line 797 of file unoctitm.cxx.

References pDispatch.

Referenced by StateChanged().

◆ SetFrame()

void SfxDispatchController_Impl::SetFrame ( const css::uno::Reference< css::frame::XFrame > &  xFrame)

Definition at line 393 of file unoctitm.cxx.

References xFrame.

◆ setMasterSlaveCommand()

void SfxDispatchController_Impl::setMasterSlaveCommand ( bool  bSet)

Definition at line 398 of file unoctitm.cxx.

References bMasterSlave.

◆ StateChanged()

void SfxDispatchController_Impl::StateChanged ( sal_uInt16  nSID,
SfxItemState  eState,
const SfxPoolItem pState,
SfxSlotServer const *  pServ 
)

◆ StateChangedAtToolBoxControl()

void SfxDispatchController_Impl::StateChangedAtToolBoxControl ( sal_uInt16  nSID,
SfxItemState  eState,
const SfxPoolItem pState 
)
overridevirtual

Reimplemented from SfxControllerItem.

Definition at line 886 of file unoctitm.cxx.

References StateChanged().

Referenced by dispatch().

◆ UnBindController()

void SfxDispatchController_Impl::UnBindController ( )

Member Data Documentation

◆ aDispatchURL

css::util::URL SfxDispatchController_Impl::aDispatchURL
private

Definition at line 107 of file unoctitm.hxx.

Referenced by dispatch(), SfxDispatchController_Impl(), and StateChanged().

◆ bMasterSlave

bool SfxDispatchController_Impl::bMasterSlave
private

Definition at line 112 of file unoctitm.hxx.

Referenced by dispatch(), and setMasterSlaveCommand().

◆ bVisible

bool SfxDispatchController_Impl::bVisible
private

Definition at line 113 of file unoctitm.hxx.

Referenced by addStatusListener(), and StateChanged().

◆ pBindings

SfxBindings* SfxDispatchController_Impl::pBindings
private

◆ pDispatch

SfxOfficeDispatch* SfxDispatchController_Impl::pDispatch
private

◆ pDispatcher

SfxDispatcher* SfxDispatchController_Impl::pDispatcher
private

◆ pLastState

const SfxPoolItem* SfxDispatchController_Impl::pLastState
private

Definition at line 110 of file unoctitm.hxx.

Referenced by StateChanged(), and ~SfxDispatchController_Impl().

◆ xFrame

css::uno::WeakReference< css::frame::XFrame > SfxDispatchController_Impl::xFrame
private

Definition at line 114 of file unoctitm.hxx.

Referenced by dispatch(), and SetFrame().


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