summaryrefslogtreecommitdiff
path: root/cui/source/inc
diff options
context:
space:
mode:
authorMuhammet Kara <muhammet.kara@pardus.org.tr>2017-11-27 21:10:21 +0300
committerMuhammet Kara <muhammet.kara@pardus.org.tr>2017-12-04 12:55:54 +0100
commit3b12778af71951bfce321c73509e8b0c59b02853 (patch)
treee109782bf0d037be3ca4d565140192d45eaaf319 /cui/source/inc
parent5ea28efc864b0b064512f2049a9acd82aeaae808 (diff)
tdf#112207: Allow assigning macros to ui elements
* Adds "Macros" category to the categories list * Search/filter feature now works also on the macros category * Since macros category has multiple trees and subtrees, and many leaf elements (macros). I chose to implement the behavior like this: If there is no filter/search term, the trees will be presented as in the old macro selector dialog (collapsed), but if user types a search term, then filtering happens: non-matching elements and empty containers/(sub)trees are removed and everything is expanded so that user easily sees what (s)he is looking for. Change-Id: I1a93f156a7293c7e61baac882a10ff631961e2af Reviewed-on: https://gerrit.libreoffice.org/44938 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Heiko Tietze <tietze.heiko@googlemail.com> Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de> (cherry picked from commit 3f2915c40fcc42ac91f2019fd506bfbdd1e5933f) Reviewed-on: https://gerrit.libreoffice.org/45779
Diffstat (limited to 'cui/source/inc')
-rw-r--r--cui/source/inc/CommandCategoryListBox.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/cui/source/inc/CommandCategoryListBox.hxx b/cui/source/inc/CommandCategoryListBox.hxx
index a80f80a6f5be..8149cc6f261c 100644
--- a/cui/source/inc/CommandCategoryListBox.hxx
+++ b/cui/source/inc/CommandCategoryListBox.hxx
@@ -64,6 +64,11 @@ public:
const OUString& filterTerm = OUString() );
void SetStylesInfo(SfxStylesInfo_Impl* pStyles);
+
+ // Adds children of the given macro group to the functions list
+ void addChildren(
+ SvTreeListEntry* parentEntry, const css::uno::Reference<com::sun::star::script::browse::XBrowseNode> &parentNode,
+ const VclPtr<SfxConfigFunctionListBox> &pFunctionListBox, const OUString &filterTerm);
};
#endif // INCLUDED_CUI_SOURCE_INC_COMMANDCATEGORYLISTBOX_HXX