diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-11 16:57:46 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-05-13 07:52:24 +0000 |
commit | b3d5da663ff09c72455a8d3bf9be7c00220271bb (patch) | |
tree | 53751d1a733a7de389f3cf71b5b7a08bda7c9b0c /svtools | |
parent | 3581dde3246b2bcdeee079879090d2317adc8f63 (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 'svtools')
-rw-r--r-- | svtools/inc/table/tablecontrolinterface.hxx | 2 | ||||
-rw-r--r-- | svtools/source/brwbox/brwbox2.cxx | 2 | ||||
-rw-r--r-- | svtools/source/contnr/simptabl.cxx | 4 | ||||
-rw-r--r-- | svtools/source/control/headbar.cxx | 4 | ||||
-rw-r--r-- | svtools/source/table/mousefunction.cxx | 2 | ||||
-rw-r--r-- | svtools/source/table/tablecontrol_impl.cxx | 2 | ||||
-rw-r--r-- | svtools/source/table/tablecontrol_impl.hxx | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/svtools/inc/table/tablecontrolinterface.hxx b/svtools/inc/table/tablecontrolinterface.hxx index c3729d7bb966..5f957b93d9b5 100644 --- a/svtools/inc/table/tablecontrolinterface.hxx +++ b/svtools/inc/table/tablecontrolinterface.hxx @@ -230,7 +230,7 @@ namespace svt { namespace table virtual long pixelWidthToAppFont( long const i_pixels ) const = 0; /// shows a tracking rectangle - virtual void showTracking( Rectangle const & i_location, sal_uInt16 const i_flags ) = 0; + virtual void showTracking( Rectangle const & i_location, ShowTrackFlags const i_flags ) = 0; /// hides a prviously shown tracking rectangle virtual void hideTracking() = 0; diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx index 3625d24af2b4..45fa1c448e79 100644 --- a/svtools/source/brwbox/brwbox2.cxx +++ b/svtools/source/brwbox/brwbox2.cxx @@ -1422,7 +1422,7 @@ void BrowseBox::MouseMove( const MouseEvent& rEvt ) // draw new auxiliary line pDataWin->ShowTracking( Rectangle( Point( nDragX, 0 ), Size( 1, pDataWin->GetSizePixel().Height() ) ), - SHOWTRACK_SPLIT|SHOWTRACK_WINDOW ); + ShowTrackFlags::Split|ShowTrackFlags::TrackWindow ); } } diff --git a/svtools/source/contnr/simptabl.cxx b/svtools/source/contnr/simptabl.cxx index e22acfe95d33..68c7d9404f54 100644 --- a/svtools/source/contnr/simptabl.cxx +++ b/svtools/source/contnr/simptabl.cxx @@ -341,7 +341,7 @@ void SvSimpleTable::HBarStartDrag() SvHeaderTabListBox::GetOutputSizePixel()); aSizeRect.Left()=-GetXOffset()+aHeaderBar->GetDragPos(); aSizeRect.Right()=-GetXOffset()+aHeaderBar->GetDragPos(); - ShowTracking( aSizeRect, SHOWTRACK_SPLIT ); + ShowTracking( aSizeRect, ShowTrackFlags::Split ); } } void SvSimpleTable::HBarDrag() @@ -353,7 +353,7 @@ void SvSimpleTable::HBarDrag() SvHeaderTabListBox::GetOutputSizePixel()); aSizeRect.Left()=-GetXOffset()+aHeaderBar->GetDragPos(); aSizeRect.Right()=-GetXOffset()+aHeaderBar->GetDragPos(); - ShowTracking( aSizeRect, SHOWTRACK_SPLIT ); + ShowTracking( aSizeRect, ShowTrackFlags::Split ); } } void SvSimpleTable::HBarEndDrag() diff --git a/svtools/source/control/headbar.cxx b/svtools/source/control/headbar.cxx index b3281241d23d..c7ffa20a97d0 100644 --- a/svtools/source/control/headbar.cxx +++ b/svtools/source/control/headbar.cxx @@ -690,7 +690,7 @@ void HeaderBar::ImplStartDrag( const Point& rMousePos, bool bCommand ) else { Rectangle aSizeRect( mnDragPos, 0, mnDragPos, mnDragSize+mnDY ); - ShowTracking( aSizeRect, SHOWTRACK_SPLIT ); + ShowTracking( aSizeRect, ShowTrackFlags::Split ); } } else @@ -797,7 +797,7 @@ void HeaderBar::ImplDrag( const Point& rMousePos ) else { Rectangle aSizeRect( mnDragPos, 0, mnDragPos, mnDragSize+mnDY ); - ShowTracking( aSizeRect, SHOWTRACK_SPLIT ); + ShowTracking( aSizeRect, ShowTrackFlags::Split ); } } diff --git a/svtools/source/table/mousefunction.cxx b/svtools/source/table/mousefunction.cxx index 3d88c1574e85..676b9791dab6 100644 --- a/svtools/source/table/mousefunction.cxx +++ b/svtools/source/table/mousefunction.cxx @@ -74,7 +74,7 @@ namespace svt { namespace table Point( aPoint.X(), 0 ), Size( 1, tableSize.Height() ) ), - SHOWTRACK_SPLIT | SHOWTRACK_WINDOW + ShowTrackFlags::Split | ShowTrackFlags::TrackWindow ); (void)i_event; diff --git a/svtools/source/table/tablecontrol_impl.cxx b/svtools/source/table/tablecontrol_impl.cxx index f2efd758fa49..b8eb95c5bf7b 100644 --- a/svtools/source/table/tablecontrol_impl.cxx +++ b/svtools/source/table/tablecontrol_impl.cxx @@ -1826,7 +1826,7 @@ namespace svt { namespace table } - void TableControl_Impl::showTracking( Rectangle const & i_location, sal_uInt16 const i_flags ) + void TableControl_Impl::showTracking( Rectangle const & i_location, ShowTrackFlags const i_flags ) { m_pDataWindow->ShowTracking( i_location, i_flags ); } diff --git a/svtools/source/table/tablecontrol_impl.hxx b/svtools/source/table/tablecontrol_impl.hxx index 28ddc6b89800..cecbe4a0d947 100644 --- a/svtools/source/table/tablecontrol_impl.hxx +++ b/svtools/source/table/tablecontrol_impl.hxx @@ -258,7 +258,7 @@ namespace svt { namespace table virtual void invalidate( TableArea const i_what ) override; virtual long pixelWidthToAppFont( long const i_pixels ) const override; virtual void hideTracking() override; - virtual void showTracking( Rectangle const & i_location, sal_uInt16 const i_flags ) override; + virtual void showTracking( Rectangle const & i_location, ShowTrackFlags const i_flags ) override; RowPos getRowAtPoint( const Point& rPoint ) const; ColPos getColAtPoint( const Point& rPoint ) const; virtual TableCell hitTest( const Point& rPoint ) const override; |