summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-12-06 23:37:33 +0000
committerEike Rathke <erack@redhat.com>2011-12-07 17:19:51 +0100
commit1219276b22b1cc8c8cfe9eafc70b659444fc02cb (patch)
tree95a61eca7ea36393301b3eebb865f330cebb972a /vcl
parentc10cd312cd6e08ec9ff69cff990f5b3ee5bc2259 (diff)
reduce CurrencyBox somewhat
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/field.hxx2
-rw-r--r--vcl/source/control/field.cxx31
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;