LibreOffice Module sfx2 (master) 1
|
#include <CommandPopup.hxx>
Public Member Functions | |
MenuContentHandler (css::uno::Reference< css::frame::XFrame > const &xFrame) | |
void | gatherMenuContent (css::uno::Reference< css::container::XIndexAccess > const &xIndexAccess, MenuContent &rMenuContent) |
void | findInMenu (OUString const &rText, std::unique_ptr< weld::TreeView > &rpCommandTreeView, std::vector< CurrentEntry > &rCommandList) |
Private Member Functions | |
OUString | toLower (OUString const &rString) |
void | findInMenuRecursive (MenuContent const &rMenuContent, OUString const &rText, std::unique_ptr< weld::TreeView > &rpCommandTreeView, std::vector< CurrentEntry > &rCommandList, std::function< bool(MenuContent const &, OUString const &)> const &rSearchCriterium) |
void | addCommandIfPossible (MenuContent const &rMenuContent, const std::unique_ptr< weld::TreeView > &rpCommandTreeView, std::vector< CurrentEntry > &rCommandList) |
Private Attributes | |
css::uno::Reference< css::uno::XComponentContext > | m_xContext |
css::uno::Reference< css::frame::XFrame > | m_xFrame |
css::uno::Reference< css::i18n::XCharacterClassification > | m_xCharacterClassification |
css::uno::Reference< css::util::XURLTransformer > | m_xURLTransformer |
MenuContent | m_aMenuContent |
OUString | m_sModuleLongName |
std::unordered_set< OUString > | m_aAdded |
Definition at line 46 of file CommandPopup.hxx.
MenuContentHandler::MenuContentHandler | ( | css::uno::Reference< css::frame::XFrame > const & | xFrame | ) |
Definition at line 32 of file CommandPopup.cxx.
References create(), gatherMenuContent(), GetModuleIdentifier(), getProcessComponentContext(), m_aMenuContent, m_sModuleLongName, m_xContext, m_xContext, m_xFrame, and xFrame.
|
private |
Definition at line 140 of file CommandPopup.cxx.
References SfxViewFrame::Current(), SfxSlot::GetSlotId(), SfxSlotPool::GetSlotPool(), SfxSlotPool::GetUnoSlot(), vcl::CommandInfoProvider::GetXGraphicForCommand(), m_aAdded, MenuContent::m_aCommandURL, MenuContent::m_aFullLabelWithPath, MenuContent::m_aTooltip, m_xFrame, and m_xURLTransformer.
Referenced by findInMenuRecursive().
void MenuContentHandler::findInMenu | ( | OUString const & | rText, |
std::unique_ptr< weld::TreeView > & | rpCommandTreeView, | ||
std::vector< CurrentEntry > & | rCommandList | ||
) |
Definition at line 102 of file CommandPopup.cxx.
References findInMenuRecursive(), m_aAdded, m_aMenuContent, MenuContent::m_aSearchableMenuLabel, and toLower().
|
private |
Definition at line 125 of file CommandPopup.cxx.
References addCommandIfPossible(), findInMenuRecursive(), and MenuContent::m_aSubMenuContent.
Referenced by findInMenu(), and findInMenuRecursive().
void MenuContentHandler::gatherMenuContent | ( | css::uno::Reference< css::container::XIndexAccess > const & | xIndexAccess, |
MenuContent & | rMenuContent | ||
) |
Definition at line 51 of file CommandPopup.cxx.
References aLabel, aProperties, bIsEnabled, gatherMenuContent(), vcl::CommandInfoProvider::GetCommandProperties(), vcl::CommandInfoProvider::GetLabelForCommand(), vcl::CommandInfoProvider::GetTooltipForCommand(), MenuContent::m_aCommandURL, MenuContent::m_aFullLabelWithPath, MenuContent::m_aMenuLabel, MenuContent::m_aSearchableMenuLabel, MenuContent::m_aSubMenuContent, MenuContent::m_aTooltip, m_sModuleLongName, m_xFrame, n, and toLower().
Referenced by gatherMenuContent(), and MenuContentHandler().
|
private |
Definition at line 178 of file CommandPopup.cxx.
References LanguageTag::getLocale(), Application::GetSettings(), AllSettings::GetUILanguageTag(), and m_xCharacterClassification.
Referenced by findInMenu(), and gatherMenuContent().
|
private |
Definition at line 57 of file CommandPopup.hxx.
Referenced by addCommandIfPossible(), and findInMenu().
|
private |
Definition at line 54 of file CommandPopup.hxx.
Referenced by findInMenu(), and MenuContentHandler().
|
private |
Definition at line 55 of file CommandPopup.hxx.
Referenced by gatherMenuContent(), and MenuContentHandler().
|
private |
Definition at line 51 of file CommandPopup.hxx.
Referenced by toLower().
|
private |
Definition at line 49 of file CommandPopup.hxx.
Referenced by MenuContentHandler().
|
private |
Definition at line 50 of file CommandPopup.hxx.
Referenced by addCommandIfPossible(), and gatherMenuContent().
|
private |
Definition at line 52 of file CommandPopup.hxx.
Referenced by addCommandIfPossible().