Kaydet (Commit) 3e661396 authored tarafından Caolán McNamara's avatar Caolán McNamara

callcatcher: remove unused methods

üst 135a208b
......@@ -315,8 +315,6 @@ protected:
SdrTextObj(SdrObjKind eNewTextKind);
SdrTextObj(SdrObjKind eNewTextKind, const Rectangle& rNewRect);
// der sal_uInt16 eFormat nimmt Werte des enum EETextFormat entgegen
SdrTextObj(SdrObjKind eNewTextKind, const Rectangle& rNewRect, SvStream& rInput, const String& rBaseURL, sal_uInt16 eFormat);
virtual ~SdrTextObj();
public:
......
......@@ -122,7 +122,6 @@ public:
// Transformationen
void Translate(const Point& rTrans);
void Rotate(const Point& rCenter, double fSin, double fCos);
void Scale(double fSx, double fSy);
void Distort(const Rectangle& rRefRect, const XPolygon& rDistortedRect);
......
......@@ -198,34 +198,6 @@ SdrTextObj::SdrTextObj(SdrObjKind eNewTextKind, const Rectangle& rNewRect)
mbSupportTextIndentingOnLineWidthChange = sal_True;
}
SdrTextObj::SdrTextObj(SdrObjKind eNewTextKind, const Rectangle& rNewRect, SvStream& rInput, const String& rBaseURL, sal_uInt16 eFormat)
: SdrAttrObj(),
aRect(rNewRect),
mpText(NULL),
pEdtOutl(NULL),
pFormTextBoundRect(NULL),
eTextKind(eNewTextKind)
{
bTextSizeDirty=sal_False;
bTextFrame=sal_True;
bNoShear=sal_True;
bNoRotate=sal_False;
bNoMirror=sal_True;
bDisableAutoWidthOnDragging=sal_False;
ImpJustifyRect(aRect);
NbcSetText(rInput, rBaseURL, eFormat);
mbInEditMode = sal_False;
mbTextHidden = sal_False;
mbTextAnimationAllowed = sal_True;
mbInDownScale = sal_False;
maTextEditOffset = Point(0, 0);
// #i25616#
mbSupportTextIndentingOnLineWidthChange = sal_True;
}
SdrTextObj::~SdrTextObj()
{
if( pModel )
......
......@@ -1002,55 +1002,6 @@ void XPolygon::PointsToBezier(sal_uInt16 nFirst)
SetFlags(nFirst+2, XPOLY_CONTROL);
}
/*************************************************************************
|*
|* XPolygon::Rotate()
|*
|* Alle Punkte um den Punkt rCenter drehen, Sinus und Cosinus
|* muessen uebergeben werden
|*
*************************************************************************/
void XPolygon::Rotate(const Point& rCenter, double fSin, double fCos)
{
pImpXPolygon->CheckPointDelete();
CheckReference();
long nX;
long nY;
long nNewX;
long nNewY;
long nCenterX = rCenter.X();
long nCenterY = rCenter.Y();
sal_uInt16 nPntCnt = pImpXPolygon->nPoints;
for (sal_uInt16 i = 0; i < nPntCnt; i++)
{
Point *pPt = &(pImpXPolygon->pPointAry[i]);
nX = pPt->X()-nCenterX;
nY = pPt->Y()-nCenterY;
nNewX = (long)floor(fCos * nX + fSin * nY + 0.5);
nNewY = -(long)floor(fSin * nX - fCos * nY + 0.5);
pPt->X() = nNewX + nCenterX;
pPt->Y() = nNewY + nCenterY;
/* und so stand das in einem anderen File auf T:
dass ich am 29-11-1995 gegettet habe. Joe M.
sal_uInt16 nPntCnt = pImpXPolygon->nPoints;
for (sal_uInt16 i = 0; i < nPntCnt; i++)
{
Point P = pImpXPolygon->pPointAry[i] - rCenter;
long X = P.X();
long Y = P.Y();
P.X() = (long)floor(fCos * X + fSin * Y + 0.5);
P.Y() = -(long)floor(fSin * X - fCos * Y + 0.5);
pImpXPolygon->pPointAry[i] = P + rCenter;
*/
}
}
/*************************************************************************
|*
|* XPolygon::Scale()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment