diff options
author | Dieter Loeschky <dl@openoffice.org> | 2000-10-20 13:19:56 +0000 |
---|---|---|
committer | Dieter Loeschky <dl@openoffice.org> | 2000-10-20 13:19:56 +0000 |
commit | 9c295868a9e19e395d4c10a193d1adc02f2660dd (patch) | |
tree | 0175375338546df63dd1a6d593c8fe27a0cd31ba /sd/source/ui/func/fuconrec.cxx | |
parent | 4d2f552e278f539145a14ab4881731af82dddaf0 (diff) |
#79201# SetAttributes(): text of callouts now centered
Diffstat (limited to 'sd/source/ui/func/fuconrec.cxx')
-rw-r--r-- | sd/source/ui/func/fuconrec.cxx | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/sd/source/ui/func/fuconrec.cxx b/sd/source/ui/func/fuconrec.cxx index 82f68056bc31..91db836134b5 100644 --- a/sd/source/ui/func/fuconrec.cxx +++ b/sd/source/ui/func/fuconrec.cxx @@ -2,9 +2,9 @@ * * $RCSfile: fuconrec.cxx,v $ * - * $Revision: 1.1.1.1 $ + * $Revision: 1.2 $ * - * last change: $Author: hr $ $Date: 2000-09-18 16:48:35 $ + * last change: $Author: dl $ $Date: 2000-10-20 14:19:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -117,6 +117,13 @@ #ifndef _SFXREQUEST_HXX //autogen #include <sfx2/request.hxx> #endif +#ifndef _EEITEMID_HXX +#include <svx/eeitemid.hxx> +#endif +#ifndef _SVX_ADJITEM_HXX +#include <svx/adjitem.hxx> +#endif + #include "viewshel.hxx" #include "sdresid.hxx" @@ -563,14 +570,12 @@ void FuConstRectangle::SetAttributes(SfxItemSet& rAttr, SdrObject* pObj) * Legendenobjekt **********************************************************************/ Size aSize(pObj->GetLogicRect().GetSize()); - SdrTextMinFrameHeightItem aMinHeight(aSize.Height()); - rAttr.Put(aMinHeight); - SdrTextMinFrameWidthItem aMinWidth(aSize.Width()); - rAttr.Put(aMinWidth); - SdrTextAutoGrowHeightItem aAutoGrowHeight(TRUE); - rAttr.Put(aAutoGrowHeight); - SdrTextAutoGrowWidthItem aAutoGrowWidth(TRUE); - rAttr.Put(aAutoGrowWidth); + rAttr.Put( SdrTextMinFrameHeightItem( aSize.Height() ) ); + rAttr.Put( SdrTextMinFrameWidthItem( aSize.Width() ) ); + rAttr.Put( SdrTextAutoGrowHeightItem( TRUE ) ); + rAttr.Put( SdrTextAutoGrowWidthItem( TRUE ) ); + rAttr.Put( SdrTextHorzAdjustItem( SDRTEXTHORZADJUST_BLOCK ) ); + rAttr.Put( SvxAdjustItem( SVX_ADJUST_CENTER ) ); } else if (nSlotId == SID_DRAW_MEASURELINE) { |