diff options
author | Bayram Çiçek <bayram.cicek@libreoffice.org> | 2023-06-02 08:24:25 +0300 |
---|---|---|
committer | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2023-08-29 18:01:40 +0200 |
commit | a4633dadb4233ad5587bd238449671d610540c81 (patch) | |
tree | 9bd34b31bf70a9a8853e261f99dd3b49488ed3a1 /sw/source/ui/config/mailconfigpage.cxx | |
parent | 62e201d2cf82f4ccaa6564bd2420ac6582594b8f (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 'sw/source/ui/config/mailconfigpage.cxx')
-rw-r--r-- | sw/source/ui/config/mailconfigpage.cxx | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sw/source/ui/config/mailconfigpage.cxx b/sw/source/ui/config/mailconfigpage.cxx index 4f2d996b6f56..3b8a5ec45568 100644 --- a/sw/source/ui/config/mailconfigpage.cxx +++ b/sw/source/ui/config/mailconfigpage.cxx @@ -130,6 +130,28 @@ std::unique_ptr<SfxTabPage> SwMailConfigPage::Create(weld::Container* pPage, wel return std::make_unique<SwMailConfigPage>(pPage, pController, *rAttrSet); } +OUString SwMailConfigPage::GetAllStrings() +{ + OUString sAllStrings; + OUString labels[] = { "label1", "displayname_label", "address_label", "replyto_label", + "label2", "server_label", "port_label" }; + + for (const auto& label : labels) + sAllStrings += m_xBuilder->weld_label(label)->get_label() + " "; + + OUString checkButton[] = { "replytocb", "secure" }; + + for (const auto& check : checkButton) + sAllStrings += m_xBuilder->weld_check_button(check)->get_label() + " "; + + OUString buttons[] = { "serverauthentication", "test" }; + + for (const auto& btn : buttons) + sAllStrings += m_xBuilder->weld_button(btn)->get_label() + " "; + + return sAllStrings.replaceAll("_", ""); +} + bool SwMailConfigPage::FillItemSet( SfxItemSet* /*rSet*/ ) { if (m_xDisplayNameED->get_value_changed_from_saved()) |