Kaydet (Commit) a0741faf authored tarafından Vladimir Glazounov's avatar Vladimir Glazounov

INTEGRATION: CWS sj15 (1.8.82); FILE MERGED

2005/02/04 19:35:08 sj 1.8.82.2: RESYNC: (1.8-1.9); FILE MERGED
2005/02/03 14:26:05 sj 1.8.82.1: #109646# textare of arc wrong if flipped
üst bd555745
...@@ -2,9 +2,9 @@ ...@@ -2,9 +2,9 @@
* *
* $RCSfile: EnhancedCustomShape2d.cxx,v $ * $RCSfile: EnhancedCustomShape2d.cxx,v $
* *
* $Revision: 1.9 $ * $Revision: 1.10 $
* *
* last change: $Author: rt $ $Date: 2005-01-27 16:16:16 $ * last change: $Author: vg $ $Date: 2005-02-21 16:17:11 $
* *
* The Contents of this file are made available subject to the terms of * The Contents of this file are made available subject to the terms of
* either of the following licenses * either of the following licenses
...@@ -1521,8 +1521,19 @@ Rectangle EnhancedCustomShape2d::GetTextRect() const ...@@ -1521,8 +1521,19 @@ Rectangle EnhancedCustomShape2d::GetTextRect() const
nIndex++; nIndex++;
Point aTopLeft( GetPoint( seqTextFrames[ nIndex ].TopLeft, sal_True, sal_True ) ); Point aTopLeft( GetPoint( seqTextFrames[ nIndex ].TopLeft, sal_True, sal_True ) );
Point aBottomRight( GetPoint( seqTextFrames[ nIndex ].BottomRight, sal_True, sal_True ) ); Point aBottomRight( GetPoint( seqTextFrames[ nIndex ].BottomRight, sal_True, sal_True ) );
if ( bFlipH )
{
aTopLeft.X() = aLogicRect.GetWidth() - aTopLeft.X();
aBottomRight.X() = aLogicRect.GetWidth() - aBottomRight.X();
}
if ( bFlipV )
{
aTopLeft.Y() = aLogicRect.GetHeight() - aTopLeft.Y();
aBottomRight.Y() = aLogicRect.GetHeight() - aBottomRight.Y();
}
Rectangle aRect( aTopLeft, aBottomRight ); Rectangle aRect( aTopLeft, aBottomRight );
aRect.Move( aLogicRect.Left(), aLogicRect.Top() ); aRect.Move( aLogicRect.Left(), aLogicRect.Top() );
aRect.Justify();
return aRect; return aRect;
} }
...@@ -2319,6 +2330,7 @@ SdrObject* EnhancedCustomShape2d::CreateObject( sal_Bool bLineGeometryNeededOnly ...@@ -2319,6 +2330,7 @@ SdrObject* EnhancedCustomShape2d::CreateObject( sal_Bool bLineGeometryNeededOnly
// pRet->SetModel( pCustomShapeObj->GetModel() ); // pRet->SetModel( pCustomShapeObj->GetModel() );
pRet->SetMergedItemSet( *this ); pRet->SetMergedItemSet( *this );
} }
/*
else if ( eSpType == mso_sptArc ) else if ( eSpType == mso_sptArc )
{ // the arc is something special, because sometimes the snaprect does not match { // the arc is something special, because sometimes the snaprect does not match
Rectangle aPolyBoundRect; Rectangle aPolyBoundRect;
...@@ -2428,6 +2440,7 @@ SdrObject* EnhancedCustomShape2d::CreateObject( sal_Bool bLineGeometryNeededOnly ...@@ -2428,6 +2440,7 @@ SdrObject* EnhancedCustomShape2d::CreateObject( sal_Bool bLineGeometryNeededOnly
((SdrObjGroup*)pRet)->GetSubList()->NbcInsertObject( pObjCirc ); ((SdrObjGroup*)pRet)->GetSubList()->NbcInsertObject( pObjCirc );
} }
} }
*/
if ( !pRet ) if ( !pRet )
pRet = CreatePathObj( bLineGeometryNeededOnly ); pRet = CreatePathObj( bLineGeometryNeededOnly );
......
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