diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-12-06 23:37:33 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-12-06 23:54:36 +0000 |
commit | 9e65b68ef9a3b745afb13700c68d0a5f2a2d8904 (patch) | |
tree | d79f389d69bc200469b3dd1468b90124a6fd81b5 /vcl | |
parent | a06492465223d42fb8905c4770c9f1ec4b80af36 (diff) |
reduce CurrencyBox somewhat
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/field.hxx | 2 | ||||
-rw-r--r-- | vcl/source/control/field.cxx | 31 |
2 files changed, 0 insertions, 33 deletions
diff --git a/vcl/inc/vcl/field.hxx b/vcl/inc/vcl/field.hxx index 4af5e1a6128b..391a6e6c98e1 100644 --- a/vcl/inc/vcl/field.hxx +++ b/vcl/inc/vcl/field.hxx @@ -819,8 +819,6 @@ public: virtual void ReformatAll(); - void InsertValue( sal_Int64 nValue, sal_uInt16 nPos = COMBOBOX_APPEND ); - void RemoveValue( sal_Int64 nValue ); sal_Int64 GetValue( sal_uInt16 nPos ) const; sal_uInt16 GetValuePos( sal_Int64 nValue ) const; diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx index c4b6263e7518..b943938813fd 100644 --- a/vcl/source/control/field.cxx +++ b/vcl/source/control/field.cxx @@ -2383,23 +2383,6 @@ CurrencyBox::CurrencyBox( Window* pParent, WinBits nWinStyle ) : // ----------------------------------------------------------------------- -CurrencyBox::CurrencyBox( Window* pParent, const ResId& rResId ) : - ComboBox( WINDOW_CURRENCYBOX ) -{ - rResId.SetRT( RSC_CURRENCYBOX ); - WinBits nStyle = ImplInitRes( rResId ); - ComboBox::ImplInit( pParent, nStyle ); - CurrencyFormatter::ImplLoadRes( ResId( (RSHEADER_TYPE *)GetClassRes(), *rResId.GetResMgr() ) ); - SetField( this ); - ComboBox::ImplLoadRes( rResId ); - Reformat(); - - if ( !(nStyle & WB_HIDE ) ) - Show(); -} - -// ----------------------------------------------------------------------- - CurrencyBox::~CurrencyBox() { } @@ -2478,20 +2461,6 @@ void CurrencyBox::ReformatAll() // ----------------------------------------------------------------------- -void CurrencyBox::InsertValue( sal_Int64 nValue, sal_uInt16 nPos ) -{ - ComboBox::InsertEntry( CreateFieldText( nValue ), nPos ); -} - -// ----------------------------------------------------------------------- - -void CurrencyBox::RemoveValue( sal_Int64 nValue ) -{ - ComboBox::RemoveEntry( CreateFieldText( nValue ) ); -} - -// ----------------------------------------------------------------------- - sal_Int64 CurrencyBox::GetValue( sal_uInt16 nPos ) const { double nValue = 0; |