summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-12-05 10:09:50 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-12-05 10:50:49 +0100
commitc6abb084ef6b1f86734395058bcafc61458727b4 (patch)
treec1e223bb324653d7885548c2586c0560f19fb930 /sw
parent69a7a83c454476341a6d35bcaaf85b15a8c2268a (diff)
Partly revert "Appears SwView::SetMoveType no longer really does anything"
This reverts most of commit a50a2111a31e4d9dd5e2659a146e9de8e292de75, where the -Werror,-Wunused-variable for SwView::SetMoveType's aColor (after 3e8fe4d8e19be2ccd8f5bb898530e2f615a90321 "Remove the Navigator buttons below the scrollbar in Writer" had removed its use) had erroneously make me think that SwView::SetMoveType now effectively didn't do anything anymore, failing to note the m_nMoveType = nSet; part that was still relevant. Change-Id: I5e43886806533e80e238fef8d836e09e28209b6d
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/inc/view.hxx1
-rw-r--r--sw/source/ui/ribbar/workctrl.cxx1
-rw-r--r--sw/source/ui/uiview/viewmdi.cxx5
-rw-r--r--sw/source/ui/uiview/viewsrch.cxx2
4 files changed, 9 insertions, 0 deletions
diff --git a/sw/source/ui/inc/view.hxx b/sw/source/ui/inc/view.hxx
index 597468989adc..af145924d3c5 100644
--- a/sw/source/ui/inc/view.hxx
+++ b/sw/source/ui/inc/view.hxx
@@ -486,6 +486,7 @@ public:
static Dialog* GetSearchDialog();
static sal_uInt16 GetMoveType();
+ static void SetMoveType(sal_uInt16 nSet);
DECL_STATIC_LINK( SwView, MoveNavigationHdl, bool* ); // #i75416#
static void SetActMark(sal_Int32 nSet);
diff --git a/sw/source/ui/ribbar/workctrl.cxx b/sw/source/ui/ribbar/workctrl.cxx
index 95d2cad23790..fe7f1417af9a 100644
--- a/sw/source/ui/ribbar/workctrl.cxx
+++ b/sw/source/ui/ribbar/workctrl.cxx
@@ -553,6 +553,7 @@ IMPL_LINK(SwScrollNaviPopup, SelectHdl, ToolBox*, pSet)
sal_uInt16 nSet = pSet->GetCurItemId();
if( nSet != NID_PREV && nSet != NID_NEXT )
{
+ SwView::SetMoveType(nSet);
aToolBox.SetItemText(NID_NEXT, sQuickHelp[nSet - NID_START]);
aToolBox.SetItemText(NID_PREV, sQuickHelp[nSet - NID_START + NID_COUNT]);
aInfoField.SetText(aToolBox.GetItemText(nSet));
diff --git a/sw/source/ui/uiview/viewmdi.cxx b/sw/source/ui/uiview/viewmdi.cxx
index 5934bc391f71..2a73898625a5 100644
--- a/sw/source/ui/uiview/viewmdi.cxx
+++ b/sw/source/ui/uiview/viewmdi.cxx
@@ -560,6 +560,11 @@ sal_uInt16 SwView::GetMoveType()
return m_nMoveType;
}
+void SwView::SetMoveType(sal_uInt16 nSet)
+{
+ m_nMoveType = nSet;
+}
+
void SwView::SetActMark(sal_Int32 nSet)
{
m_nActMark = nSet;
diff --git a/sw/source/ui/uiview/viewsrch.cxx b/sw/source/ui/uiview/viewsrch.cxx
index dd5f12745617..4436f73d91ff 100644
--- a/sw/source/ui/uiview/viewsrch.cxx
+++ b/sw/source/ui/uiview/viewsrch.cxx
@@ -165,6 +165,8 @@ void SwView::ExecSearch(SfxRequest& rReq, sal_Bool bNoMessage)
case FID_SEARCH_NOW:
{
{
+ if(FID_SEARCH_NOW == nSlot && !rReq.IsAPI())
+ SwView::SetMoveType(NID_SRCH_REP);
if ( pWrp )
{
m_pSrchDlg = static_cast <SvxSearchDialog*> (pWrp->getDialog ());