LibreOffice Module sfx2 (master) 1
|
#include <msgpool.hxx>
Public Member Functions | |
SfxSlotPool (SfxSlotPool *pParent=nullptr) | |
~SfxSlotPool () | |
void | RegisterInterface (SfxInterface &rFace) |
sal_uInt16 | GetGroupCount () const |
OUString | SeekGroup (sal_uInt16 nNo) |
const SfxSlot * | FirstSlot () |
const SfxSlot * | NextSlot () |
const SfxSlot * | GetSlot (sal_uInt16 nId) const |
const SfxSlot * | GetUnoSlot (const OUString &rUnoName) const |
const std::type_info * | GetSlotType (sal_uInt16 nSlotId) const |
Static Public Member Functions | |
static SfxSlotPool & | GetSlotPool (SfxViewFrame *pFrame=nullptr) |
Private Member Functions | |
const SfxSlot * | SeekSlot (sal_uInt16 nObject) |
Private Attributes | |
std::vector< SfxGroupId > | _vGroups |
SfxSlotPool * | _pParentPool |
std::vector< SfxInterface * > | _vInterfaces |
sal_uInt16 | _nCurGroup |
sal_uInt16 | _nCurInterface |
sal_uInt16 | _nCurMsg |
Definition at line 33 of file msgpool.hxx.
SfxSlotPool::SfxSlotPool | ( | SfxSlotPool * | pParent = nullptr | ) |
Definition at line 34 of file msgpool.cxx.
SfxSlotPool::~SfxSlotPool | ( | ) |
Definition at line 42 of file msgpool.cxx.
References _pParentPool, and _vInterfaces.
|
inline |
Definition at line 65 of file msgpool.hxx.
References SeekSlot().
Referenced by SfxBaseController::getConfigurableDispatchInformation(), and SfxBaseController::getSupportedCommandGroups().
sal_uInt16 SfxSlotPool::GetGroupCount | ( | ) | const |
Definition at line 210 of file msgpool.cxx.
References _vGroups.
Referenced by SfxBaseController::getConfigurableDispatchInformation(), and SfxBaseController::getSupportedCommandGroups().
const SfxSlot * SfxSlotPool::GetSlot | ( | sal_uInt16 | nId | ) | const |
Definition at line 155 of file msgpool.cxx.
References _pParentPool, _vInterfaces, GetSlot(), and nId.
Referenced by ConvertSlotsToCommands(), SfxObjectShell::ExecFile_Impl(), GetSlot(), SfxStateCache::GetSlotServer(), GetSlotType(), SfxBaseController::queryDispatch(), SfxBindings::QueryState(), SfxStatusListener::statusChanged(), and SfxDispatcher::Update_Impl_().
|
static |
Definition at line 316 of file msgpool.cxx.
References SfxApplication::Get_Impl(), SfxModule::GetActiveModule(), SfxModule::GetSlotPool(), SfxAppData_Impl::pSlotPool, and SfxGetpApp().
Referenced by MenuContentHandler::addCommandIfPossible(), SfxStatusBarControl::CreateControl(), SfxToolBoxControl::CreateControl(), SfxBaseController::getConfigurableDispatchInformation(), GetSlotDispatchWithFallback(), SfxStateCache::GetSlotServer(), SfxBaseController::getSupportedCommandGroups(), SfxBaseController::queryDispatch(), SfxBindings::QueryState(), SfxStatusBarControllerFactory(), SfxToolBoxControllerFactory(), SfxStatusListener::statusChanged(), SfxStatusBarControl::statusChanged(), SfxToolBoxControl::statusChanged(), and SfxDispatcher::Update_Impl_().
const std::type_info * SfxSlotPool::GetSlotType | ( | sal_uInt16 | nSlotId | ) | const |
Definition at line 146 of file msgpool.cxx.
References GetSlot(), SfxSlot::GetType(), nId, and SfxType::Type().
Referenced by SfxStatusBarControl::CreateControl(), and SfxToolBoxControl::CreateControl().
const SfxSlot * SfxSlotPool::GetUnoSlot | ( | const OUString & | rUnoName | ) | const |
Definition at line 300 of file msgpool.cxx.
References _pParentPool, _vInterfaces, and GetUnoSlot().
Referenced by MenuContentHandler::addCommandIfPossible(), GetSlotDispatchWithFallback(), GetUnoSlot(), SfxBaseController::queryDispatch(), SfxStatusBarControllerFactory(), SfxToolBoxControllerFactory(), SfxStatusBarControl::statusChanged(), and SfxToolBoxControl::statusChanged().
const SfxSlot * SfxSlotPool::NextSlot | ( | ) |
Definition at line 259 of file msgpool.cxx.
References _nCurGroup, _nCurInterface, _nCurMsg, _pParentPool, _vGroups, _vInterfaces, Count, SfxSlot::GetGroupId(), NextSlot(), SfxInterface::pSlots, SAL_WARN_IF, and SeekSlot().
Referenced by SfxBaseController::getConfigurableDispatchInformation(), SfxBaseController::getSupportedCommandGroups(), and NextSlot().
void SfxSlotPool::RegisterInterface | ( | SfxInterface & | rFace | ) |
Definition at line 114 of file msgpool.cxx.
References _pParentPool, _vGroups, _vInterfaces, SfxInterface::Count(), SfxSlot::GetGroupId(), Intern, NONE, SfxSlot::nSlotId, and SfxInterface::pSlots.
Referenced by SfxInterface::Register().
OUString SfxSlotPool::SeekGroup | ( | sal_uInt16 | nNo | ) |
Definition at line 172 of file msgpool.cxx.
References _nCurGroup, _pParentPool, _vGroups, i, and SfxResId().
Referenced by SfxBaseController::getConfigurableDispatchInformation(), and SfxBaseController::getSupportedCommandGroups().
|
private |
Definition at line 218 of file msgpool.cxx.
References _nCurGroup, _nCurInterface, _nCurMsg, _pParentPool, _vGroups, _vInterfaces, SfxInterface::Count(), SfxSlot::GetGroupId(), nCount, SfxInterface::pSlots, SAL_WARN_IF, and SeekSlot().
Referenced by FirstSlot(), NextSlot(), and SeekSlot().
|
private |
Definition at line 38 of file msgpool.hxx.
Referenced by NextSlot(), SeekGroup(), and SeekSlot().
|
private |
Definition at line 39 of file msgpool.hxx.
Referenced by NextSlot(), and SeekSlot().
|
private |
Definition at line 40 of file msgpool.hxx.
Referenced by NextSlot(), and SeekSlot().
|
private |
Definition at line 36 of file msgpool.hxx.
Referenced by GetSlot(), GetUnoSlot(), NextSlot(), RegisterInterface(), SeekGroup(), SeekSlot(), and ~SfxSlotPool().
|
private |
Definition at line 35 of file msgpool.hxx.
Referenced by GetGroupCount(), NextSlot(), RegisterInterface(), SeekGroup(), and SeekSlot().
|
private |
Definition at line 37 of file msgpool.hxx.
Referenced by GetSlot(), GetUnoSlot(), NextSlot(), RegisterInterface(), SeekSlot(), and ~SfxSlotPool().