diff options
author | Thomas Arnhold <thomas@arnhold.org> | 2012-02-22 00:10:04 +0100 |
---|---|---|
committer | Thomas Arnhold <thomas@arnhold.org> | 2012-02-22 00:52:32 +0100 |
commit | ef026f335902a278f8594d612826508277d81bff (patch) | |
tree | df455bffc4dac7380fbd5dde992ba83b7ecbe804 /svx/source/stbctrls/selctrl.cxx | |
parent | 178ce4295ba864b4dd5082eff7e3444d5cead6ca (diff) |
unusedcode.easy: remove some more
Diffstat (limited to 'svx/source/stbctrls/selctrl.cxx')
-rw-r--r-- | svx/source/stbctrls/selctrl.cxx | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/svx/source/stbctrls/selctrl.cxx b/svx/source/stbctrls/selctrl.cxx index c929d9da47f7..d0561d8d3570 100644 --- a/svx/source/stbctrls/selctrl.cxx +++ b/svx/source/stbctrls/selctrl.cxx @@ -129,24 +129,4 @@ void SvxSelectionModeControl::DrawItemText_Impl() GetStatusBar().SetItemText( GetId(), sTxt ); } -sal_uIntPtr SvxSelectionModeControl::GetDefItemWidth(const StatusBar& rStb) -{ - long nWidth1 = rStb.GetTextWidth(SVX_RESSTR(RID_SVXSTR_SELMODE_STD)); - long nWidth2 = rStb.GetTextWidth(SVX_RESSTR(RID_SVXSTR_SELMODE_ER)); - long nWidth3 = rStb.GetTextWidth(SVX_RESSTR(RID_SVXSTR_SELMODE_ERG)); - long nWidth4 = rStb.GetTextWidth(SVX_RESSTR(RID_SVXSTR_SELMODE_BLK)); - - if(nWidth1<nWidth2) - nWidth1=nWidth2; - - if(nWidth1<nWidth3) - nWidth1=nWidth3; - - if(nWidth1<nWidth4) - nWidth1=nWidth4; - - return nWidth1+PAINT_OFFSET; -} - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |