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 /sd/source/ui/tools/PreviewRenderer.cxx | |
parent | spelling in comments: minmal -> minimal (diff) | |
download | core-a5a571307fb3306b74ab46b085cde6388270a770.tar.gz core-a5a571307fb3306b74ab46b085cde6388270a770.zip |
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 'sd/source/ui/tools/PreviewRenderer.cxx')
-rw-r--r-- | sd/source/ui/tools/PreviewRenderer.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sd/source/ui/tools/PreviewRenderer.cxx b/sd/source/ui/tools/PreviewRenderer.cxx index f174577eef6c..d8096c27e53c 100644 --- a/sd/source/ui/tools/PreviewRenderer.cxx +++ b/sd/source/ui/tools/PreviewRenderer.cxx @@ -170,7 +170,7 @@ Image PreviewRenderer::RenderSubstitution ( mpPreviewDevice->SetMapMode (aMapMode); // Clear the background. - const Rectangle aPaintRectangle ( + const ::tools::Rectangle aPaintRectangle ( Point(0,0), mpPreviewDevice->GetOutputSizePixel()); mpPreviewDevice->EnableMapMode(false); @@ -277,7 +277,7 @@ void PreviewRenderer::PaintPage ( const bool bDisplayPresentationObjects) { // Paint the page. - Rectangle aPaintRectangle (Point(0,0), pPage->GetSize()); + ::tools::Rectangle aPaintRectangle (Point(0,0), pPage->GetSize()); vcl::Region aRegion (aPaintRectangle); // Turn off online spelling and redlining. @@ -321,7 +321,7 @@ void PreviewRenderer::PaintSubstitutionText (const OUString& rSubstitutionText) mpPreviewDevice->SetFont (aFont); // Paint the substitution text. - Rectangle aTextBox ( + ::tools::Rectangle aTextBox ( Point(0,0), mpPreviewDevice->PixelToLogic( mpPreviewDevice->GetOutputSizePixel())); @@ -342,7 +342,7 @@ void PreviewRenderer::PaintFrame() if (mbHasFrame) { // Paint a frame around the preview. - Rectangle aPaintRectangle ( + ::tools::Rectangle aPaintRectangle ( Point(0,0), mpPreviewDevice->GetOutputSizePixel()); mpPreviewDevice->EnableMapMode(false); @@ -454,7 +454,7 @@ Image PreviewRenderer::ScaleBitmap ( // Paint a frame around the preview. mpPreviewDevice->SetLineColor (maFrameColor); mpPreviewDevice->SetFillColor (); - mpPreviewDevice->DrawRect (Rectangle(Point(0,0), aFrameSize)); + mpPreviewDevice->DrawRect (::tools::Rectangle(Point(0,0), aFrameSize)); // Paint the bitmap scaled to the desired width. BitmapEx aScaledBitmap (rBitmapEx.GetBitmap()); |