From cc3690c9694e79d913c370ef1983c83f38dae23a Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Sun, 15 Apr 2018 11:40:40 -0800 Subject: tdf#115600 Display messages in Findbar for Text Frame, Graphics, OLE ...object, Drawing, and Control navigation Change-Id: Ic9809e60ae18179f0ea36a4e3c61d09aea3c2929 Reviewed-on: https://gerrit.libreoffice.org/52935 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- sw/source/core/frmedt/feshview.cxx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sw/source/core/frmedt/feshview.cxx b/sw/source/core/frmedt/feshview.cxx index 4b46fd4df1d6..713ba9a38f16 100644 --- a/sw/source/core/frmedt/feshview.cxx +++ b/sw/source/core/frmedt/feshview.cxx @@ -101,6 +101,8 @@ #include #include +#include + #define SCROLLVAL 75 using namespace com::sun::star; @@ -1631,7 +1633,10 @@ const SdrObject* SwFEShell::GetBestObject( bool bNext, GotoObjFlags eType, bool } // unfortunately nothing found if( bNext ? (aBestPos.getX() == LONG_MAX) : (aBestPos.getX() == 0) ) + { pBest = pTop; + SvxSearchDialogWrapper::SetSearchLabel( bNext ? SearchLabel::EndWrapped : SearchLabel::StartWrapped ); + } } return pBest; @@ -1639,10 +1644,15 @@ const SdrObject* SwFEShell::GetBestObject( bool bNext, GotoObjFlags eType, bool bool SwFEShell::GotoObj( bool bNext, GotoObjFlags eType ) { + SvxSearchDialogWrapper::SetSearchLabel( SearchLabel::Empty ); + const SdrObject* pBest = GetBestObject( bNext, eType ); if ( !pBest ) + { + SvxSearchDialogWrapper::SetSearchLabel( SearchLabel::NavElementNotFound ); return false; + } const SwVirtFlyDrawObj *pVirtO = dynamic_cast(pBest); if (pVirtO) -- cgit