diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-10 22:38:57 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-11 09:04:35 +0100 |
commit | 41df2005d23d0304ddec397a287c25d2cf245fe2 (patch) | |
tree | a707a10884318c5807b7d7d51212ad9eac2b13a1 | |
parent | f1fdd98e32b6dc8758a2cd0982a503a9ad79b1a6 (diff) |
various unused methods
-rw-r--r-- | svx/inc/svx/svdtrans.hxx | 11 | ||||
-rw-r--r-- | svx/source/svdraw/svdtrans.cxx | 85 |
2 files changed, 0 insertions, 96 deletions
diff --git a/svx/inc/svx/svdtrans.hxx b/svx/inc/svx/svdtrans.hxx index e740b71c4be5..9855404040e0 100644 --- a/svx/inc/svx/svdtrans.hxx +++ b/svx/inc/svx/svdtrans.hxx @@ -65,29 +65,20 @@ inline void MovePoint(Point& rPnt, const Size& S) { rPnt.X()+=S.Width(); inline void MovePoly(Polygon& rPoly, const Size& S) { rPoly.Move(S.Width(),S.Height()); } inline void MovePoly(PolyPolygon& rPoly, const Size& S) { rPoly.Move(S.Width(),S.Height()); } void MoveXPoly(XPolygon& rPoly, const Size& S); -void MoveXPoly(XPolyPolygon& rPoly, const Size& S); SVX_DLLPUBLIC void ResizeRect(Rectangle& rRect, const Point& rRef, const Fraction& xFact, const Fraction& yFact, bool bNoJustify = false); inline void ResizePoint(Point& rPnt, const Point& rRef, Fraction xFact, Fraction yFact); void ResizePoly(Polygon& rPoly, const Point& rRef, const Fraction& xFact, const Fraction& yFact); void ResizeXPoly(XPolygon& rPoly, const Point& rRef, const Fraction& xFact, const Fraction& yFact); -void ResizePoly(PolyPolygon& rPoly, const Point& rRef, const Fraction& xFact, const Fraction& yFact); -void ResizeXPoly(XPolyPolygon& rPoly, const Point& rRef, const Fraction& xFact, const Fraction& yFact); inline void RotatePoint(Point& rPnt, const Point& rRef, double sn, double cs); SVX_DLLPUBLIC void RotatePoly(Polygon& rPoly, const Point& rRef, double sn, double cs); void RotateXPoly(XPolygon& rPoly, const Point& rRef, double sn, double cs); -void RotatePoly(PolyPolygon& rPoly, const Point& rRef, double sn, double cs); void RotateXPoly(XPolyPolygon& rPoly, const Point& rRef, double sn, double cs); -// MirrorRect macht nur Sinn bei Spiegelachsen -// mit einem durch 45 Degree teilbaren Winkel! -void MirrorRect(Rectangle& rRect, const Point& rRef1, const Point& rRef2, bool bNoJustify); // ni. void MirrorPoint(Point& rPnt, const Point& rRef1, const Point& rRef2); void MirrorPoly(Polygon& rPoly, const Point& rRef1, const Point& rRef2); void MirrorXPoly(XPolygon& rPoly, const Point& rRef1, const Point& rRef2); -void MirrorPoly(PolyPolygon& rPoly, const Point& rRef1, const Point& rRef2); -void MirrorXPoly(XPolyPolygon& rPoly, const Point& rRef1, const Point& rRef2); inline void ShearPoint(Point& rPnt, const Point& rRef, double tn, bool bVShear = false); SVX_DLLPUBLIC void ShearPoly(Polygon& rPoly, const Point& rRef, double tn, bool bVShear = false); @@ -264,8 +255,6 @@ public: // Fuer die Umrechnung von Masseinheiten SVX_DLLPUBLIC FrPair GetMapFactor(MapUnit eS, MapUnit eD); -FrPair GetMapFactor(MapUnit eS, FieldUnit eD); -FrPair GetMapFactor(FieldUnit eS, MapUnit eD); FrPair GetMapFactor(FieldUnit eS, FieldUnit eD); inline bool IsMetric(MapUnit eU) { diff --git a/svx/source/svdraw/svdtrans.cxx b/svx/source/svdraw/svdtrans.cxx index 22445841eb1e..d8bed549f058 100644 --- a/svx/source/svdraw/svdtrans.cxx +++ b/svx/source/svdraw/svdtrans.cxx @@ -38,20 +38,11 @@ #include <tools/debug.hxx> #include <unotools/syslocale.hxx> -//////////////////////////////////////////////////////////////////////////////////////////////////// - void MoveXPoly(XPolygon& rPoly, const Size& S) { rPoly.Move(S.Width(),S.Height()); } -void MoveXPoly(XPolyPolygon& rPoly, const Size& S) -{ - rPoly.Move(S.Width(),S.Height()); -} - -//////////////////////////////////////////////////////////////////////////////////////////////////// - void ResizeRect(Rectangle& rRect, const Point& rRef, const Fraction& rxFact, const Fraction& ryFact, bool bNoJustify) { Fraction xFact(rxFact); @@ -107,24 +98,6 @@ void ResizeXPoly(XPolygon& rPoly, const Point& rRef, const Fraction& xFact, cons } } -void ResizePoly(PolyPolygon& rPoly, const Point& rRef, const Fraction& xFact, const Fraction& yFact) -{ - sal_uInt16 nAnz=rPoly.Count(); - for (sal_uInt16 i=0; i<nAnz; i++) { - ResizePoly(rPoly[i],rRef,xFact,yFact); - } -} - -void ResizeXPoly(XPolyPolygon& rPoly, const Point& rRef, const Fraction& xFact, const Fraction& yFact) -{ - sal_uInt16 nAnz=rPoly.Count(); - for (sal_uInt16 i=0; i<nAnz; i++) { - ResizeXPoly(rPoly[i],rRef,xFact,yFact); - } -} - -//////////////////////////////////////////////////////////////////////////////////////////////////// - void RotatePoly(Polygon& rPoly, const Point& rRef, double sn, double cs) { sal_uInt16 nAnz=rPoly.GetSize(); @@ -141,14 +114,6 @@ void RotateXPoly(XPolygon& rPoly, const Point& rRef, double sn, double cs) } } -void RotatePoly(PolyPolygon& rPoly, const Point& rRef, double sn, double cs) -{ - sal_uInt16 nAnz=rPoly.Count(); - for (sal_uInt16 i=0; i<nAnz; i++) { - RotatePoly(rPoly[i],rRef,sn,cs); - } -} - void RotateXPoly(XPolyPolygon& rPoly, const Point& rRef, double sn, double cs) { sal_uInt16 nAnz=rPoly.Count(); @@ -157,14 +122,6 @@ void RotateXPoly(XPolyPolygon& rPoly, const Point& rRef, double sn, double cs) } } -//////////////////////////////////////////////////////////////////////////////////////////////////// - -void MirrorRect(Rectangle& rRect, const Point& /*rRef1*/, const Point& /*rRef2*/, bool bNoJustify) -{ - // !!! fehlende Implementation !!! - if (!bNoJustify) rRect.Justify(); -} - void MirrorPoint(Point& rPnt, const Point& rRef1, const Point& rRef2) { long mx=rRef2.X()-rRef1.X(); @@ -216,24 +173,6 @@ void MirrorXPoly(XPolygon& rPoly, const Point& rRef1, const Point& rRef2) } } -void MirrorPoly(PolyPolygon& rPoly, const Point& rRef1, const Point& rRef2) -{ - sal_uInt16 nAnz=rPoly.Count(); - for (sal_uInt16 i=0; i<nAnz; i++) { - MirrorPoly(rPoly[i],rRef1,rRef2); - } -} - -void MirrorXPoly(XPolyPolygon& rPoly, const Point& rRef1, const Point& rRef2) -{ - sal_uInt16 nAnz=rPoly.Count(); - for (sal_uInt16 i=0; i<nAnz; i++) { - MirrorXPoly(rPoly[i],rRef1,rRef2); - } -} - -//////////////////////////////////////////////////////////////////////////////////////////////////// - void ShearPoly(Polygon& rPoly, const Point& rRef, double tn, bool bVShear) { sal_uInt16 nAnz=rPoly.GetSize(); @@ -772,30 +711,6 @@ FrPair GetMapFactor(MapUnit eS, MapUnit eD) return aRet; }; -FrPair GetMapFactor(MapUnit eS, FieldUnit eD) -{ - FrPair aS(GetInchOrMM(eS)); - FrPair aD(GetInchOrMM(eD)); - bool bSInch=IsInch(eS); - bool bDInch=IsInch(eD); - FrPair aRet(aD.X()/aS.X(),aD.Y()/aS.Y()); - if (bSInch && !bDInch) { aRet.X()*=Fraction(127,5); aRet.Y()*=Fraction(127,5); } - if (!bSInch && bDInch) { aRet.X()*=Fraction(5,127); aRet.Y()*=Fraction(5,127); } - return aRet; -}; - -FrPair GetMapFactor(FieldUnit eS, MapUnit eD) -{ - FrPair aS(GetInchOrMM(eS)); - FrPair aD(GetInchOrMM(eD)); - bool bSInch=IsInch(eS); - bool bDInch=IsInch(eD); - FrPair aRet(aD.X()/aS.X(),aD.Y()/aS.Y()); - if (bSInch && !bDInch) { aRet.X()*=Fraction(127,5); aRet.Y()*=Fraction(127,5); } - if (!bSInch && bDInch) { aRet.X()*=Fraction(5,127); aRet.Y()*=Fraction(5,127); } - return aRet; -}; - FrPair GetMapFactor(FieldUnit eS, FieldUnit eD) { if (eS==eD) return FrPair(1,1,1,1); |