diff options
author | Kurt Zenker <kz@openoffice.org> | 2008-04-04 09:54:40 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2008-04-04 09:54:40 +0000 |
commit | 016c2ae43aa651ec4dfcc3244a5d9b3a8ecfaa17 (patch) | |
tree | feb9292c0587c44d3608e3659f6d4657f75f7ec3 /svx | |
parent | 4033bb16d14ed02e8c685e060e699303729fc157 (diff) |
INTEGRATION: CWS chart23 (1.31.288); FILE MERGED
2008/02/29 10:33:54 iha 1.31.288.1: #i26488# disable sizing controls for Title and Legend as long as those functions are not available
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/transfrm.cxx | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/svx/source/dialog/transfrm.cxx b/svx/source/dialog/transfrm.cxx index a1194b9f0d7e..4da5d60e4ed3 100644 --- a/svx/source/dialog/transfrm.cxx +++ b/svx/source/dialog/transfrm.cxx @@ -4,9 +4,9 @@ * * $RCSfile: transfrm.cxx,v $ * - * $Revision: 1.31 $ + * $Revision: 1.32 $ * - * last change: $Author: obo $ $Date: 2007-07-18 10:53:04 $ + * last change: $Author: kz $ $Date: 2008-04-04 10:54:40 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -780,7 +780,8 @@ SvxPositionSizeTabPage::SvxPositionSizeTabPage( Window* pParent, const SfxItemSe mnProtectSizeState( STATE_NOCHECK ), mbPageDisabled ( FALSE ), mbProtectDisabled( false ), - mbSizeDisabled( false ) + mbSizeDisabled( false ), + mbAdjustDisabled( true ) { FreeResource(); @@ -878,6 +879,7 @@ void SvxPositionSizeTabPage::Construct() if((pObj->GetObjInventor() == SdrInventor) && (OBJ_TEXT == eKind || OBJ_TITLETEXT == eKind || OBJ_OUTLINETEXT == eKind) && ((SdrTextObj*)pObj)->HasText()) { + mbAdjustDisabled = false; maFlAdjust.Enable(); maTsbAutoGrowWidth.Enable(); maTsbAutoGrowHeight.Enable(); @@ -1227,6 +1229,10 @@ void SvxPositionSizeTabPage::UpdateControlStates() maFlProtect.Enable( !mbProtectDisabled ); maTsbSizeProtect.Enable( !mbProtectDisabled && !bPosProtect ); + maFlAdjust.Enable( !mbSizeDisabled && !bSizeProtect && !mbAdjustDisabled ); + maTsbAutoGrowWidth.Enable( !mbSizeDisabled && !bSizeProtect && !mbAdjustDisabled ); + maTsbAutoGrowHeight.Enable( !mbSizeDisabled && !bSizeProtect && !mbAdjustDisabled ); + maCtlSize.Invalidate(); maCtlPos.Invalidate(); |