summaryrefslogtreecommitdiff
path: root/vcl/source/gdi/cvtsvm.cxx
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2015-08-16 16:45:12 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2015-08-17 02:07:43 +0000
commitef46917ff3163d3fdd5152bda5d16c4503b6ab69 (patch)
tree73271cd339b19964bc91157207565595774e98b5 /vcl/source/gdi/cvtsvm.cxx
parent2ce903c7b2d67a46c2fe2755cfaa66d98f2eddf2 (diff)
Put Polygon from tools under tools:: namespace
Polygon is one of these names that Clash with some system objects A similar work has been done earlier with PolyPolygon. Change-Id: Icf2217cb2906292b7275760f1a16be0e150312f5 Reviewed-on: https://gerrit.libreoffice.org/17789 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'vcl/source/gdi/cvtsvm.cxx')
-rw-r--r--vcl/source/gdi/cvtsvm.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/vcl/source/gdi/cvtsvm.cxx b/vcl/source/gdi/cvtsvm.cxx
index a7821224fdf7..2d939bb5f66e 100644
--- a/vcl/source/gdi/cvtsvm.cxx
+++ b/vcl/source/gdi/cvtsvm.cxx
@@ -51,12 +51,12 @@ void ImplWriteRect( SvStream& rOStm, const Rectangle& rRect )
WritePair( rOStm, rRect.BottomRight() );
}
-void ImplReadPoly( SvStream& rIStm, Polygon& rPoly )
+void ImplReadPoly( SvStream& rIStm, tools::Polygon& rPoly )
{
sal_Int32 nSize;
rIStm.ReadInt32( nSize );
- rPoly = Polygon( (sal_uInt16) nSize );
+ rPoly = tools::Polygon( (sal_uInt16) nSize );
for( sal_uInt16 i = 0; i < (sal_uInt16) nSize; i++ )
ReadPair( rIStm, rPoly[ i ] );
@@ -64,7 +64,7 @@ void ImplReadPoly( SvStream& rIStm, Polygon& rPoly )
void ImplReadPolyPoly( SvStream& rIStm, tools::PolyPolygon& rPolyPoly )
{
- Polygon aPoly;
+ tools::Polygon aPoly;
sal_Int32 nPolyCount;
rIStm.ReadInt32( nPolyCount );
@@ -94,7 +94,7 @@ void ImplWritePolyPolyAction( SvStream& rOStm, const tools::PolyPolygon& rPolyPo
// #i102224# Here the possible curved nature of Polygon was
// ignored (for all those years). Adapted to at least write
// a polygon representing the curve as good as possible
- Polygon aSimplePoly;
+ tools::Polygon aSimplePoly;
rPolyPoly[n].AdaptiveSubdivide(aSimplePoly);
const sal_uInt16 nSize(aSimplePoly.GetSize());
@@ -325,7 +325,7 @@ bool ImplWriteExtendedPolyPolygonAction(SvStream& rOStm, const tools::PolyPolygo
for(a = 0; a < nPolygonCount; a++)
{
- const Polygon& rCandidate = rPolyPolygon.GetObject(a);
+ const tools::Polygon& rCandidate = rPolyPolygon.GetObject(a);
const sal_uInt16 nPointCount(rCandidate.GetSize());
if(nPointCount)
@@ -357,7 +357,7 @@ bool ImplWriteExtendedPolyPolygonAction(SvStream& rOStm, const tools::PolyPolygo
for(a = 0; a < nPolygonCount; a++)
{
- const Polygon& rCandidate = rPolyPolygon.GetObject(a);
+ const tools::Polygon& rCandidate = rPolyPolygon.GetObject(a);
const sal_uInt16 nPointCount(rCandidate.GetSize());
if(nPointCount)
@@ -424,7 +424,7 @@ void ImplReadExtendedPolyPolygonAction(SvStream& rIStm, tools::PolyPolygon& rPol
nPointCount = nMaxPolygons;
}
- Polygon aCandidate(nPointCount);
+ tools::Polygon aCandidate(nPointCount);
if (nPointCount)
{
@@ -504,7 +504,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
// TODO: fix reindentation below if you can accept being blamed by the SCM
MapMode aMapMode;
- Polygon aActionPoly;
+ tools::Polygon aActionPoly;
Rectangle aRect;
Point aPt, aPt1;
Size aSz;
@@ -683,7 +683,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
if( bFatLine )
{
- const Polygon aPoly( aRect.Center(), aRect.GetWidth() >> 1, aRect.GetHeight() >> 1 );
+ const tools::Polygon aPoly( aRect.Center(), aRect.GetWidth() >> 1, aRect.GetHeight() >> 1 );
rMtf.AddAction( new MetaPushAction( PushFlags::LINECOLOR ) );
rMtf.AddAction( new MetaLineColorAction( COL_TRANSPARENT, false ) );
@@ -704,7 +704,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
if( bFatLine )
{
- const Polygon aPoly( aRect, aPt, aPt1, POLY_ARC );
+ const tools::Polygon aPoly( aRect, aPt, aPt1, POLY_ARC );
rMtf.AddAction( new MetaPushAction( PushFlags::LINECOLOR ) );
rMtf.AddAction( new MetaLineColorAction( COL_TRANSPARENT, false ) );
@@ -725,7 +725,7 @@ void SVMConverter::ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf )
if( bFatLine )
{
- const Polygon aPoly( aRect, aPt, aPt1, POLY_PIE );
+ const tools::Polygon aPoly( aRect, aPt, aPt1, POLY_PIE );
rMtf.AddAction( new MetaPushAction( PushFlags::LINECOLOR ) );
rMtf.AddAction( new MetaLineColorAction( COL_TRANSPARENT, false ) );
@@ -1578,8 +1578,8 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
case( MetaActionType::CHORD ):
{
const MetaChordAction* pAct = static_cast<const MetaChordAction*>(pAction);
- Polygon aChordPoly( pAct->GetRect(), pAct->GetStartPoint(),
- pAct->GetEndPoint(), POLY_CHORD );
+ tools::Polygon aChordPoly( pAct->GetRect(), pAct->GetStartPoint(),
+ pAct->GetEndPoint(), POLY_CHORD );
const sal_uInt16 nPoints = aChordPoly.GetSize();
rOStm.WriteInt16( GDI_POLYGON_ACTION );
@@ -1599,7 +1599,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
// #i102224# Here the possible curved nature of Polygon was
// ignored (for all those years). Adapted to at least write
// a polygon representing the curve as good as possible
- Polygon aSimplePoly;
+ tools::Polygon aSimplePoly;
pAct->GetPolygon().AdaptiveSubdivide(aSimplePoly);
const LineInfo& rInfo = pAct->GetLineInfo();
const sal_uInt16 nPoints(aSimplePoly.GetSize());
@@ -1685,7 +1685,7 @@ sal_uLong SVMConverter::ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
// #i102224# Here the possible curved nature of Polygon was
// ignored (for all those years). Adapted to at least write
// a polygon representing the curve as good as possible
- Polygon aSimplePoly;
+ tools::Polygon aSimplePoly;
pAct->GetPolygon().AdaptiveSubdivide(aSimplePoly);
const sal_uInt16 nPoints(aSimplePoly.GetSize());