diff options
author | Kayo Hamid <revol.code@yahoo.com> | 2010-11-30 16:44:46 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2010-11-30 16:44:46 +0100 |
commit | 1f6aa8f2a8352cc5cc3ef8981afa278a9759c379 (patch) | |
tree | e04367b885eeeaec41c59e30c9f41670b5ac966e /sw/source/ui/shells/txtattr.cxx | |
parent | 276c2a21860c78ff370b2b6c2212dc46ec3d9080 (diff) |
clean code at writer
Diffstat (limited to 'sw/source/ui/shells/txtattr.cxx')
-rw-r--r-- | sw/source/ui/shells/txtattr.cxx | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sw/source/ui/shells/txtattr.cxx b/sw/source/ui/shells/txtattr.cxx index f5b8e7ae4d49..6548259a2b44 100644 --- a/sw/source/ui/shells/txtattr.cxx +++ b/sw/source/ui/shells/txtattr.cxx @@ -420,14 +420,7 @@ SET_LINESPACE: int eState = pArgs ? pArgs->GetItemState(nSlot) : SFX_ITEM_DISABLED; if (pArgs && SFX_ITEM_SET == eState) bSet = ((const SfxBoolItem&)pArgs->Get(nSlot)).GetValue(); -/* -// toggling of the slots not used anymore - - if(!bSet) - nSlot = SID_ATTR_PARA_LEFT_TO_RIGHT == nSlot ? - SID_ATTR_PARA_RIGHT_TO_LEFT : - SID_ATTR_PARA_LEFT_TO_RIGHT; -*/ + SfxItemSet aAdjustSet( GetPool(), RES_PARATR_ADJUST, RES_PARATR_ADJUST ); GetShell().GetCurAttr(aAdjustSet); @@ -437,7 +430,6 @@ SET_LINESPACE: { int eAdjust = (int)(( const SvxAdjustItem& ) aAdjustSet.Get(RES_PARATR_ADJUST)).GetAdjust(); -// bChgAdjust = SVX_ADJUST_CENTER != eAdjust && SVX_ADJUST_BLOCK != eAdjust; bChgAdjust = (SVX_ADJUST_LEFT == eAdjust && SID_ATTR_PARA_RIGHT_TO_LEFT == nSlot) || (SVX_ADJUST_RIGHT == eAdjust && SID_ATTR_PARA_LEFT_TO_RIGHT == nSlot); } |