summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-11 16:57:46 +0200
committerNoel Grandin <noelgrandin@gmail.com>2016-05-13 07:52:24 +0000
commitb3d5da663ff09c72455a8d3bf9be7c00220271bb (patch)
tree53751d1a733a7de389f3cf71b5b7a08bda7c9b0c /sc
parent3581dde3246b2bcdeee079879090d2317adc8f63 (diff)
convert SHOWTRACK to scoped enum
Change-Id: Ibf06f6c79f80d7265ae3239c1ea0088118e92e21 Reviewed-on: https://gerrit.libreoffice.org/24894 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/dbgui/csvgrid.cxx2
-rw-r--r--sc/source/ui/dbgui/csvruler.cxx2
-rw-r--r--sc/source/ui/view/olinewin.cxx4
3 files changed, 4 insertions, 4 deletions
diff --git a/sc/source/ui/dbgui/csvgrid.cxx b/sc/source/ui/dbgui/csvgrid.cxx
index 514cd469245f..10ac5464cc4e 100644
--- a/sc/source/ui/dbgui/csvgrid.cxx
+++ b/sc/source/ui/dbgui/csvgrid.cxx
@@ -1351,7 +1351,7 @@ void ScCsvGrid::ImplDrawTrackingRect( sal_uInt32 nColIndex )
sal_Int32 nX1 = std::max( GetColumnX( nColIndex ), GetFirstX() ) + 1;
sal_Int32 nX2 = std::min( GetColumnX( nColIndex + 1 ) - sal_Int32( 1 ), GetLastX() );
sal_Int32 nY2 = std::min( GetY( GetLastVisLine() + 1 ), GetHeight() ) - 1;
- InvertTracking( Rectangle( nX1, 0, nX2, nY2 ), SHOWTRACK_SMALL | SHOWTRACK_WINDOW );
+ InvertTracking( Rectangle( nX1, 0, nX2, nY2 ), ShowTrackFlags::Small | ShowTrackFlags::TrackWindow );
}
}
diff --git a/sc/source/ui/dbgui/csvruler.cxx b/sc/source/ui/dbgui/csvruler.cxx
index f26827417ce1..17ac609a9eb1 100644
--- a/sc/source/ui/dbgui/csvruler.cxx
+++ b/sc/source/ui/dbgui/csvruler.cxx
@@ -640,7 +640,7 @@ void ScCsvRuler::ImplDrawTrackingRect()
{
if( HasFocus() )
InvertTracking( Rectangle( 0, 0, GetWidth() - 1, GetHeight() - 2 ),
- SHOWTRACK_SMALL | SHOWTRACK_WINDOW );
+ ShowTrackFlags::Small | ShowTrackFlags::TrackWindow );
}
void ScCsvRuler::ImplSetMousePointer( sal_Int32 nPos )
diff --git a/sc/source/ui/view/olinewin.cxx b/sc/source/ui/view/olinewin.cxx
index 721f7285d68b..57b1feacfbc6 100644
--- a/sc/source/ui/view/olinewin.cxx
+++ b/sc/source/ui/view/olinewin.cxx
@@ -578,7 +578,7 @@ void ScOutlineWindow::ShowFocus()
bool bClip = (mnFocusEntry != SC_OL_HEADERENTRY);
if ( bClip )
SetEntryAreaClipRegion();
- InvertTracking( maFocusRect, SHOWTRACK_SMALL | SHOWTRACK_WINDOW );
+ InvertTracking( maFocusRect, ShowTrackFlags::Small | ShowTrackFlags::TrackWindow );
if ( bClip )
SetClipRegion();
}
@@ -593,7 +593,7 @@ void ScOutlineWindow::HideFocus()
bool bClip = (mnFocusEntry != SC_OL_HEADERENTRY);
if ( bClip )
SetEntryAreaClipRegion();
- InvertTracking( maFocusRect, SHOWTRACK_SMALL | SHOWTRACK_WINDOW );
+ InvertTracking( maFocusRect, ShowTrackFlags::Small | ShowTrackFlags::TrackWindow );
if ( bClip )
SetClipRegion();
maFocusRect.SetEmpty();