LibreOffice Module sfx2 (master) 1
|
#include <unoctitm.hxx>
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 () |
SfxDispatcher * | GetDispatcher () |
void | SetFrame (const css::uno::Reference< css::frame::XFrame > &xFrame) |
Public Member Functions inherited from SfxControllerItem | |
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 *) |
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 |
SfxBroadcaster * | GetBroadcasterJOE (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 |
SfxDispatcher * | pDispatcher |
SfxBindings * | pBindings |
const SfxPoolItem * | pLastState |
SfxOfficeDispatch * | pDispatch |
bool | bMasterSlave |
bool | bVisible |
css::uno::WeakReference< css::frame::XFrame > | xFrame |
Definition at line 103 of file unoctitm.hxx.
SfxDispatchController_Impl::SfxDispatchController_Impl | ( | SfxOfficeDispatch * | pDisp, |
SfxBindings * | pBind, | ||
SfxDispatcher * | pDispat, | ||
const SfxSlot * | pSlot, | ||
css::util::URL | aURL | ||
) |
Definition at line 324 of file unoctitm.cxx.
References aDispatchURL, aURL, SfxControllerItem::BindInternal_Impl(), bVisible, SfxApplication::Get(), SfxSlot::GetCommand(), SfxDispatcher::GetFrame(), SfxSlot::GetSlotId(), pBindings, pDispatcher, SfxSlot::pUnoName, SfxControllerItem::SetId(), and SfxListener::StartListening().
|
overridevirtual |
Definition at line 378 of file unoctitm.cxx.
References IsInvalidItem(), pDispatch, SfxOfficeDispatch::pImpl, and pLastState.
|
staticprivate |
Definition at line 414 of file unoctitm.cxx.
References aURL, INetURLObject::decode(), nIndex, URLTypeNames, and INetURLObject::WithCharset.
Referenced by dispatch().
void SfxDispatchController_Impl::addStatusListener | ( | const css::uno::Reference< css::frame::XStatusListener > & | xControl, |
const css::util::URL & | aURL | ||
) |
css::uno::RuntimeException |
Definition at line 754 of file unoctitm.cxx.
References aEvent, aURL, bVisible, SfxControllerItem::GetBindings(), SfxBindings::GetDispatcher_Impl(), SfxControllerItem::GetId(), pBindings, pDispatch, pDispatcher, and SfxDispatcher::QueryState().
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 | ||
) |
css::uno::RuntimeException |
Definition at line 523 of file unoctitm.cxx.
References addParametersToArgs(), aDispatchURL, aEvent, ASYNCHRON, aURL, bMasterSlave, CONVERT_TWIPS, SfxItemSet::Count(), SfxViewShell::Current(), SfxDispatcher::Execute(), SfxBindings::Execute_Impl(), tools::JsonWriter::finishAndGetAsOString(), SfxApplication::Get(), get(), SfxControllerItem::GetBindings(), SfxDispatcher::GetBindings(), SfxControllerItem::GetCoreMetric(), SfxBindings::GetDispatcher_Impl(), SfxDispatcher::GetFrame(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), SfxControllerItem::GetId(), SfxShell::GetPool(), SfxRequest::GetReturnValue(), SfxDispatcher::GetShellAndSlot_Impl(), getSlaveCommand(), INetURLObject::HasParam(), comphelper::LibreOfficeKit::isActive(), SfxRequest::IsDone(), SfxDispatcher::IsLocked(), SfxPoolItem::IsVoidItem(), SfxViewShell::libreOfficeKitViewCallback(), CrashReporter::logUnoCommand(), n, nCount, nIndex, pBindings, pDispatch, pDispatcher, SfxSlot::pUnoName, SfxItemSet::Put(), tools::JsonWriter::put(), SfxDispatcher::QueryState(), SfxPoolItem::QueryValue(), RECORD, SAL_INFO, SfxRequest::SetInternalArgs_Impl(), SfxRequest::SetModifier(), SfxGetpApp(), StateChangedAtToolBoxControl(), SYNCHRON, TransformParameters(), and xFrame.
|
staticprivate |
Definition at line 494 of file unoctitm.cxx.
References SfxItemPool::GetMetric(), and SfxItemPool::GetWhich().
SfxDispatcher * SfxDispatchController_Impl::GetDispatcher | ( | ) |
Definition at line 747 of file unoctitm.cxx.
References SfxControllerItem::GetBindings(), SfxBindings::GetDispatcher_Impl(), pBindings, and pDispatcher.
|
static |
|
overridevirtual |
Reimplemented from SfxListener.
Definition at line 368 of file unoctitm.cxx.
References SfxListener::EndListening(), SfxHint::GetId(), pBindings, and pDispatcher.
|
private |
void SfxDispatchController_Impl::SetFrame | ( | const css::uno::Reference< css::frame::XFrame > & | xFrame | ) |
Definition at line 393 of file unoctitm.cxx.
References xFrame.
void SfxDispatchController_Impl::setMasterSlaveCommand | ( | bool | bSet | ) |
Definition at line 398 of file unoctitm.cxx.
References bMasterSlave.
void SfxDispatchController_Impl::StateChanged | ( | sal_uInt16 | nSID, |
SfxItemState | eState, | ||
const SfxPoolItem * | pState, | ||
SfxSlotServer const * | pServ | ||
) |
Definition at line 802 of file unoctitm.cxx.
References aDispatchURL, aEvent, bVisible, SfxPoolItem::Clone(), CONVERT_TWIPS, SfxControllerItem::GetCoreMetric(), SfxDispatcher::GetFrame(), SfxDispatcher::GetShell(), SfxSlotServer::GetShellLevel(), InterceptLOKStateChangeEvent(), IsInvalidItem(), SfxPoolItem::IsVoidItem(), pDispatch, pDispatcher, pLastState, SfxPoolItem::QueryValue(), and sendStatusChanged().
Referenced by StateChangedAtToolBoxControl().
|
overridevirtual |
Reimplemented from SfxControllerItem.
Definition at line 886 of file unoctitm.cxx.
References StateChanged().
Referenced by dispatch().
void SfxDispatchController_Impl::UnBindController | ( | ) |
Definition at line 403 of file unoctitm.cxx.
References SfxControllerItem::GetBindings(), SfxControllerItem::IsBound(), pDispatch, and SfxControllerItem::UnBind().
|
private |
Definition at line 107 of file unoctitm.hxx.
Referenced by dispatch(), SfxDispatchController_Impl(), and StateChanged().
|
private |
Definition at line 112 of file unoctitm.hxx.
Referenced by dispatch(), and setMasterSlaveCommand().
|
private |
Definition at line 113 of file unoctitm.hxx.
Referenced by addStatusListener(), and StateChanged().
|
private |
Definition at line 109 of file unoctitm.hxx.
Referenced by addStatusListener(), dispatch(), GetDispatcher(), Notify(), and SfxDispatchController_Impl().
|
private |
Definition at line 111 of file unoctitm.hxx.
Referenced by addStatusListener(), dispatch(), sendStatusChanged(), StateChanged(), UnBindController(), and ~SfxDispatchController_Impl().
|
private |
Definition at line 108 of file unoctitm.hxx.
Referenced by addStatusListener(), dispatch(), GetDispatcher(), Notify(), SfxDispatchController_Impl(), and StateChanged().
|
private |
Definition at line 110 of file unoctitm.hxx.
Referenced by StateChanged(), and ~SfxDispatchController_Impl().
|
private |
Definition at line 114 of file unoctitm.hxx.
Referenced by dispatch(), and SetFrame().