Kaydet (Commit) aeccdbca authored tarafından Oliver Bolte's avatar Oliver Bolte

INTEGRATION: CWS impress98 (1.10.286); FILE MERGED

2006/06/26 15:51:23 sj 1.10.286.2: #i66688# added missing headerfile
2006/06/26 15:12:23 sj 1.10.286.1: #i66688# improved load performance
üst 9fae1942
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* *
* $RCSfile: EnhancedCustomShapeEngine.cxx,v $ * $RCSfile: EnhancedCustomShapeEngine.cxx,v $
* *
* $Revision: 1.10 $ * $Revision: 1.11 $
* *
* last change: $Author: rt $ $Date: 2005-12-14 15:55:03 $ * last change: $Author: obo $ $Date: 2006-07-10 11:26:43 $
* *
* The Contents of this file are made available subject to * The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1. * the terms of GNU Lesser General Public License Version 2.1.
...@@ -88,6 +88,7 @@ ...@@ -88,6 +88,7 @@
#include "svdopath.hxx" #include "svdopath.hxx"
#endif #endif
#include "svdpage.hxx" #include "svdpage.hxx"
#include "svdmodel.hxx"
#ifndef _XOUTX_HXX #ifndef _XOUTX_HXX
#include "xoutx.hxx" #include "xoutx.hxx"
#endif #endif
...@@ -381,14 +382,17 @@ com::sun::star::awt::Rectangle SAL_CALL EnhancedCustomShapeEngine::getTextBounds ...@@ -381,14 +382,17 @@ com::sun::star::awt::Rectangle SAL_CALL EnhancedCustomShapeEngine::getTextBounds
{ {
com::sun::star::awt::Rectangle aTextRect; com::sun::star::awt::Rectangle aTextRect;
SdrObject* pSdrObjCustomShape( GetSdrObjectFromXShape( mxShape ) ); SdrObject* pSdrObjCustomShape( GetSdrObjectFromXShape( mxShape ) );
if ( pSdrObjCustomShape ) if ( pSdrObjCustomShape && pSdrObjCustomShape->GetModel() && !pSdrObjCustomShape->GetModel()->isLocked() )
{ {
EnhancedCustomShape2d aCustomShape2d( pSdrObjCustomShape ); if ( pSdrObjCustomShape )
Rectangle aRect( aCustomShape2d.GetTextRect() ); {
aTextRect.X = aRect.Left(); EnhancedCustomShape2d aCustomShape2d( pSdrObjCustomShape );
aTextRect.Y = aRect.Top(); Rectangle aRect( aCustomShape2d.GetTextRect() );
aTextRect.Width = aRect.GetWidth(); aTextRect.X = aRect.Left();
aTextRect.Height = aRect.GetHeight(); aTextRect.Y = aRect.Top();
aTextRect.Width = aRect.GetWidth();
aTextRect.Height = aRect.GetHeight();
}
} }
return aTextRect; return aTextRect;
} }
......
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