diff options
author | Rafael Lima <rafael.palma.lima@gmail.com> | 2023-07-25 22:42:49 +0200 |
---|---|---|
committer | Rafael Lima <rafael.palma.lima@gmail.com> | 2023-09-15 13:25:49 +0200 |
commit | b5a8cdbd71a61c76f2b1a6ad33b0757911603184 (patch) | |
tree | 1728d74c97352a684149a65aedad86682c6b6ab4 /sc/source/ui/inc/dwfunctr.hxx | |
parent | 2876b31eee9b2946dfaa74b17645c6812c7a20db (diff) |
tdf#122718 Add search functionality to the Functions sidebar
With this patch it is possible to search the list of functions in the Functions sidebar.
To use this feature:
1) In Calc, go to View - Function List
2) The Functions sidebar will open with the "Search" entry focused
3) You can now type your search
4) With the "Search" entry focused, it is possible to use the arrow keys (up/down) to select the function to insert
5) Press "Enter" to insert the function
The Escape key will clear the search box and F1 will open the help page of the selected function.
Change-Id: I1af6c1c2489ff736c44e1b3750bea21c05786602
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154917
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Tested-by: Jenkins
Reviewed-by: Rafael Lima <rafael.palma.lima@gmail.com>
Diffstat (limited to 'sc/source/ui/inc/dwfunctr.hxx')
-rw-r--r-- | sc/source/ui/inc/dwfunctr.hxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sc/source/ui/inc/dwfunctr.hxx b/sc/source/ui/inc/dwfunctr.hxx index b6d0d032a857..faf68ecd4198 100644 --- a/sc/source/ui/inc/dwfunctr.hxx +++ b/sc/source/ui/inc/dwfunctr.hxx @@ -47,12 +47,14 @@ private: std::unique_ptr<weld::TreeView> xFuncList; std::unique_ptr<weld::Button> xInsertButton; std::unique_ptr<weld::TextView> xFiFuncDesc; + std::unique_ptr<weld::Entry> m_xSearchString; rtl::Reference<comphelper::ConfigurationListener> xConfigListener; std::unique_ptr<EnglishFunctionNameChange> xConfigChange; const ScFuncDesc* pFuncDesc; sal_uInt16 nArgs; - OUString m_aHelpId; + OUString m_aListHelpId; + OUString m_aSearchHelpId; ::std::vector< const formula::IFunctionDescription*> aLRUList; @@ -64,6 +66,8 @@ private: DECL_LINK( SetSelectionClickHdl, weld::Button&, void ); DECL_LINK( SelComboHdl, weld::ComboBox&, void ); DECL_LINK( SelTreeHdl, weld::TreeView&, void ); + DECL_LINK( ModifyHdl, weld::Entry&, void ); + DECL_LINK( KeyInputHdl, const KeyEvent&, bool); public: ScFunctionWin(weld::Widget* pParent); @@ -71,7 +75,7 @@ public: virtual ~ScFunctionWin() override; void InitLRUList(); - void UpdateFunctionList(); + void UpdateFunctionList(const OUString&); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |