summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSven Jacobi <sj@openoffice.org>2000-10-16 15:45:01 +0000
committerSven Jacobi <sj@openoffice.org>2000-10-16 15:45:01 +0000
commit22d663f21924039101853043b432d40ea582799b (patch)
tree2c4c4c92ed291280396b06081126317bb1a3d4ce
parent7bdb36787059fa6f6f9619edc1286dcae360f3c0 (diff)
#79396# added textrect flipping
-rw-r--r--svx/source/msfilter/msashape.cxx16
1 files changed, 13 insertions, 3 deletions
diff --git a/svx/source/msfilter/msashape.cxx b/svx/source/msfilter/msashape.cxx
index 8e2c5dd809f3..6be94804146b 100644
--- a/svx/source/msfilter/msashape.cxx
+++ b/svx/source/msfilter/msashape.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: msashape.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: sj $ $Date: 2000-10-10 15:35:19 $
+ * last change: $Author: sj $ $Date: 2000-10-16 16:45:01 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -3517,7 +3517,7 @@ SvxMSDffAutoShape::SvxMSDffAutoShape( const DffPropertyReader& rPropReader, SvSt
aBoundRect = Rectangle( Point( pBoundRect[ 0 ], pBoundRect[ 1 ] ), Point( pBoundRect[ 2 ], pBoundRect[ 3 ] ) );
else
{
- if ( pCalculationData )
+ if ( pCalculationData || pTextRectData )
aBoundRect = Rectangle( Point(), Size( 21600, 21600 ) );
else
aBoundRect = Rectangle( Point(), aSnapRect.GetSize() );
@@ -3836,6 +3836,16 @@ Rectangle SvxMSDffAutoShape::GetTextRect() const
Point aBottomRight( aAry[ 2 ], aAry[ 3 ] );
Rectangle aRect( aTopLeft, aBottomRight );
aRect.Move( aSnapRect.Left(), aSnapRect.Top() );
+ if ( bFlipH )
+ {
+ sal_Int32 nXDist = aSnapRect.Right() - aRect.Right();
+ aRect = Rectangle( Point( nXDist + aSnapRect.Left(), aRect.Top() ), aRect.GetSize() );
+ }
+ if ( bFlipV )
+ {
+ sal_Int32 nYDist = aSnapRect.Bottom() - aRect.Bottom();
+ aRect = Rectangle( Point( aRect.Left(), nYDist + aSnapRect.Top() ), aRect.GetSize() );
+ }
return aRect;
}