LibreOffice Module sfx2 (master) 1
|
#include <bindings.hxx>
Public Member Functions | |
SfxBindings () | |
virtual | ~SfxBindings () override |
void | HidePopups (bool bHide=true) |
void | SetDispatcher (SfxDispatcher *pDisp) |
void | Update (sal_uInt16 nId) |
void | Update () |
SAL_DLLPRIVATE void | StartUpdate_Impl (bool bComplete=false) |
void | Invalidate (sal_uInt16 nId) |
void | Invalidate (const sal_uInt16 *pIds) |
void | InvalidateShell (const SfxShell &rSh, bool bDeep=false) |
void | InvalidateAll (bool bWithMsg) |
void | SetState (const SfxItemSet &rSet) |
void | SetState (const SfxPoolItem &rItem) |
void | Invalidate (sal_uInt16 nId, bool bWithItem, bool bWithMsg=false) |
bool | IsInUpdate () const |
void | SetVisibleState (sal_uInt16 nId, bool bShow) |
SfxStateCache * | GetStateCache (sal_uInt16 nId) |
SAL_DLLPRIVATE SfxStateCache * | GetAnyStateCache_Impl (sal_uInt16 nId) |
SfxItemState | QueryState (sal_uInt16 nSID, std::unique_ptr< SfxPoolItem > &rpState) |
template<class T > | |
SfxItemState | QueryState (TypedWhichId< T > nSID, std::unique_ptr< T > &rpState) |
void | QueryControlState (sal_uInt16 nSID, boost::property_tree::ptree &rState) |
sal_uInt16 | QuerySlotId (const css::util::URL &aURL) |
const SfxPoolItem * | ExecuteSynchron (sal_uInt16 nSlot, const SfxPoolItem **pArgs=nullptr) |
bool | Execute (sal_uInt16 nSlot, const SfxPoolItem **pArgs=nullptr, SfxCallMode nCall=SfxCallMode::SLOT) |
SAL_DLLPRIVATE void | SetDispatchProvider_Impl (const css::uno::Reference< css::frame::XDispatchProvider > &rFrame) |
void | SetActiveFrame (const css::uno::Reference< css::frame::XFrame > &rFrame) |
css::uno::Reference< css::frame::XFrame > | GetActiveFrame () const |
sal_uInt16 | EnterRegistrations (std::string_view pFile={}, int nLine=0) |
void | LeaveRegistrations (std::string_view pFile={}, int nLine=0) |
void | Register (SfxControllerItem &rBinding) |
void | Release (SfxControllerItem &rBinding) |
SfxDispatcher * | GetDispatcher () const |
const css::uno::Reference< css::frame::XDispatchRecorder > & | GetRecorder () const |
css::uno::Reference< css::frame::XDispatch > | GetDispatch (const SfxSlot *, const css::util::URL &aURL, bool bMasterCommand) |
SAL_DLLPRIVATE void | ContextChanged_Impl () |
SAL_DLLPRIVATE void | Execute_Impl (SfxRequest &rReq, const SfxSlot *pSlot, SfxShell *pShell) |
SAL_DLLPRIVATE void | DeleteControllers_Impl () |
SAL_DLLPRIVATE SfxDispatcher * | GetDispatcher_Impl () |
SAL_DLLPRIVATE void | ClearCache_Impl (sal_uInt16 nSlotId) |
SAL_DLLPRIVATE void | RegisterInternal_Impl (SfxControllerItem &rBinding) |
SAL_DLLPRIVATE void | Register_Impl (SfxControllerItem &rBinding, bool) |
SAL_DLLPRIVATE SfxWorkWindow * | GetWorkWindow_Impl () const |
SAL_DLLPRIVATE void | SetWorkWindow_Impl (std::unique_ptr< SfxWorkWindow >) |
SAL_DLLPRIVATE SfxBindings * | GetSubBindings_Impl () const |
SAL_DLLPRIVATE void | SetRecorder_Impl (css::uno::Reference< css::frame::XDispatchRecorder > const &) |
SAL_DLLPRIVATE void | InvalidateSlotsInMap_Impl () |
SAL_DLLPRIVATE void | AddSlotToInvalidateSlotsMap_Impl (sal_uInt16 nId) |
Public Member Functions inherited from SfxBroadcaster | |
SfxBroadcaster () | |
SfxBroadcaster (const SfxBroadcaster &rBC) | |
virtual | ~SfxBroadcaster () COVERITY_NOEXCEPT_FALSE |
void | Broadcast (const SfxHint &rHint) |
bool | HasListeners () const |
size_t | GetListenerCount () const |
void | ForAllListeners (std::function< bool(SfxListener *)> f) const |
Private Member Functions | |
SAL_DLLPRIVATE const SfxPoolItem * | Execute_Impl (sal_uInt16 nSlot, const SfxPoolItem **pArgs, sal_uInt16 nModi, SfxCallMode nCall, const SfxPoolItem **pInternalArgs, bool bGlobalOnly=false) |
SAL_DLLPRIVATE void | SetSubBindings_Impl (SfxBindings *) |
SAL_DLLPRIVATE void | UpdateSlotServer_Impl () |
SAL_DLLPRIVATE std::optional< SfxItemSet > | CreateSet_Impl (SfxStateCache &rCache, const SfxSlot *&pRealSlot, const SfxSlotServer **, SfxFoundCacheArr_Impl &) |
SAL_DLLPRIVATE std::size_t | GetSlotPos (sal_uInt16 nId, std::size_t nStartSearchAt=0) |
SAL_DLLPRIVATE void | Update_Impl (SfxStateCache &rCache) |
SAL_DLLPRIVATE SfxStateCache * | GetStateCache (sal_uInt16 nId, std::size_t *pPos) |
DECL_DLLPRIVATE_LINK (NextJob, Timer *, void) | |
SAL_DLLPRIVATE bool | NextJob_Impl (Timer const *pTimer) |
Static Private Member Functions | |
static SAL_DLLPRIVATE void | UpdateControllers_Impl (const SfxFoundCache_Impl &rFound, const SfxPoolItem *pItem, SfxItemState eItemState) |
Private Attributes | |
std::unique_ptr< SfxBindings_Impl > | pImpl |
SfxDispatcher * | pDispatcher |
sal_uInt16 | nRegLevel |
Friends | |
class | SfxApplication |
class | SfxShell |
class | SfxBindings_Impl |
Additional Inherited Members | |
Protected Member Functions inherited from SfxBroadcaster | |
void | Forward (SfxBroadcaster &rBC, const SfxHint &rHint) |
Definition at line 72 of file bindings.hxx.
SfxBindings::SfxBindings | ( | ) |
Definition at line 127 of file bindings.cxx.
|
overridevirtual |
Definition at line 153 of file bindings.cxx.
References DeleteControllers_Impl(), ENTERREGISTRATIONS, and pImpl.
void SfxBindings::AddSlotToInvalidateSlotsMap_Impl | ( | sal_uInt16 | nId | ) |
void SfxBindings::ClearCache_Impl | ( | sal_uInt16 | nSlotId | ) |
Definition at line 1484 of file bindings.cxx.
References SfxStateCache::ClearCache(), and GetStateCache().
Referenced by SfxControllerItem::ClearCache().
void SfxBindings::ContextChanged_Impl | ( | ) |
Definition at line 1744 of file bindings.cxx.
References InvalidateAll(), and pImpl.
|
private |
Definition at line 1093 of file bindings.cxx.
References DBG_ASSERT, SfxSlot::GetNextSlot(), SfxShell::GetPool(), SfxDispatcher::GetShell(), SfxSlotServer::GetShellLevel(), SfxSlotServer::GetSlot(), SfxSlot::GetSlotId(), SfxStateCache::GetSlotServer(), GetStateCache(), SfxSlot::GetStateFnc(), SfxSlot::GetWhich(), i, SfxStateCache::IsControllerDirty(), WhichRangesContainer::MergeRange(), pDispatcher, pImpl, SfxFoundCacheArr_Impl::push_back(), and SfxFoundCacheArr_Impl::size().
Referenced by Update_Impl().
void SfxBindings::DeleteControllers_Impl | ( | ) |
Definition at line 183 of file bindings.cxx.
References SfxStateCache::GetId(), SfxStateCache::GetInternalController(), SfxControllerItem::GetItemLink(), SfxStateCache::GetItemLink(), GetSlotPos(), nCount, pImpl, and SfxControllerItem::UnBind().
Referenced by ~SfxBindings().
sal_uInt16 SfxBindings::EnterRegistrations | ( | std::string_view | pFile = {} , |
int | nLine = 0 |
||
) |
Definition at line 1313 of file bindings.cxx.
References nRegLevel, pImpl, SAL_INFO, and SAL_STREAM.
bool SfxBindings::Execute | ( | sal_uInt16 | nSlot, |
const SfxPoolItem ** | pArgs = nullptr , |
||
SfxCallMode | nCall = SfxCallMode::SLOT |
||
) |
Definition at line 866 of file bindings.cxx.
References Execute_Impl(), nId, and pDispatcher.
Referenced by SfxViewShell::Escape().
|
private |
Definition at line 875 of file bindings.cxx.
References SfxRequest::AppendItem(), DBG_ASSERT, DeleteItemOnIdle(), SfxStateCache::Dispatch(), Execute_Impl(), SfxDispatcher::Flush(), SfxRequest::GetArgs(), SfxStateCache::GetDispatch(), GetDispatcher(), SfxDispatcher::GetFrame(), SfxViewFrame::GetObjectShell(), SfxShell::GetPool(), SfxRequest::GetReturnValue(), SfxDispatcher::GetShell(), SfxSlotServer::GetShellLevel(), SfxSlotServer::GetSlot(), SfxStateCache::GetSlotServer(), GetStateCache(), nId, pDispatcher, pImpl, SfxItemSet::Put(), SfxRequest::SetInternalArgs_Impl(), SfxRequest::SetModifier(), SYNCHRON, and UpdateSlotServer_Impl().
Referenced by SfxDispatchController_Impl::dispatch(), Execute(), Execute_Impl(), and ExecuteSynchron().
void SfxBindings::Execute_Impl | ( | SfxRequest & | rReq, |
const SfxSlot * | pSlot, | ||
SfxShell * | pShell | ||
) |
Definition at line 977 of file bindings.cxx.
References SfxRequest::AppendItem(), Attribute, SfxType::CreateItem(), DBG_ASSERT, SfxDispatcher::Execute_(), SfxItemSet::Get(), SfxRequest::GetCallMode(), SfxItemSet::GetItemState(), SfxSlot::GetKind(), SfxShell::GetPool(), SfxSlot::GetSlotId(), SfxSlot::GetStateFnc(), SfxSlot::GetType(), SfxSlot::GetWhich(), SfxSlot::IsMode(), SfxItemPool::IsWhich(), pDispatcher, RECORD, SfxRequest::SetSlot(), and TOGGLE.
const SfxPoolItem * SfxBindings::ExecuteSynchron | ( | sal_uInt16 | nSlot, |
const SfxPoolItem ** | pArgs = nullptr |
||
) |
Definition at line 858 of file bindings.cxx.
References Execute_Impl(), nId, pDispatcher, and SYNCHRON.
Referenced by SfxObjectShell::PrepareClose().
css::uno::Reference< css::frame::XFrame > SfxBindings::GetActiveFrame | ( | ) | const |
Definition at line 1712 of file bindings.cxx.
References SfxDispatcher::GetFrame(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), pDispatcher, pImpl, and xFrame.
Referenced by SfxDockingWindow::ReleaseChildWindow_Impl(), SfxDispatcher::Update_Impl(), SfxModelessDialogController::~SfxModelessDialogController(), and SfxPartChildWnd_Impl::~SfxPartChildWnd_Impl().
SfxStateCache * SfxBindings::GetAnyStateCache_Impl | ( | sal_uInt16 | nId | ) |
Definition at line 457 of file bindings.cxx.
References GetStateCache(), nId, and pImpl.
Referenced by SfxViewFrame::INetExecute_Impl().
uno::Reference< frame::XDispatch > SfxBindings::GetDispatch | ( | const SfxSlot * | , |
const css::util::URL & | aURL, | ||
bool | bMasterCommand | ||
) |
Definition at line 1752 of file bindings.cxx.
References aURL, DBG_ASSERT, SfxStateCache::GetInternalDispatch(), GetStateCache(), SfxSlot::nSlotId, pDispatcher, SfxStateCache::SetInternalDispatch(), and SfxOfficeDispatch::SetMasterUnoCommand().
Referenced by GetSlotDispatchWithFallback(), and SfxBaseController::queryDispatch().
|
inline |
Definition at line 172 of file bindings.hxx.
Referenced by DevelopmentToolDockingWindow::DevelopmentToolDockingWindow(), Execute_Impl(), sfx2::sidebar::SidebarDockingWindow::GetOrCreateSidebarController(), SfxDispatcher::HideUI(), SfxDispatcher::SetMenu_Impl(), SfxDockingWrapper::SfxDockingWrapper(), SfxPartDockWnd_Impl::SfxPartDockWnd_Impl(), SfxRecordingFloat_Impl::SfxRecordingFloat_Impl(), sfx2::sidebar::SidebarDockingWindow::SidebarDockingWindow(), StyleList::StyleList(), SfxInfoBarContainerChild::Update(), SfxDispatcher::Update_Impl(), and SfxRecordingFloatWrapper_Impl::~SfxRecordingFloatWrapper_Impl().
|
inline |
Definition at line 180 of file bindings.hxx.
Referenced by SfxDispatchController_Impl::addStatusListener(), SfxModelessDialogController::Close(), SfxDockingWindow::Close(), sfx2::SfxNotebookBar::CloseMethod(), SfxChildWindow::CreateChildWindow(), SfxDispatchController_Impl::dispatch(), StyleList::FamilySelect(), StyleList::FillTreeBox(), SfxControllerItem::GetCoreMetric(), SfxDispatchController_Impl::GetDispatcher(), SfxDockingWindow::Initialize_Impl(), SfxWorkWindow::InitializeChild_Impl(), SfxDispatcher::InvalidateBindings_Impl(), SfxCommonTemplateDialog_Impl::IsUpdate(), StyleList::Notify(), QueryState(), SfxRecordingFloatWrapper_Impl::SfxRecordingFloatWrapper_Impl(), sfx2::SfxNotebookBar::StateMethod(), StyleList::Update(), SfxDispatcher::Update_Impl(), SfxDispatcher::Update_Impl_(), StyleList::UpdateFamily(), StyleList::UpdateStyles(), and SfxDispatcher::~SfxDispatcher().
const css::uno::Reference< css::frame::XDispatchRecorder > & SfxBindings::GetRecorder | ( | ) | const |
Definition at line 1734 of file bindings.cxx.
References pImpl.
Referenced by SfxRecordingFloatWrapper_Impl::QueryClose(), and SfxRecordingFloatWrapper_Impl::~SfxRecordingFloatWrapper_Impl().
|
private |
Definition at line 708 of file bindings.cxx.
References DBG_ASSERT, nId, nPos, and pImpl.
Referenced by DeleteControllers_Impl(), GetStateCache(), Invalidate(), Register_Impl(), and Release().
SfxStateCache * SfxBindings::GetStateCache | ( | sal_uInt16 | nId | ) |
Definition at line 465 of file bindings.cxx.
References GetStateCache(), and nId.
|
private |
Definition at line 473 of file bindings.cxx.
References GetSlotPos(), nId, nPos, and pImpl.
Referenced by ClearCache_Impl(), CreateSet_Impl(), Execute_Impl(), GetAnyStateCache_Impl(), SfxControllerItem::GetCoreMetric(), GetDispatch(), GetStateCache(), Invalidate(), SfxShell::PutItem(), QueryControlState(), QueryState(), SetState(), SetVisibleState(), and Update().
SfxBindings * SfxBindings::GetSubBindings_Impl | ( | ) | const |
Definition at line 1673 of file bindings.cxx.
References pImpl.
Referenced by SfxDispatcher::~SfxDispatcher().
SfxWorkWindow * SfxBindings::GetWorkWindow_Impl | ( | ) | const |
Definition at line 1683 of file bindings.cxx.
References pImpl.
Referenced by SfxDockingWindow::CalcAlignment(), SfxModelessDialogController::ChildWinDispose(), SfxDockingWindow::Docking(), SfxDockingWindow::EndDocking(), IMPL_LINK_NOARG(), SfxDockingWindow::Initialize(), SfxDockingWindow::PrepareToggleFloatingMode(), SfxDockingWindow::SetItemSize_Impl(), SfxDockingWindow::StartDocking(), SfxFrameWindow_Impl::StateChanged(), and SfxDockingWindow::ToggleFloatingMode().
void SfxBindings::HidePopups | ( | bool | bHide = true | ) |
Definition at line 230 of file bindings.cxx.
References DBG_ASSERT, pDispatcher, and pImpl.
Referenced by SfxBaseModel::createViewController(), SfxViewFrame::Exec_Impl(), SfxViewShell::UIActivating(), and SfxViewShell::UIDeactivated().
void SfxBindings::Invalidate | ( | const sal_uInt16 * | pIds | ) |
Definition at line 533 of file bindings.cxx.
References AddSlotToInvalidateSlotsMap_Impl(), SfxStateCache::GetId(), GetSlotPos(), i, SfxStateCache::Invalidate(), n, nRegLevel, pDispatcher, pImpl, SfxGetpApp(), and TIMEOUT_FIRST.
void SfxBindings::Invalidate | ( | sal_uInt16 | nId | ) |
Definition at line 638 of file bindings.cxx.
References AddSlotToInvalidateSlotsMap_Impl(), GetSlotPos(), GetStateCache(), SfxStateCache::Invalidate(), nId, nRegLevel, pDispatcher, pImpl, SfxGetpApp(), and TIMEOUT_FIRST.
Referenced by SfxDispatcher::Call_Impl(), SfxClipboardChangeListener::ChangedContents(), SfxViewFrame::ChildWindowExecute(), SfxBaseController::ConnectSfxFrame_Impl(), SfxWorkWindow::CreateChildWin_Impl(), StyleList::CreateContextMenu(), SfxFrameWindow_Impl::EventNotify(), sfx2::SfxNotebookBar::ExecMethod(), StyleList::FamilySelect(), StyleList::Initialize(), SfxShell::Invalidate_Impl(), StyleList::InvalidateBindings(), InvalidateSlotsInMap_Impl(), sfx2::DocumentUndoManager_Impl::invalidateXDo_nolck(), SfxPrinterController::jobFinished(), SfxViewFrame::MiscExec_Impl(), SfxObjectShell::ModifyChanged(), SfxViewFrame::Notify(), SfxWorkWindow::RemoveChildWin_Impl(), SetState(), SfxShell::SetVerbs(), and SfxViewFrame::UpdateTitle().
void SfxBindings::Invalidate | ( | sal_uInt16 | nId, |
bool | bWithItem, | ||
bool | bWithMsg = false |
||
) |
Definition at line 672 of file bindings.cxx.
References SfxStateCache::ClearCache(), DBG_ASSERT, GetSlotPos(), GetStateCache(), SfxStateCache::Invalidate(), nId, nRegLevel, pDispatcher, pImpl, SfxGetpApp(), and TIMEOUT_FIRST.
void SfxBindings::InvalidateAll | ( | bool | bWithMsg | ) |
Definition at line 497 of file bindings.cxx.
References DBG_ASSERT, nRegLevel, pDispatcher, pImpl, SfxGetpApp(), and TIMEOUT_FIRST.
Referenced by ContextChanged_Impl(), DispatcherUpdate_Impl(), SfxViewFrame::ExecHistory_Impl(), SfxDispatcher::InvalidateBindings_Impl(), SfxDispatcher::Lock(), SfxViewFrame::Notify(), SfxApplication::OfaExec_Impl(), SetDispatcher(), SetDispatchProvider_Impl(), SfxDispatcher::SetQuietMode_Impl(), SfxDispatcher::SetSlotFilter(), and SfxViewShell::UIDeactivated().
void SfxBindings::InvalidateShell | ( | const SfxShell & | rSh, |
bool | bDeep = false |
||
) |
Definition at line 584 of file bindings.cxx.
References DBG_ASSERT, SfxDispatcher::Flush(), SfxSlotServer::GetShellLevel(), SfxDispatcher::GetShellLevel(), nRegLevel, pDispatcher, pImpl, SfxGetpApp(), and TIMEOUT_FIRST.
Referenced by SfxShell::Invalidate_Impl().
void SfxBindings::InvalidateSlotsInMap_Impl | ( | ) |
Definition at line 286 of file bindings.cxx.
References Invalidate(), and pImpl.
Referenced by Update().
bool SfxBindings::IsInUpdate | ( | ) | const |
Definition at line 1688 of file bindings.cxx.
References pImpl.
void SfxBindings::LeaveRegistrations | ( | std::string_view | pFile = {} , |
int | nLine = 0 |
||
) |
Definition at line 1354 of file bindings.cxx.
References DBG_ASSERT, SfxDispatcher::GetFrame(), SfxStateCache::GetInternalController(), SfxStateCache::GetItemLink(), SfxViewFrame::GetObjectShell(), nRegLevel, pDispatcher, pImpl, SAL_INFO, SAL_STREAM, SfxGetpApp(), and TIMEOUT_FIRST.
|
private |
Definition at line 1223 of file bindings.cxx.
References SfxObjectShell::AcceptStateUpdate(), SfxBroadcaster::Broadcast(), DBG_ASSERT, SfxDispatcher::GetFrame(), Application::GetLastInputInterval(), SfxViewFrame::GetObjectShell(), SfxStateCache::IsControllerDirty(), SfxApplication::IsDowning(), SfxDispatcher::IsFlushed(), nCount, pDispatcher, pImpl, SfxGetpApp(), TIMEOUT_UPDATING, SfxDispatcher::Update_Impl(), Update_Impl(), and UpdateSlotServer_Impl().
Referenced by StartUpdate_Impl(), and Update().
void SfxBindings::QueryControlState | ( | sal_uInt16 | nSID, |
boost::property_tree::ptree & | rState | ||
) |
Definition at line 1614 of file bindings.cxx.
References SfxDispatcher::Flush(), SfxStateCache::GetItemLink(), SfxStateCache::GetState(), GetStateCache(), pDispatcher, pImpl, SfxGetpApp(), and UpdateSlotServer_Impl().
Referenced by InterceptLOKStateChangeEvent().
sal_uInt16 SfxBindings::QuerySlotId | ( | const css::util::URL & | aURL | ) |
Definition at line 1641 of file bindings.cxx.
References aURL, SfxOfficeDispatch::GetId(), pImpl, and xDispatch.
SfxItemState SfxBindings::QueryState | ( | sal_uInt16 | nSID, |
std::unique_ptr< SfxPoolItem > & | rpState | ||
) |
rpState | the caller has to delete the pointer |
Definition at line 1507 of file bindings.cxx.
References aURL, SfxPoolItem::Clone(), DBG_ASSERT, SfxStateCache::GetDispatch(), GetDispatcher_Impl(), SfxDispatcher::GetFrame(), SfxSlotPool::GetSlot(), SfxSlotPool::GetSlotPool(), SfxStateCache::GetSlotServer(), GetStateCache(), SfxSlot::GetUnoName(), pDispatcher, pImpl, SfxSlot::pUnoName, and SfxDispatcher::QueryState().
|
inline |
Definition at line 146 of file bindings.hxx.
void SfxBindings::Register | ( | SfxControllerItem & | rBinding | ) |
Definition at line 775 of file bindings.cxx.
References Register_Impl().
Referenced by SfxControllerItem::Bind(), and SfxControllerItem::ReBind().
void SfxBindings::Register_Impl | ( | SfxControllerItem & | rBinding, |
bool | bInternal | ||
) |
Definition at line 780 of file bindings.cxx.
References SfxControllerItem::ChangeItemLink(), DBG_ASSERT, SfxControllerItem::GetId(), GetSlotPos(), nId, nPos, and pImpl.
Referenced by Register(), and RegisterInternal_Impl().
void SfxBindings::RegisterInternal_Impl | ( | SfxControllerItem & | rBinding | ) |
Definition at line 769 of file bindings.cxx.
References Register_Impl().
Referenced by SfxControllerItem::BindInternal_Impl().
void SfxBindings::Release | ( | SfxControllerItem & | rBinding | ) |
Definition at line 814 of file bindings.cxx.
References SfxStateCache::ChangeItemLink(), SfxControllerItem::ChangeItemLink(), DBG_ASSERT, ENTERREGISTRATIONS, SfxControllerItem::GetId(), SfxStateCache::GetId(), SfxStateCache::GetInternalController(), SfxControllerItem::GetItemLink(), SfxStateCache::GetItemLink(), GetSlotPos(), LEAVEREGISTRATIONS, nId, nPos, pImpl, and SfxStateCache::ReleaseInternalController().
Referenced by SfxControllerItem::Bind(), SfxControllerItem::BindInternal_Impl(), and SfxControllerItem::UnBind().
void SfxBindings::SetActiveFrame | ( | const css::uno::Reference< css::frame::XFrame > & | rFrame | ) |
Definition at line 1703 of file bindings.cxx.
References SfxDispatcher::GetFrame(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), pDispatcher, and SetDispatchProvider_Impl().
Referenced by SfxModelessDialogController::Activate(), SfxModelessDialogController::Deactivate(), SfxDispatcher::DoActivate_Impl(), SfxDockingWindow::EventNotify(), SfxViewFrame::MakeActive_Impl(), SfxDockingWindow::ReleaseChildWindow_Impl(), SfxModelessDialogController::~SfxModelessDialogController(), and SfxPartChildWnd_Impl::~SfxPartChildWnd_Impl().
void SfxBindings::SetDispatcher | ( | SfxDispatcher * | pDisp | ) |
Definition at line 1420 of file bindings.cxx.
References SfxBroadcaster::Broadcast(), ENTERREGISTRATIONS, SfxDispatcher::GetBindings(), SfxDispatcher::GetFrame(), SfxViewFrame::GetFrame(), SfxFrame::GetFrameInterface(), InvalidateAll(), LEAVEREGISTRATIONS, pDispatcher, pImpl, SetDispatchProvider_Impl(), and SetSubBindings_Impl().
Referenced by SfxViewFrame::Construct_Impl(), SfxDispatcher::DoActivate_Impl(), SfxViewFrame::MakeActive_Impl(), and SfxDispatcher::~SfxDispatcher().
void SfxBindings::SetDispatchProvider_Impl | ( | const css::uno::Reference< css::frame::XDispatchProvider > & | rFrame | ) |
Definition at line 1721 of file bindings.cxx.
References InvalidateAll(), and pImpl.
Referenced by SetActiveFrame(), and SetDispatcher().
void SfxBindings::SetRecorder_Impl | ( | css::uno::Reference< css::frame::XDispatchRecorder > const & | rRecorder | ) |
Definition at line 1739 of file bindings.cxx.
References pImpl.
Referenced by SfxViewFrame::MiscExec_Impl(), and SfxFrame::SetFrameInterface_Impl().
void SfxBindings::SetState | ( | const SfxItemSet & | rSet | ) |
Bug: Use WhichIter and possibly send VoidItems up
Not implemented: Updates from EnumSlots via master slots
Definition at line 382 of file bindings.cxx.
References SfxItemIter::GetCurItem(), SfxItemSet::GetPool(), SfxItemPool::GetSlotId(), GetStateCache(), SfxStateCache::Invalidate(), Invalidate(), SfxStateCache::IsControllerDirty(), SfxItemIter::NextItem(), nRegLevel, pImpl, rSet, SfxStateCache::SetState(), and UpdateSlotServer_Impl().
void SfxBindings::SetState | ( | const SfxPoolItem & | rItem | ) |
Not implemented: Updates from EnumSlots via master slots
Definition at line 425 of file bindings.cxx.
References DBG_ASSERT, GetStateCache(), SfxStateCache::Invalidate(), Invalidate(), SfxStateCache::IsControllerDirty(), SfxItemPool::IsSlot(), nRegLevel, pImpl, SfxStateCache::SetState(), UpdateSlotServer_Impl(), and SfxPoolItem::Which().
|
private |
void SfxBindings::SetVisibleState | ( | sal_uInt16 | nId, |
bool | bShow | ||
) |
Definition at line 1696 of file bindings.cxx.
References GetStateCache(), nId, and SfxStateCache::SetVisibleState().
void SfxBindings::SetWorkWindow_Impl | ( | std::unique_ptr< SfxWorkWindow > | xWork | ) |
Definition at line 1678 of file bindings.cxx.
References pImpl.
Referenced by SfxWorkWindow::SfxWorkWindow().
void SfxBindings::StartUpdate_Impl | ( | bool | bComplete = false | ) |
Definition at line 1493 of file bindings.cxx.
References NextJob_Impl(), and pImpl.
Referenced by IMPL_LINK_NOARG().
void SfxBindings::Update | ( | ) |
Definition at line 361 of file bindings.cxx.
References SfxDispatcher::Flush(), InvalidateSlotsInMap_Impl(), NextJob_Impl(), nRegLevel, pDispatcher, pImpl, and SfxDispatcher::Update_Impl().
void SfxBindings::Update | ( | sal_uInt16 | nId | ) |
Definition at line 301 of file bindings.cxx.
References SfxDispatcher::Flush(), SfxStateCache::GetDispatch(), SfxStateCache::GetInternalController(), SfxStateCache::GetItemLink(), SfxStateCache::GetSlotServer(), GetStateCache(), InvalidateSlotsInMap_Impl(), SfxStateCache::IsControllerDirty(), nId, pDispatcher, pImpl, SfxStateCache::SetCachedState(), SfxStateCache::SetState(), Update_Impl(), and UpdateSlotServer_Impl().
Referenced by SfxDispatcher::Call_Impl(), StyleList::CreateContextMenu(), sfx2::SfxNotebookBar::ExecMethod(), StyleList::FamilySelect(), StyleList::Initialize(), and StyleList::InvalidateBindings().
|
private |
Definition at line 238 of file bindings.cxx.
References CreateSet_Impl(), SfxDispatcher::FillState_(), SfxStateCache::GetDispatch(), SfxStateCache::GetInternalController(), SfxStateCache::GetItemLink(), SfxItemPool::IsWhich(), nPos, SfxFoundCache_Impl::nWhichId, pDispatcher, SfxStateCache::SetCachedState(), SfxFoundCacheArr_Impl::size(), and UpdateControllers_Impl().
Referenced by NextJob_Impl(), and Update().
|
staticprivate |
Definition at line 1185 of file bindings.cxx.
References DBG_ASSERT, SfxStateCache::GetId(), SfxSlot::GetSlotId(), INVALID_POOL_ITEM, SfxStateCache::IsControllerDirty(), SfxItemPool::IsSlot(), SfxFoundCache_Impl::nWhichId, SfxFoundCache_Impl::pSlot, SfxFoundCache_Impl::rCache, and SfxStateCache::SetState().
Referenced by Update_Impl().
|
private |
Definition at line 1067 of file bindings.cxx.
References SfxBroadcaster::Broadcast(), SfxDispatcher::Flush(), i, nRegLevel, pDispatcher, and pImpl.
Referenced by Execute_Impl(), NextJob_Impl(), QueryControlState(), SetState(), and Update().
|
friend |
Definition at line 93 of file bindings.hxx.
|
friend |
Definition at line 95 of file bindings.hxx.
|
friend |
Definition at line 94 of file bindings.hxx.
|
private |
Definition at line 99 of file bindings.hxx.
Referenced by EnterRegistrations(), Invalidate(), InvalidateAll(), InvalidateShell(), LeaveRegistrations(), SetState(), SfxBindings(), Update(), and UpdateSlotServer_Impl().
|
private |
Definition at line 98 of file bindings.hxx.
Referenced by CreateSet_Impl(), Execute(), Execute_Impl(), ExecuteSynchron(), GetActiveFrame(), GetDispatch(), HidePopups(), Invalidate(), InvalidateAll(), InvalidateShell(), LeaveRegistrations(), NextJob_Impl(), QueryControlState(), QueryState(), SetActiveFrame(), SetDispatcher(), Update(), Update_Impl(), and UpdateSlotServer_Impl().
|
private |
Definition at line 97 of file bindings.hxx.
Referenced by AddSlotToInvalidateSlotsMap_Impl(), ContextChanged_Impl(), CreateSet_Impl(), DeleteControllers_Impl(), EnterRegistrations(), Execute_Impl(), GetActiveFrame(), GetAnyStateCache_Impl(), GetRecorder(), GetSlotPos(), GetStateCache(), GetSubBindings_Impl(), GetWorkWindow_Impl(), HidePopups(), Invalidate(), InvalidateAll(), InvalidateShell(), InvalidateSlotsInMap_Impl(), IsInUpdate(), LeaveRegistrations(), NextJob_Impl(), QueryControlState(), QuerySlotId(), QueryState(), Register_Impl(), Release(), SetDispatcher(), SetDispatchProvider_Impl(), SetRecorder_Impl(), SetState(), SetSubBindings_Impl(), SetWorkWindow_Impl(), SfxBindings(), StartUpdate_Impl(), Update(), UpdateSlotServer_Impl(), and ~SfxBindings().