summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-09-02 14:57:18 +0200
committerNoel Grandin <noel@peralex.com>2016-09-05 08:21:46 +0200
commit04a8ba2084950f998d791edad29739c124c8c4b8 (patch)
treedf1b3f1a5d5a56ff89300292ade6f6976e16b436 /reportdesign
parenta1cd62bcd589a7c1050e327f4cb0ad95f9ea19d1 (diff)
convert ScrollType to scoped enum
Change-Id: I6dd02d4f7df028dada6cfd5d767a6ec1b1c1efe1
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/report/ViewsWindow.cxx2
-rw-r--r--reportdesign/source/ui/report/dlgedfunc.cxx10
2 files changed, 6 insertions, 6 deletions
diff --git a/reportdesign/source/ui/report/ViewsWindow.cxx b/reportdesign/source/ui/report/ViewsWindow.cxx
index c4be7f78f477..16c94af43026 100644
--- a/reportdesign/source/ui/report/ViewsWindow.cxx
+++ b/reportdesign/source/ui/report/ViewsWindow.cxx
@@ -1472,7 +1472,7 @@ void OViewsWindow::handleKey(const vcl::KeyCode& _rCode)
OScrollWindowHelper* pScrollWindow = getView()->getScrollWindow();
ScrollBar& rScrollBar = ( nCode == KEY_LEFT || nCode == KEY_RIGHT ) ? pScrollWindow->GetHScroll() : pScrollWindow->GetVScroll();
if ( rScrollBar.IsVisible() )
- rScrollBar.DoScrollAction(( nCode == KEY_RIGHT || nCode == KEY_UP ) ? SCROLL_LINEUP : SCROLL_LINEDOWN );
+ rScrollBar.DoScrollAction(( nCode == KEY_RIGHT || nCode == KEY_UP ) ? ScrollType::LineUp : ScrollType::LineDown );
return;
}
TSectionsMap::const_iterator aIter = m_aSections.begin();
diff --git a/reportdesign/source/ui/report/dlgedfunc.cxx b/reportdesign/source/ui/report/dlgedfunc.cxx
index d6603e299103..45cd2e78715a 100644
--- a/reportdesign/source/ui/report/dlgedfunc.cxx
+++ b/reportdesign/source/ui/report/dlgedfunc.cxx
@@ -92,16 +92,16 @@ void DlgEdFunc::ForceScroll( const Point& rPos )
{
ScrollBar& rHScroll = pScrollWindow->GetHScroll();
ScrollBar& rVScroll = pScrollWindow->GetVScroll();
- ScrollType eH = SCROLL_LINEDOWN,eV = SCROLL_LINEDOWN;
+ ScrollType eH = ScrollType::LineDown,eV = ScrollType::LineDown;
if( rPos.X() < aOutRect.Left() )
- eH = SCROLL_LINEUP;
+ eH = ScrollType::LineUp;
else if( rPos.X() <= aOutRect.Right() )
- eH = SCROLL_DONTKNOW;
+ eH = ScrollType::DontKnow;
if( rPos.Y() < aOutRect.Top() )
- eV = SCROLL_LINEUP;
+ eV = ScrollType::LineUp;
else if( rPos.Y() <= aOutRect.Bottom() )
- eV = SCROLL_DONTKNOW;
+ eV = ScrollType::DontKnow;
rHScroll.DoScrollAction(eH);
rVScroll.DoScrollAction(eV);