summaryrefslogtreecommitdiff
path: root/sc/source/ui/drawfunc/drtxtob.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2004-08-02 11:58:16 +0000
committerKurt Zenker <kz@openoffice.org>2004-08-02 11:58:16 +0000
commit9bdd7242057fc3ec923a831c6386823727b9a507 (patch)
treed3309be627e820a710eb89d324f3a9451f7b877c /sc/source/ui/drawfunc/drtxtob.cxx
parent063f51e2369b4a96b6ea48e39cf7618a65e80380 (diff)
INTEGRATION: CWS os35 (1.19.142); FILE MERGED
2004/07/13 15:06:20 dr 1.19.142.1: #i30271# new Calc Format menu
Diffstat (limited to 'sc/source/ui/drawfunc/drtxtob.cxx')
-rw-r--r--sc/source/ui/drawfunc/drtxtob.cxx13
1 files changed, 11 insertions, 2 deletions
diff --git a/sc/source/ui/drawfunc/drtxtob.cxx b/sc/source/ui/drawfunc/drtxtob.cxx
index 780f588056d9..8229ab9b22e8 100644
--- a/sc/source/ui/drawfunc/drtxtob.cxx
+++ b/sc/source/ui/drawfunc/drtxtob.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: drtxtob.cxx,v $
*
- * $Revision: 1.19 $
+ * $Revision: 1.20 $
*
- * last change: $Author: hr $ $Date: 2004-02-03 20:32:37 $
+ * last change: $Author: kz $ $Date: 2004-08-02 12:58:16 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -729,18 +729,22 @@ void __EXPORT ScDrawTextObjectBar::ExecuteAttr( SfxRequest &rReq )
break;
case SID_ALIGNLEFT:
+ case SID_ALIGN_ANY_LEFT:
aNewAttr.Put( SvxAdjustItem( SVX_ADJUST_LEFT, EE_PARA_JUST ) );
break;
case SID_ALIGNCENTERHOR:
+ case SID_ALIGN_ANY_HCENTER:
aNewAttr.Put( SvxAdjustItem( SVX_ADJUST_CENTER, EE_PARA_JUST ) );
break;
case SID_ALIGNRIGHT:
+ case SID_ALIGN_ANY_RIGHT:
aNewAttr.Put( SvxAdjustItem( SVX_ADJUST_RIGHT, EE_PARA_JUST ) );
break;
case SID_ALIGNBLOCK:
+ case SID_ALIGN_ANY_JUSTIFIED:
aNewAttr.Put( SvxAdjustItem( SVX_ADJUST_BLOCK, EE_PARA_JUST ) );
break;
@@ -902,6 +906,11 @@ void __EXPORT ScDrawTextObjectBar::GetAttrState( SfxItemSet& rDestSet )
rDestSet.Put( SfxBoolItem( SID_ALIGNBLOCK, TRUE ) );
break;
}
+ // pseudo slots for Format menu
+ rDestSet.Put( SfxBoolItem( SID_ALIGN_ANY_LEFT, eAdj == SVX_ADJUST_LEFT ) );
+ rDestSet.Put( SfxBoolItem( SID_ALIGN_ANY_HCENTER, eAdj == SVX_ADJUST_CENTER ) );
+ rDestSet.Put( SfxBoolItem( SID_ALIGN_ANY_RIGHT, eAdj == SVX_ADJUST_RIGHT ) );
+ rDestSet.Put( SfxBoolItem( SID_ALIGN_ANY_JUSTIFIED, eAdj == SVX_ADJUST_BLOCK ) );
// Zeilenabstand