summaryrefslogtreecommitdiff
path: root/vcl/source/control/field.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/control/field.cxx')
-rw-r--r--vcl/source/control/field.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/vcl/source/control/field.cxx b/vcl/source/control/field.cxx
index f18442d9b544..c0dd2efc1937 100644
--- a/vcl/source/control/field.cxx
+++ b/vcl/source/control/field.cxx
@@ -774,12 +774,12 @@ NumericField::~NumericField()
{
}
-long NumericField::PreNotify( NotifyEvent& rNEvt )
+bool NumericField::PreNotify( NotifyEvent& rNEvt )
{
if ( (rNEvt.GetType() == EVENT_KEYINPUT) && !rNEvt.GetKeyEvent()->GetKeyCode().IsMod2() )
{
if ( ImplNumericProcessKeyInput( GetField(), *rNEvt.GetKeyEvent(), IsStrictFormat(), IsUseThousandSep(), ImplGetLocaleDataWrapper() ) )
- return 1;
+ return true;
}
return SpinField::PreNotify( rNEvt );
@@ -926,12 +926,12 @@ NumericBox::~NumericBox()
{
}
-long NumericBox::PreNotify( NotifyEvent& rNEvt )
+bool NumericBox::PreNotify( NotifyEvent& rNEvt )
{
if ( (rNEvt.GetType() == EVENT_KEYINPUT) && !rNEvt.GetKeyEvent()->GetKeyCode().IsMod2() )
{
if ( ImplNumericProcessKeyInput( GetField(), *rNEvt.GetKeyEvent(), IsStrictFormat(), IsUseThousandSep(), ImplGetLocaleDataWrapper() ) )
- return 1;
+ return true;
}
return ComboBox::PreNotify( rNEvt );
@@ -1657,12 +1657,12 @@ sal_Int64 MetricField::GetLast( FieldUnit eOutUnit ) const
meUnit, eOutUnit );
}
-long MetricField::PreNotify( NotifyEvent& rNEvt )
+bool MetricField::PreNotify( NotifyEvent& rNEvt )
{
if ( (rNEvt.GetType() == EVENT_KEYINPUT) && !rNEvt.GetKeyEvent()->GetKeyCode().IsMod2() )
{
if ( ImplMetricProcessKeyInput( GetField(), *rNEvt.GetKeyEvent(), IsStrictFormat(), IsUseThousandSep(), ImplGetLocaleDataWrapper() ) )
- return 1;
+ return true;
}
return SpinField::PreNotify( rNEvt );
@@ -1758,12 +1758,12 @@ MetricBox::~MetricBox()
{
}
-long MetricBox::PreNotify( NotifyEvent& rNEvt )
+bool MetricBox::PreNotify( NotifyEvent& rNEvt )
{
if ( (rNEvt.GetType() == EVENT_KEYINPUT) && !rNEvt.GetKeyEvent()->GetKeyCode().IsMod2() )
{
if ( ImplMetricProcessKeyInput( GetField(), *rNEvt.GetKeyEvent(), IsStrictFormat(), IsUseThousandSep(), ImplGetLocaleDataWrapper() ) )
- return 1;
+ return true;
}
return ComboBox::PreNotify( rNEvt );
@@ -1992,12 +1992,12 @@ CurrencyField::~CurrencyField()
{
}
-long CurrencyField::PreNotify( NotifyEvent& rNEvt )
+bool CurrencyField::PreNotify( NotifyEvent& rNEvt )
{
if ( (rNEvt.GetType() == EVENT_KEYINPUT) && !rNEvt.GetKeyEvent()->GetKeyCode().IsMod2() )
{
if ( ImplCurrencyProcessKeyInput( GetField(), *rNEvt.GetKeyEvent(), IsStrictFormat(), IsUseThousandSep(), ImplGetLocaleDataWrapper() ) )
- return 1;
+ return true;
}
return SpinField::PreNotify( rNEvt );
@@ -2074,12 +2074,12 @@ CurrencyBox::~CurrencyBox()
{
}
-long CurrencyBox::PreNotify( NotifyEvent& rNEvt )
+bool CurrencyBox::PreNotify( NotifyEvent& rNEvt )
{
if ( (rNEvt.GetType() == EVENT_KEYINPUT) && !rNEvt.GetKeyEvent()->GetKeyCode().IsMod2() )
{
if ( ImplCurrencyProcessKeyInput( GetField(), *rNEvt.GetKeyEvent(), IsStrictFormat(), IsUseThousandSep(), ImplGetLocaleDataWrapper() ) )
- return 1;
+ return true;
}
return ComboBox::PreNotify( rNEvt );