diff options
author | David Tardon <dtardon@redhat.com> | 2011-01-10 09:10:44 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2011-01-10 09:10:44 +0100 |
commit | 4cdcf19d7c2712d2eaa6efc440e22dc2fed4d419 (patch) | |
tree | 361ca699f88057450b3b4b8d895eb56824d2026d /sw/source/ui/shells/txtattr.cxx | |
parent | 734a248a18c16f012ad614628ec9a6c014b6d74a (diff) |
remove all mentions of cfront. Oh, my!
Diffstat (limited to 'sw/source/ui/shells/txtattr.cxx')
-rw-r--r-- | sw/source/ui/shells/txtattr.cxx | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/sw/source/ui/shells/txtattr.cxx b/sw/source/ui/shells/txtattr.cxx index 6548259a2b44..eca1f9f298d4 100644 --- a/sw/source/ui/shells/txtattr.cxx +++ b/sw/source/ui/shells/txtattr.cxx @@ -285,67 +285,6 @@ void SwTextShell::ExecCharAttrArgs(SfxRequest &rReq) } } - - -#ifdef CFRONT - -void lcl_SetAdjust(SvxAdjust eAdjst, SfxItemSet& rSet) -{ - rSet.Put(SvxAdjustItem(eAdjst,RES_PARATR_ADJUST )); -} - - - -void lcl_SetLineSpace(BYTE ePropL,SfxItemSet& rSet) -{ - SvxLineSpacingItem aLineSpacing(ePropL, RES_PARATR_LINESPACING ); - aLineSpacing.GetLineSpaceRule() = SVX_LINE_SPACE_AUTO; - if( 100 == ePropL ) - aLineSpacing.GetInterLineSpaceRule() = SVX_INTER_LINE_SPACE_OFF; - else - aLineSpacing.SetPropLineSpace(ePropL); - rSet.Put( aLineSpacing ); -} - - - -void SwTextShell::ExecParaAttr(SfxRequest &rReq) -{ - // gleiche beide Attribute holen, ist nicht teuerer !! - SfxItemSet aSet( GetPool(), RES_PARATR_LINESPACING, RES_PARATR_ADJUST ); - - switch (rReq.GetSlot()) - { - case FN_SET_LEFT_PARA: lcl_SetAdjust(ADJLEFT,aSet); break; - case FN_SET_RIGHT_PARA: lcl_SetAdjust(ADJRIGHT,aSet); break; - case FN_SET_CENTER_PARA: lcl_SetAdjust(ADJCENTER,aSet); break; - case SID_ATTR_PARA_ADJUST_BLOCK:lcl_SetAdjust(ADJBLOCK,aSet); break; - - case FN_SET_LINE_SPACE_1: lcl_SetLineSpace(100,aSet); break; - case FN_SET_LINE_SPACE_15: lcl_SetLineSpace(150,aSet); break; - case FN_SET_LINE_SPACE_2: lcl_SetLineSpace(200,aSet); break; - - default: - OSL_ENSURE(false, "SwTextShell::ExecParaAttr wrong Dispatcher"); - return; - } - SwWrtShell& rWrtSh = GetShell(); - SwTxtFmtColl* pColl = rWrtSh.GetCurTxtFmtColl(); - if(pColl && pColl->IsAutoUpdateFmt()) - { - rWrtSh.AutoUpdatePara(pColl, *pSet); - } - else - { - rWrtSh.SetAttr( aSet ); - rReq.Done( aSet ); - } -} - -#else - - - void SwTextShell::ExecParaAttr(SfxRequest &rReq) { SvxAdjust eAdjst; @@ -496,10 +435,6 @@ SET_LINESPACE: rReq.Done(); } -#endif - - - void SwTextShell::ExecParaAttrArgs(SfxRequest &rReq) { SwWrtShell &rSh = GetShell(); |