diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2011-08-02 15:08:45 +0200 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2011-08-02 18:17:13 +0200 |
commit | 228d801ab1d5e1dd86b814703b2e25baf69ad07c (patch) | |
tree | 6aa1a8aaabf5ce52c57f55925ae3b89074d51694 /svx/source | |
parent | a1775d69e8cccb827331c1984313d2d26ddadadb (diff) |
callcatcher: remove unused methods
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/svdraw/svdoedge.cxx | 6 | ||||
-rw-r--r-- | svx/source/xoutdev/_xpoly.cxx | 264 |
2 files changed, 0 insertions, 270 deletions
diff --git a/svx/source/svdraw/svdoedge.cxx b/svx/source/svdraw/svdoedge.cxx index fd63fc633599..e10b5f986c96 100644 --- a/svx/source/svdraw/svdoedge.cxx +++ b/svx/source/svdraw/svdoedge.cxx @@ -629,12 +629,6 @@ sal_uInt16 SdrEdgeObj::ImpCalcEscAngle(SdrObject* pObj, const Point& rPt) const } } -bool SdrEdgeObj::ImpStripPolyPoints(XPolygon& /*rXP*/) const -{ - // fehlende Implementation !!! - return sal_False; -} - XPolygon SdrEdgeObj::ImpCalcObjToCenter(const Point& rStPt, long nEscAngle, const Rectangle& rRect, const Point& rMeeting) const { XPolygon aXP; diff --git a/svx/source/xoutdev/_xpoly.cxx b/svx/source/xoutdev/_xpoly.cxx index c7d1b6a210f0..661a285ba267 100644 --- a/svx/source/xoutdev/_xpoly.cxx +++ b/svx/source/xoutdev/_xpoly.cxx @@ -446,30 +446,6 @@ void XPolygon::CheckReference() /************************************************************************* |* -|* XPolygon::SetSize() -|* -*************************************************************************/ - -void XPolygon::SetSize( sal_uInt16 nNewSize ) -{ - CheckReference(); - pImpXPolygon->Resize( nNewSize ); -} - -/************************************************************************* -|* -|* XPolygon::GetSize() -|* -*************************************************************************/ - -sal_uInt16 XPolygon::GetSize() const -{ - pImpXPolygon->CheckPointDelete(); - return pImpXPolygon->nSize; -} - -/************************************************************************* -|* |* XPolygon::SetPointCount() |* *************************************************************************/ @@ -543,28 +519,6 @@ void XPolygon::Insert( sal_uInt16 nPos, const XPolygon& rXPoly ) /************************************************************************* |* -|* XPolygon::Insert() -|* -*************************************************************************/ - -void XPolygon::Insert( sal_uInt16 nPos, const Polygon& rPoly ) -{ - CheckReference(); - if (nPos>pImpXPolygon->nPoints) nPos=pImpXPolygon->nPoints; - - sal_uInt16 nPoints = rPoly.GetSize(); - - pImpXPolygon->InsertSpace( nPos, nPoints ); - - sal_uInt16 i; - for( i=0; i < nPoints; i++ ) - pImpXPolygon->pPointAry[i] = rPoly[i]; - - // Die Flags sind durch das InsertSpace bereits auf 0 gesetzt -} - -/************************************************************************* -|* |* XPolygon::Remove() |* *************************************************************************/ @@ -1073,25 +1027,6 @@ void XPolygon::PointsToBezier(sal_uInt16 nFirst) /************************************************************************* |* -|* XPolygon::Translate() -|* -|* Polygon auf den uebergebenen Punkt verschieben -|* -*************************************************************************/ - -void XPolygon::Translate(const Point& rTrans) -{ - pImpXPolygon->CheckPointDelete(); - CheckReference(); - - sal_uInt16 nPntCnt = pImpXPolygon->nPoints; - - for (sal_uInt16 i = 0; i < nPntCnt; i++) - pImpXPolygon->pPointAry[i] += rTrans; -} - -/************************************************************************* -|* |* XPolygon::Rotate() |* |* Alle Punkte um den Punkt rCenter drehen, Sinus und Cosinus @@ -1141,28 +1076,6 @@ void XPolygon::Rotate(const Point& rCenter, double fSin, double fCos) /************************************************************************* |* -|* XPolygon::Rotate() -|* -|* Alle Punkte um den Punkt rCenter mit dem Winkel nAngle drehen -|* Winkel in 10tel Grad, Wertebereich 0 - 3600 -|* -*************************************************************************/ - -void XPolygon::Rotate(const Point& rCenter, sal_uInt16 nAngle) -{ - nAngle %= 3600; - - if ( nAngle != 0 ) - { - double fAngle = F_PI * nAngle / 1800; - double fSin = sin(fAngle); - double fCos = cos(fAngle); - Rotate(rCenter, fSin, fCos); - } -} - -/************************************************************************* -|* |* XPolygon::Scale() |* |* XPolygon in X- und/oder Y-Richtung skalieren @@ -1437,20 +1350,6 @@ XPolyPolygon::XPolyPolygon( sal_uInt16 /*nInitSize*/, sal_uInt16 /*nResize*/ ) pImpXPolyPolygon = new ImpXPolyPolygon(); } - -/************************************************************************* -|* -|* XPolyPolygon::XPolyPolygon() -|* -*************************************************************************/ - -XPolyPolygon::XPolyPolygon( const XPolygon& rXPoly ) -{ - DBG_CTOR(XPolyPolygon,NULL); - pImpXPolyPolygon = new ImpXPolyPolygon(); - pImpXPolyPolygon->aXPolyList.push_back( new XPolygon( rXPoly ) ); -} - /************************************************************************* |* |* XPolyPolygon::XPolyPolygon() @@ -1466,24 +1365,6 @@ XPolyPolygon::XPolyPolygon( const XPolyPolygon& rXPolyPoly ) /************************************************************************* |* -|* XPolyPolygon::XPolyPolygon() -|* -|* XPolyPolygon aus einen Standard-PolyPolygon erzeugen -|* -*************************************************************************/ - -XPolyPolygon::XPolyPolygon( const PolyPolygon& rPolyPoly ) -{ - DBG_CTOR(XPolyPolygon,NULL); - pImpXPolyPolygon = new ImpXPolyPolygon; - - for (sal_uInt16 i = 0; i < rPolyPoly.Count(); i++) - pImpXPolyPolygon->aXPolyList.push_back( - new XPolygon(rPolyPoly.GetObject(i)) ); -} - -/************************************************************************* -|* |* XPolyPolygon::~XPolyPolygon() |* *************************************************************************/ @@ -1583,24 +1464,6 @@ XPolygon XPolyPolygon::Remove( sal_uInt16 nPos ) /************************************************************************* |* -|* XPolyPolygon::Replace() -|* -*************************************************************************/ - -XPolygon XPolyPolygon::Replace( const XPolygon& rXPoly, sal_uInt16 nPos ) -{ - CheckReference(); - XPolygon* pXPoly = new XPolygon( rXPoly ); - XPolygon* pTmpXPoly = pImpXPolyPolygon->aXPolyList[ nPos ]; - pImpXPolyPolygon->aXPolyList[ nPos ] = pXPoly; - XPolygon aXPoly( *pTmpXPoly ); - delete pTmpXPoly; - return aXPoly; -} - - -/************************************************************************* -|* |* XPolyPolygon::GetObject() |* *************************************************************************/ @@ -1644,30 +1507,6 @@ sal_uInt16 XPolyPolygon::Count() const return (sal_uInt16)(pImpXPolyPolygon->aXPolyList.size()); } - -/************************************************************************* -|* -|* XPolyPolygon::Move() -|* -*************************************************************************/ - -void XPolyPolygon::Move( long nHorzMove, long nVertMove ) -{ - // Diese Abfrage sollte man fuer die DrawEngine durchfuehren - if ( !nHorzMove && !nVertMove ) - return; - - // Referenzcounter beruecksichtigen - CheckReference(); - - // Punkte verschieben - for ( size_t i = 0, n = pImpXPolyPolygon->aXPolyList.size(); i < n; ++i ) - { - XPolygon* pXPoly = pImpXPolyPolygon->aXPolyList[ i ]; - pXPoly->Move( nHorzMove, nVertMove ); - } -} - /************************************************************************* |* |* XPolyPolygon::GetBoundRect() @@ -1748,22 +1587,6 @@ sal_Bool XPolyPolygon::operator!=( const XPolyPolygon& rXPolyPoly ) const /************************************************************************* |* -|* XPolyPolygon::Translate() -|* -|* Alle Polygone auf den uebergebenen Punkt verschieben -|* -*************************************************************************/ - -void XPolyPolygon::Translate(const Point& rTrans) -{ - CheckReference(); - - for (size_t i = 0; i < Count(); i++) - pImpXPolyPolygon->aXPolyList[ i ]->Translate(rTrans); -} - -/************************************************************************* -|* |* XPolyPolygon::Rotate() |* |* Alle Polygone um den Punkt rCenter drehen, Sinus und Cosinus @@ -1781,93 +1604,6 @@ void XPolyPolygon::Rotate(const Point& rCenter, double fSin, double fCos) /************************************************************************* |* -|* Bestimme den linken, unteren Punkt des Polygons und richte das -|* Polygon so aus, dass dieser Punkt auf dem Index 0 liegt -|* -\************************************************************************/ - -void XPolyPolygon::Rotate20() -{ - CheckReference(); - - for (size_t i = 0; i < Count(); i++) - pImpXPolyPolygon->aXPolyList[ i ]->Rotate20(); -} - -/************************************************************************* -|* -|* XPolyPolygon::Rotate() -|* -|* Alle Poylgone um den Punkt rCenter mit dem Winkel nAngle drehen -|* Winkel in 10tel Grad, Wertebereich 0 - 3600 -|* -*************************************************************************/ - -void XPolyPolygon::Rotate(const Point& rCenter, sal_uInt16 nAngle) -{ - nAngle %= 3600; - - if ( nAngle != 0 ) - { - double fAngle = F_PI * nAngle / 1800; - double fSin = sin(fAngle); - double fCos = cos(fAngle); - Rotate(rCenter, fSin, fCos); - } -} - -/************************************************************************* -|* -|* XPolyPolygon::Scale() -|* -|* Alle Polygone in X- und/oder Y-Richtung skalieren -|* -*************************************************************************/ - -void XPolyPolygon::Scale(double fSx, double fSy) -{ - CheckReference(); - - for (size_t i = 0; i < Count(); i++) - pImpXPolyPolygon->aXPolyList[ i ]->Scale(fSx, fSy); -} - -/************************************************************************* -|* -|* XPolyPolygon::SlantX() -|* -|* Alle Polygone in X-Richtung um einen beliebigen Winkel kippen, -|* bezogen auf eine Referenz-Y-Koordinate -|* -*************************************************************************/ - -void XPolyPolygon::SlantX(long nYRef, double fSin, double fCos) -{ - CheckReference(); - - for (size_t i = 0; i < Count(); i++) - pImpXPolyPolygon->aXPolyList[ i ]->SlantX(nYRef, fSin, fCos); -} - -/************************************************************************* -|* -|* XPolyPolygon::SlantY() -|* -|* Alle Polygone in Y-Richtung um einen beliebigen Winkel kippen, -|* bezogen auf eine Referenz-X-Koordinate -|* -*************************************************************************/ - -void XPolyPolygon::SlantY(long nXRef, double fSin, double fCos) -{ - CheckReference(); - - for (size_t i = 0; i < Count(); i++) - pImpXPolyPolygon->aXPolyList[ i ]->SlantY(nXRef, fSin, fCos); -} - -/************************************************************************* -|* |* XPolygon::Distort() |* |* XPolygon verzerren, indem die Koordinaten relativ zu einem |