summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorJim Raykowski <raykowj@gmail.com>2020-04-21 01:49:36 -0800
committerJim Raykowski <raykowj@gmail.com>2020-09-20 08:25:24 +0200
commit6f7f5f280abaf4ee84472359acd4952b2eea40a4 (patch)
treef8684852dfb7b5e9a1b5f5e8d1abb588bb8aa02a /svx/source
parentc6b6995004d34cadaec68e2b6e17667d43f9995e (diff)
tdf#132366 Writer enhancement that highlights search results
This enhancement selects outline headings in the Writer Navigator content tree according to 'Find All' search results. It does this when the content navigation view is set to show headings content only. Change-Id: I77dabcdd38c8877b7f8a177689da094638d5fe00 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92886 Tested-by: Jenkins Reviewed-by: Jim Raykowski <raykowj@gmail.com>
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/tbxctrls/tbunosearchcontrollers.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/svx/source/tbxctrls/tbunosearchcontrollers.cxx b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
index 8372d7876c9b..a86739988185 100644
--- a/svx/source/tbxctrls/tbunosearchcontrollers.cxx
+++ b/svx/source/tbxctrls/tbunosearchcontrollers.cxx
@@ -141,7 +141,13 @@ void impl_executeSearch( const css::uno::Reference< css::uno::XComponentContext
{
FindTextFieldControl* pItemWin = static_cast<FindTextFieldControl*>(pToolBox->GetItemWindow(id));
if (pItemWin)
+ {
sFindText = pItemWin->get_active_text();
+ if (aFindAll)
+ pItemWin->GrabFocus();
+ else
+ pItemWin->GrabFocusToDocument();
+ }
} else if ( sItemCommand == COMMAND_MATCHCASE )
{
CheckButtonItemWindow* pItemWin = static_cast<CheckButtonItemWindow*>(pToolBox->GetItemWindow(id));