diff options
author | Elton Chung <elton@layerjet.com> | 2012-02-10 14:53:32 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-02-10 15:42:53 +0000 |
commit | ea1fa6963d1f45130a3dc3d635e5b37120bf364b (patch) | |
tree | faf9361fae977f504e9d4ce795c3f6225bff67fb /svx/source/stbctrls | |
parent | 4e022ca124bbedfc6464f67edd11f3edd51d24e8 (diff) |
Remove unused code
Diffstat (limited to 'svx/source/stbctrls')
-rw-r--r-- | svx/source/stbctrls/pszctrl.cxx | 14 | ||||
-rw-r--r-- | svx/source/stbctrls/zoomctrl.cxx | 6 |
2 files changed, 0 insertions, 20 deletions
diff --git a/svx/source/stbctrls/pszctrl.cxx b/svx/source/stbctrls/pszctrl.cxx index a912fa5e8247..9c8a3e3bb5b9 100644 --- a/svx/source/stbctrls/pszctrl.cxx +++ b/svx/source/stbctrls/pszctrl.cxx @@ -425,19 +425,5 @@ void SvxPosSizeStatusBarControl::Paint( const UserDrawEvent& rUsrEvt ) pDev->SetFillColor( aOldFillColor ); } -// ----------------------------------------------------------------------- - -sal_uIntPtr SvxPosSizeStatusBarControl::GetDefItemWidth(const StatusBar& rStb) -{ - Image aTmpPosImage( ResId( RID_SVXBMP_POSITION, DIALOG_MGR() ) ); - Image aTmpSizeImage( ResId( RID_SVXBMP_SIZE, DIALOG_MGR() ) ); - - sal_uIntPtr nWidth=PAINT_OFFSET+aTmpPosImage.GetSizePixel().Width(); - nWidth+=PAINT_OFFSET+aTmpSizeImage.GetSizePixel().Width(); - nWidth+=2*(PAINT_OFFSET+rStb.GetTextWidth(String::CreateFromAscii("XXXX,XX / XXXX,XX"))); - - return nWidth; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/svx/source/stbctrls/zoomctrl.cxx b/svx/source/stbctrls/zoomctrl.cxx index 835911bac1f7..1284075842d0 100644 --- a/svx/source/stbctrls/zoomctrl.cxx +++ b/svx/source/stbctrls/zoomctrl.cxx @@ -192,11 +192,5 @@ void SvxZoomStatusBarControl::Command( const CommandEvent& rCEvt ) SfxStatusBarControl::Command( rCEvt ); } -sal_uIntPtr SvxZoomStatusBarControl::GetDefItemWidth(const StatusBar& rStb) -{ - long nWidth1 = rStb.GetTextWidth(String::CreateFromAscii("XXXXX%")); - return nWidth1; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |