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

#include <CommandPopup.hxx>

Collaboration diagram for MenuContentHandler:
[legend]

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
 

Detailed Description

Definition at line 46 of file CommandPopup.hxx.

Constructor & Destructor Documentation

◆ MenuContentHandler()

MenuContentHandler::MenuContentHandler ( css::uno::Reference< css::frame::XFrame > const &  xFrame)

Member Function Documentation

◆ addCommandIfPossible()

void MenuContentHandler::addCommandIfPossible ( MenuContent const &  rMenuContent,
const std::unique_ptr< weld::TreeView > &  rpCommandTreeView,
std::vector< CurrentEntry > &  rCommandList 
)
private

◆ findInMenu()

void MenuContentHandler::findInMenu ( OUString const &  rText,
std::unique_ptr< weld::TreeView > &  rpCommandTreeView,
std::vector< CurrentEntry > &  rCommandList 
)

◆ findInMenuRecursive()

void MenuContentHandler::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 
)
private

◆ gatherMenuContent()

void MenuContentHandler::gatherMenuContent ( css::uno::Reference< css::container::XIndexAccess > const &  xIndexAccess,
MenuContent rMenuContent 
)

◆ toLower()

OUString MenuContentHandler::toLower ( OUString const &  rString)
private

Member Data Documentation

◆ m_aAdded

std::unordered_set<OUString> MenuContentHandler::m_aAdded
private

Definition at line 57 of file CommandPopup.hxx.

Referenced by addCommandIfPossible(), and findInMenu().

◆ m_aMenuContent

MenuContent MenuContentHandler::m_aMenuContent
private

Definition at line 54 of file CommandPopup.hxx.

Referenced by findInMenu(), and MenuContentHandler().

◆ m_sModuleLongName

OUString MenuContentHandler::m_sModuleLongName
private

Definition at line 55 of file CommandPopup.hxx.

Referenced by gatherMenuContent(), and MenuContentHandler().

◆ m_xCharacterClassification

css::uno::Reference<css::i18n::XCharacterClassification> MenuContentHandler::m_xCharacterClassification
private

Definition at line 51 of file CommandPopup.hxx.

Referenced by toLower().

◆ m_xContext

css::uno::Reference<css::uno::XComponentContext> MenuContentHandler::m_xContext
private

Definition at line 49 of file CommandPopup.hxx.

Referenced by MenuContentHandler().

◆ m_xFrame

css::uno::Reference<css::frame::XFrame> MenuContentHandler::m_xFrame
private

Definition at line 50 of file CommandPopup.hxx.

Referenced by addCommandIfPossible(), and gatherMenuContent().

◆ m_xURLTransformer

css::uno::Reference<css::util::XURLTransformer> MenuContentHandler::m_xURLTransformer
private

Definition at line 52 of file CommandPopup.hxx.

Referenced by addCommandIfPossible().


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