To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=74358





------- Additional comments from [EMAIL PROTECTED] Mon Jun 18 12:49:16 +0000 
2007 -------
AW: First try: Change NbcShear to first apply shear and then apply rotate.

void SdrTextObj::NbcShear(const Point& rRef, long nWink, double tn, FASTBOOL
bVShear)
{
        // #i74358# remember rotation
        long nOldDrehWink(aGeo.nDrehWink);

        if(nOldDrehWink)
        {
                // #i74358# rotate back ix rotation exists. We want first to 
shear
                // and then to rotate, so while shearing, take back rotation
                const long nBackRotate(NormAngle360(-aGeo.nDrehWink));
                const double fBackSinCos(nBackRotate * nPi180);
                NbcRotate(rRef, nBackRotate, sin(fBackSinCos), 
cos(fBackSinCos));
        }

        SetGlueReallyAbsolute(TRUE);

        // #75889# when this is a SdrPathObj aRect maybe not initialized
        Polygon aPol(Rect2Poly(aRect.IsEmpty() ? GetSnapRect() : aRect, aGeo));
        
        USHORT nPointCount=aPol.GetSize();
        for (USHORT i=0; i<nPointCount; i++) {
                 ShearPoint(aPol[i],rRef,tn,bVShear);
        }
        Poly2Rect(aPol,aRect,aGeo);
        ImpJustifyRect(aRect);
        if (bTextFrame) {
                NbcAdjustTextFrameWidthAndHeight();
        }
        ImpCheckShear();
        SetRectsDirty();
        NbcShearGluePoints(rRef,nWink,tn,bVShear);
        SetGlueReallyAbsolute(FALSE);

        if(nOldDrehWink)
        {
                // #i74358# re-apply rotation after shear
                const double fResoreSinCos(nOldDrehWink * nPi180);
                NbcRotate(rRef, nOldDrehWink, sin(fResoreSinCos), 
cos(fResoreSinCos));
        }
}

AW: Does work with the dialog, but not with the interactive mode. Goal is to
apply the shear transformation to the already used rotate. Since DrawingLayer
model still does not use transformations, this happens using the very old
Rect2Poly/Poly2Rect methods for shear but not for rotate. Maybe rotate needs to
use those when shear is there...

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to