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 /svx | |
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 'svx')
-rw-r--r-- | svx/source/dialog/optgrid.cxx | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/svx/source/dialog/optgrid.cxx b/svx/source/dialog/optgrid.cxx index 3cd12b48d1ae..ccbfe836fcb8 100644 --- a/svx/source/dialog/optgrid.cxx +++ b/svx/source/dialog/optgrid.cxx @@ -149,6 +149,26 @@ std::unique_ptr<SfxTabPage> SvxGridTabPage::Create(weld::Container* pPage, weld: return std::make_unique<SvxGridTabPage>(pPage, pController, rAttrSet); } +OUString SvxGridTabPage::GetAllStrings() +{ + OUString sAllStrings; + OUString labels[] + = { "label1", "label2", "flddrawx", "flddrawy", "label6", "label7", "label3", + "divisionx", "label4", "divisiony", "label5", "label8", "label9" }; + + for (const auto& label : labels) + sAllStrings += m_xBuilder->weld_label(label)->get_label() + " "; + + OUString checkButton[] + = { "usegridsnap", "gridvisible", "synchronize", "snaphelplines", "snapborder", + "snapframe", "snappoints", "ortho", "bigortho", "rotate" }; + + for (const auto& check : checkButton) + sAllStrings += m_xBuilder->weld_check_button(check)->get_label() + " "; + + return sAllStrings.replaceAll("_", ""); +} + bool SvxGridTabPage::FillItemSet( SfxItemSet* rCoreSet ) { if ( bAttrModified ) |