diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-03-30 20:27:55 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2017-03-31 06:27:11 +0000 |
commit | a5a571307fb3306b74ab46b085cde6388270a770 (patch) | |
tree | 66d4ce12bb5236c50ab6a5d253bc8c6d8b5d292d /sc/source/ui/dbgui/csvruler.cxx | |
parent | 17d821af6bb9df93569836a92f6bed975587fc6c (diff) |
tdf#82580 tools: rename Rectangle to tools::Rectangle
Mostly generated using
make check COMPILER_EXTERNAL_TOOL=1 CCACHE_PREFIX=clang-rename-wrapper RENAME_ARGS="-qualified-name=Rectangle -new-name=tools::Rectangle"
Except some modules have their own foo::tools namespace, so there have
to use ::tools::Rectangle. This commit just moves the class from the
global namespace, it does not update pre/postwin.h yet.
Change-Id: I42b2de3c6f769fcf28cfe086f98eb31e42a305f2
Reviewed-on: https://gerrit.libreoffice.org/35923
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Jenkins <ci@libreoffice.org>
Diffstat (limited to 'sc/source/ui/dbgui/csvruler.cxx')
-rw-r--r-- | sc/source/ui/dbgui/csvruler.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/ui/dbgui/csvruler.cxx b/sc/source/ui/dbgui/csvruler.cxx index c3406cc992a8..23881dbda146 100644 --- a/sc/source/ui/dbgui/csvruler.cxx +++ b/sc/source/ui/dbgui/csvruler.cxx @@ -411,7 +411,7 @@ void ScCsvRuler::MouseMove( const MouseEvent& rMEvt ) else { Point aPoint; - Rectangle aRect( aPoint, maWinSize ); + tools::Rectangle aRect( aPoint, maWinSize ); if( !IsVisibleSplitPos( nPos ) || !aRect.IsInside( rMEvt.GetPosPixel() ) ) // if focused, keep old cursor position for key input nPos = HasFocus() ? GetRulerCursorPos() : CSV_POS_INVALID; @@ -514,7 +514,7 @@ void ScCsvRuler::EndMouseTracking( bool bApply ) // painting ------------------------------------------------------------------- -void ScCsvRuler::Paint( vcl::RenderContext& /*rRenderContext*/, const Rectangle& ) +void ScCsvRuler::Paint( vcl::RenderContext& /*rRenderContext*/, const tools::Rectangle& ) { Repaint(); } @@ -532,7 +532,7 @@ void ScCsvRuler::ImplRedraw() DrawOutDev( Point(), maWinSize, Point(), maWinSize, *maRulerDev.get() ); /* Draws directly tracking rectangle to the column with the specified index. */ if( HasFocus() ) - InvertTracking( Rectangle( 0, 0, GetWidth() - 1, GetHeight() - 2 ), + InvertTracking( tools::Rectangle( 0, 0, GetWidth() - 1, GetHeight() - 2 ), ShowTrackFlags::Small | ShowTrackFlags::TrackWindow ); } } @@ -540,7 +540,7 @@ void ScCsvRuler::ImplRedraw() void ScCsvRuler::ImplDrawArea( sal_Int32 nPosX, sal_Int32 nWidth ) { maBackgrDev->SetLineColor(); - Rectangle aRect( Point( nPosX, 0 ), Size( nWidth, GetHeight() ) ); + tools::Rectangle aRect( Point( nPosX, 0 ), Size( nWidth, GetHeight() ) ); maBackgrDev->SetFillColor( maBackColor ); maBackgrDev->DrawRect( aRect ); @@ -600,7 +600,7 @@ void ScCsvRuler::ImplDrawSplit( sal_Int32 nPos ) Size aSize( mnSplitSize, mnSplitSize ); maRulerDev->SetLineColor( maTextColor ); maRulerDev->SetFillColor( maSplitColor ); - maRulerDev->DrawEllipse( Rectangle( aPos, aSize ) ); + maRulerDev->DrawEllipse( tools::Rectangle( aPos, aSize ) ); maRulerDev->DrawPixel( Point( GetX( nPos ), GetHeight() - 2 ) ); } } @@ -633,7 +633,7 @@ void ScCsvRuler::ImplInvertCursor( sal_Int32 nPos ) { if( IsVisibleSplitPos( nPos ) ) { - ImplInvertRect( *maRulerDev.get(), Rectangle( Point( GetX( nPos ) - 1, 0 ), Size( 3, GetHeight() - 1 ) ) ); + ImplInvertRect( *maRulerDev.get(), tools::Rectangle( Point( GetX( nPos ) - 1, 0 ), Size( 3, GetHeight() - 1 ) ) ); if( HasSplit( nPos ) ) ImplDrawSplit( nPos ); } |