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 | |
parent | 178ce4295ba864b4dd5082eff7e3444d5cead6ca (diff) |
unusedcode.easy: remove some more
Diffstat (limited to 'svx')
-rw-r--r-- | svx/inc/svx/insctrl.hxx | 2 | ||||
-rw-r--r-- | svx/inc/svx/ruler.hxx | 1 | ||||
-rw-r--r-- | svx/inc/svx/selctrl.hxx | 2 | ||||
-rw-r--r-- | svx/inc/svx/xmlsecctrl.hxx | 1 | ||||
-rw-r--r-- | svx/source/dialog/svxruler.cxx | 12 | ||||
-rw-r--r-- | svx/source/stbctrls/insctrl.cxx | 12 | ||||
-rw-r--r-- | svx/source/stbctrls/selctrl.cxx | 20 | ||||
-rw-r--r-- | svx/source/stbctrls/xmlsecctrl.cxx | 5 |
8 files changed, 0 insertions, 55 deletions
diff --git a/svx/inc/svx/insctrl.hxx b/svx/inc/svx/insctrl.hxx index 45fef75641b5..0f94a0ed220a 100644 --- a/svx/inc/svx/insctrl.hxx +++ b/svx/inc/svx/insctrl.hxx @@ -48,8 +48,6 @@ public: SvxInsertStatusBarControl( sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar& rStb ); ~SvxInsertStatusBarControl(); - static sal_uIntPtr GetDefItemWidth(const StatusBar& rStb); - private: sal_Bool bInsert; diff --git a/svx/inc/svx/ruler.hxx b/svx/inc/svx/ruler.hxx index e1a17dc8d388..d563afbda6d1 100644 --- a/svx/inc/svx/ruler.hxx +++ b/svx/inc/svx/ruler.hxx @@ -248,7 +248,6 @@ public: sal_uInt16 GetRulerFlags() const { return nFlags; } void SetDefTabDist(long); - long GetDefTabDist() const; // set/get NullOffset in logic units void SetNullOffsetLogic(long lOff = 0); diff --git a/svx/inc/svx/selctrl.hxx b/svx/inc/svx/selctrl.hxx index 7ba8e19bd71d..42b30db720fb 100644 --- a/svx/inc/svx/selctrl.hxx +++ b/svx/inc/svx/selctrl.hxx @@ -47,8 +47,6 @@ public: SvxSelectionModeControl( sal_uInt16 nSlotId, sal_uInt16 nId, StatusBar& rStb ); - static sal_uIntPtr GetDefItemWidth(const StatusBar& rStb); - private: sal_uInt16 nState; diff --git a/svx/inc/svx/xmlsecctrl.hxx b/svx/inc/svx/xmlsecctrl.hxx index df6d9f7a603d..7de654cd09cf 100644 --- a/svx/inc/svx/xmlsecctrl.hxx +++ b/svx/inc/svx/xmlsecctrl.hxx @@ -53,7 +53,6 @@ public: virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem* pState ); virtual void Paint( const UserDrawEvent& rEvt ); virtual void Command( const CommandEvent& rCEvt ); - static long GetDefItemWidth( StatusBar& _rStatusBar ); }; #endif diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index ad28264a2a96..e355f4ca9d47 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -1102,18 +1102,6 @@ void SvxRuler::SetDefTabDist } -long SvxRuler::GetDefTabDist() const - -/* [Description] - - Get value for DefaultTab (is delivered in App-metrics) -*/ - -{ - return lDefTabDist; -} - - sal_uInt16 ToSvTab_Impl(SvxTabAdjust eAdj) /* [Description] diff --git a/svx/source/stbctrls/insctrl.cxx b/svx/source/stbctrls/insctrl.cxx index 0641de728065..8d4ad1908af9 100644 --- a/svx/source/stbctrls/insctrl.cxx +++ b/svx/source/stbctrls/insctrl.cxx @@ -114,16 +114,4 @@ void SvxInsertStatusBarControl::DrawItemText_Impl() GetStatusBar().SetItemText( GetId(), SVX_RESSTR( _nId ) ); } -sal_uIntPtr SvxInsertStatusBarControl::GetDefItemWidth(const StatusBar& rStb) -{ - long nWidth1 = rStb.GetTextWidth(SVX_RESSTR(RID_SVXSTR_OVERWRITE_TEXT)); - long nWidth2 = rStb.GetTextWidth(SVX_RESSTR(RID_SVXSTR_INSERT_TEXT)); - - if(nWidth1<nWidth2) - nWidth1=nWidth2; - - return nWidth1+PAINT_OFFSET; -} - - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 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: */ diff --git a/svx/source/stbctrls/xmlsecctrl.cxx b/svx/source/stbctrls/xmlsecctrl.cxx index abe08b6e8b13..619f178c059f 100644 --- a/svx/source/stbctrls/xmlsecctrl.cxx +++ b/svx/source/stbctrls/xmlsecctrl.cxx @@ -170,9 +170,4 @@ void XmlSecStatusBarControl::Paint( const UserDrawEvent& rUsrEvt ) pDev->SetFillColor( aOldFillColor ); } -long XmlSecStatusBarControl::GetDefItemWidth( StatusBar& ) -{ - return 16; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |