diff options
author | AhmedHamed <ahmedhamed3699@gmail.com> | 2024-06-27 15:07:24 +0300 |
---|---|---|
committer | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2024-07-19 07:50:55 +0200 |
commit | 5bd284583fe1f891bac3192d8e20083a57830a0a (patch) | |
tree | 0e1fde3a848842af73e4cdbaafca870e14a1432a /sc/source/ui/inc | |
parent | 24103bdf3fa3d6962efcc6fb6ee5c95b62e29cc4 (diff) |
tdf#161296 Convert functions list in FD & FW into collapsible sections
Change-Id: I9211c0cf02be8d21e343d57f53d14e50d7b5fd0d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169639
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Tested-by: Jenkins
Diffstat (limited to 'sc/source/ui/inc')
-rw-r--r-- | sc/source/ui/inc/dwfunctr.hxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/ui/inc/dwfunctr.hxx b/sc/source/ui/inc/dwfunctr.hxx index cc854fa317a1..e393f2a69fcb 100644 --- a/sc/source/ui/inc/dwfunctr.hxx +++ b/sc/source/ui/inc/dwfunctr.hxx @@ -20,6 +20,7 @@ #include <comphelper/configurationlistener.hxx> #include <sfx2/sidebar/PanelLayout.hxx> +#include <unordered_map> class ScFuncDesc; namespace formula { class IFunctionDescription; } @@ -45,6 +46,7 @@ class ScFunctionWin : public PanelLayout private: std::unique_ptr<weld::ComboBox> xCatBox; std::unique_ptr<weld::TreeView> xFuncList; + std::unique_ptr<weld::TreeIter> xScratchIter; std::unique_ptr<weld::Button> xInsertButton; std::unique_ptr<weld::Button> xHelpButton; std::unique_ptr<weld::TextView> xFiFuncDesc; @@ -58,10 +60,12 @@ private: OUString m_aSearchHelpId; ::std::vector< const formula::IFunctionDescription*> aLRUList; + ::std::unordered_map<OUString, std::unique_ptr<weld::TreeIter>> mCategories; void UpdateLRUList(); - void DoEnter(); + void DoEnter(bool bDouble_or_Enter = false); void SetDescription(); + weld::TreeIter* FillCategoriesMap(const OUString&, bool); DECL_LINK( SetRowActivatedHdl, weld::TreeView&, bool ); DECL_LINK( SetSelectionClickHdl, weld::Button&, void ); |