15#include <com/sun/star/uno/XComponentContext.hpp>
16#include <com/sun/star/frame/XFrame.hpp>
17#include <com/sun/star/container/XIndexAccess.hpp>
18#include <com/sun/star/i18n/XCharacterClassification.hpp>
19#include <com/sun/star/util/XURLTransformer.hpp>
22#include <unordered_set>
49 css::uno::Reference<css::uno::XComponentContext>
m_xContext;
50 css::uno::Reference<css::frame::XFrame>
m_xFrame;
56 OUString
toLower(OUString
const& rString);
62 void gatherMenuContent(css::uno::Reference<css::container::XIndexAccess>
const& xIndexAccess,
65 void findInMenu(OUString
const& rText, std::unique_ptr<weld::TreeView>& rpCommandTreeView,
66 std::vector<CurrentEntry>& rCommandList);
70 MenuContent const& rMenuContent, OUString
const& rText,
71 std::unique_ptr<weld::TreeView>& rpCommandTreeView, std::vector<CurrentEntry>& rCommandList,
72 std::function<
bool(
MenuContent const&, OUString
const&)>
const& rSearchCriterium);
75 const std::unique_ptr<weld::TreeView>& rpCommandTreeView,
76 std::vector<CurrentEntry>& rCommandList);
std::unique_ptr< weld::Entry > mpEntry
void connect_closed(const Link< weld::Popover &, void > &rLink)
void dispatchCommandAndClose(OUString const &rCommand)
std::unique_ptr< MenuContentHandler > mpMenuContentHandler
std::unique_ptr< weld::Builder > mxBuilder
std::unique_ptr< weld::Popover > mxPopover
DECL_LINK(TreeViewKeyPress, const KeyEvent &, bool)
std::vector< CurrentEntry > maCommandList
CommandListBox(weld::Window *pParent, css::uno::Reference< css::frame::XFrame > const &xFrame)
DECL_LINK(RowActivated, weld::TreeView &, bool)
std::unique_ptr< weld::TreeView > mpCommandTreeView
DECL_LINK(QueryTooltip, const weld::TreeIter &, OUString)
DECL_LINK(ModifyHdl, weld::Entry &, void)
DECL_LINK(PopupModeEnd, weld::Popover &, void)
void showPopup(weld::Window *pParent, css::uno::Reference< css::frame::XFrame > const &xFrame)
std::unique_ptr< CommandListBox > mpListBox
void findInMenu(OUString const &rText, std::unique_ptr< weld::TreeView > &rpCommandTreeView, std::vector< CurrentEntry > &rCommandList)
MenuContent m_aMenuContent
css::uno::Reference< css::frame::XFrame > m_xFrame
void addCommandIfPossible(MenuContent const &rMenuContent, const std::unique_ptr< weld::TreeView > &rpCommandTreeView, std::vector< CurrentEntry > &rCommandList)
std::unordered_set< OUString > m_aAdded
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)
css::uno::Reference< css::util::XURLTransformer > m_xURLTransformer
void gatherMenuContent(css::uno::Reference< css::container::XIndexAccess > const &xIndexAccess, MenuContent &rMenuContent)
css::uno::Reference< css::uno::XComponentContext > m_xContext
OUString toLower(OUString const &rString)
MenuContentHandler(css::uno::Reference< css::frame::XFrame > const &xFrame)
css::uno::Reference< css::i18n::XCharacterClassification > m_xCharacterClassification
OUString m_sModuleLongName
CurrentEntry(OUString aCommandURL, OUString aTooltip)