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 /include/svx/xpoly.hxx | |
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 'include/svx/xpoly.hxx')
-rw-r--r-- | include/svx/xpoly.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/svx/xpoly.hxx b/include/svx/xpoly.hxx index 430df7b6ffb2..ac5dbd8ac812 100644 --- a/include/svx/xpoly.hxx +++ b/include/svx/xpoly.hxx @@ -25,7 +25,7 @@ #include <tools/poly.hxx> class Point; -class Rectangle; +namespace tools { class Rectangle; } class SvStream; namespace tools { class Polygon; @@ -58,7 +58,7 @@ public: XPolygon( const XPolygon& rXPoly ); XPolygon( XPolygon&& rXPoly ); XPolygon( const tools::Polygon& rPoly ); - XPolygon( const Rectangle& rRect, long nRx = 0, long nRy = 0 ); + XPolygon( const tools::Rectangle& rRect, long nRx = 0, long nRy = 0 ); XPolygon( const Point& rCenter, long nRx, long nRy, sal_uInt16 nStartAngle = 0, sal_uInt16 nEndAngle = 3600, bool bClose = true ); @@ -74,7 +74,7 @@ public: void Insert( sal_uInt16 nPos, const XPolygon& rXPoly ); void Remove( sal_uInt16 nPos, sal_uInt16 nCount ); void Move( long nHorzMove, long nVertMove ); - Rectangle GetBoundRect() const; + tools::Rectangle GetBoundRect() const; const Point& operator[]( sal_uInt16 nPos ) const; Point& operator[]( sal_uInt16 nPos ); @@ -97,7 +97,7 @@ public: // transformations void Scale(double fSx, double fSy); - void Distort(const Rectangle& rRefRect, const XPolygon& rDistortedRect); + void Distort(const tools::Rectangle& rRefRect, const XPolygon& rDistortedRect); // #116512# convert to basegfx::B2DPolygon and return basegfx::B2DPolygon getB2DPolygon() const; @@ -131,7 +131,7 @@ public: void Clear(); sal_uInt16 Count() const; - Rectangle GetBoundRect() const; + tools::Rectangle GetBoundRect() const; const XPolygon& operator[]( sal_uInt16 nPos ) const { return GetObject( nPos ); } @@ -141,7 +141,7 @@ public: XPolyPolygon& operator=( XPolyPolygon&& rXPolyPoly ); // transformations - void Distort(const Rectangle& rRefRect, const XPolygon& rDistortedRect); + void Distort(const tools::Rectangle& rRefRect, const XPolygon& rDistortedRect); // #116512# convert to basegfx::B2DPolyPolygon and return basegfx::B2DPolyPolygon getB2DPolyPolygon() const; |