summaryrefslogtreecommitdiff
path: root/cui/source/options/connpooloptions.cxx
diff options
context:
space:
mode:
authorBayram Çiçek <bayram.cicek@libreoffice.org>2023-06-02 08:24:25 +0300
committerAndreas Heinisch <andreas.heinisch@yahoo.de>2023-08-29 18:01:40 +0200
commita4633dadb4233ad5587bd238449671d610540c81 (patch)
tree9bd34b31bf70a9a8853e261f99dd3b49488ed3a1 /cui/source/options/connpooloptions.cxx
parent62e201d2cf82f4ccaa6564bd2420ac6582594b8f (diff)
tdf#49895: Add search functionality to Options dialog
- Search field added. - Dialog names of all treeview nodes with their parent names were included in searching. - Strings of labels, check buttons, radio buttons, toggle buttons, link buttons and buttons were included in searching. Change-Id: Idf67c160519402ee390d94b1b3135b56324f3990 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152519 Tested-by: Jenkins Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Diffstat (limited to 'cui/source/options/connpooloptions.cxx')
-rw-r--r--cui/source/options/connpooloptions.cxx16
1 files changed, 16 insertions, 0 deletions
diff --git a/cui/source/options/connpooloptions.cxx b/cui/source/options/connpooloptions.cxx
index 80c202a78c0b..b13561898ab0 100644
--- a/cui/source/options/connpooloptions.cxx
+++ b/cui/source/options/connpooloptions.cxx
@@ -159,6 +159,22 @@ namespace offapp
commitTimeoutField();
}
+ OUString ConnectionPoolOptionsPage::GetAllStrings()
+ {
+ OUString sAllStrings;
+ OUString labels[] = { "label1", "driverslabel", "driverlabel", "timeoutlabel", "driver" };
+
+ for (const auto& label : labels)
+ sAllStrings += m_xBuilder->weld_label(label)->get_label() + " ";
+
+ OUString checkButton[] = { "connectionpooling", "enablepooling" };
+
+ for (const auto& check : checkButton)
+ sAllStrings += m_xBuilder->weld_check_button(check)->get_label() + " ";
+
+ return sAllStrings.replaceAll("_", "");
+ }
+
bool ConnectionPoolOptionsPage::FillItemSet(SfxItemSet* _rSet)
{
commitTimeoutField();