diff options
author | Andreas Brandner <Andreas.Brandner@cib.de> | 2017-09-15 09:17:17 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2017-12-10 23:23:39 +0100 |
commit | 225115af05cba9a603130914b49c5b28ed451108 (patch) | |
tree | a721d68102896cec18d3d61f9a4fd11762ade8f2 /tools/inc | |
parent | 456f943d2258164d35ec3522b1866302aa1f6e6b (diff) |
tdf#62525 tools: use cow_wrapper class for Polygon
Change-Id: I78f141762f593b36d32eb3eb2cda8fdae54b7277
Reviewed-on: https://gerrit.libreoffice.org/42309
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'tools/inc')
-rw-r--r-- | tools/inc/poly.h | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/inc/poly.h b/tools/inc/poly.h index 835beb8bcffe..4adb7184708e 100644 --- a/tools/inc/poly.h +++ b/tools/inc/poly.h @@ -30,17 +30,29 @@ public: Point* mpPointAry; PolyFlags* mpFlagAry; sal_uInt16 mnPoints; - sal_uInt32 mnRefCount; }; class SAL_WARN_UNUSED ImplPolygon : public ImplPolygonData { public: + ImplPolygon() { mpPointAry = nullptr; mpFlagAry = nullptr; mnPoints = 0;}; ImplPolygon( sal_uInt16 nInitSize, bool bFlags = false ); ImplPolygon( sal_uInt16 nPoints, const Point* pPtAry, const PolyFlags* pInitFlags ); ImplPolygon( const ImplPolygon& rImplPoly ); + ImplPolygon( const tools::Rectangle& rRect ); + ImplPolygon( const tools::Rectangle& rRect, sal_uInt32 nHorzRound, sal_uInt32 nVertRound); + ImplPolygon( const Point& rCenter, long nRadX, long nRadY ); + ImplPolygon( const tools::Rectangle& rBound, const Point& rStart, const Point& rEnd, + PolyStyle eStyle, bool bFullCircle ); + ImplPolygon( const Point& rBezPt1, const Point& rCtrlPt1, const Point& rBezPt2, + const Point& rCtrlPt2, sal_uInt16 nPoints ); + ImplPolygon(const basegfx::B2DPolygon& rPolygon); ~ImplPolygon(); + bool operator==( const ImplPolygon& rCandidate ) const; + + void ImplInitDefault(); + void ImplInitSize(sal_uInt16 nInitSize, bool bFlags = false); void ImplSetSize( sal_uInt16 nSize, bool bResize = true ); void ImplCreateFlagArray(); bool ImplSplit( sal_uInt16 nPos, sal_uInt16 nSpace, ImplPolygon const * pInitPoly = nullptr ); |