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 /svx/source | |
parent | f1fdd98e32b6dc8758a2cd0982a503a9ad79b1a6 (diff) |
various unused methods
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/svdraw/svdtrans.cxx | 85 |
1 files changed, 0 insertions, 85 deletions
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); |