Kaydet (Commit) f94db3d0 authored tarafından August Sodora's avatar August Sodora

callcatcher: Remove unused code

üst 1f2fd91b
......@@ -386,8 +386,6 @@ public:
void SetDate( const Date& rNewDate );
void SetUserDate( const Date& rNewDate );
Date GetDate() const;
Date GetRealDate() const;
sal_Bool IsDateModified() const;
void SetEmptyDate();
sal_Bool IsEmptyDate() const;
Date GetCorrectedDate() const { return maCorrectedDate; }
......@@ -835,7 +833,6 @@ class VCL_DLLPUBLIC DateBox : public ComboBox, public DateFormatter
{
public:
DateBox( Window* pParent, WinBits nWinStyle );
DateBox( Window* pParent, const ResId& rResId );
~DateBox();
virtual long PreNotify( NotifyEvent& rNEvt );
......@@ -845,12 +842,6 @@ public:
virtual void Modify();
virtual void ReformatAll();
void InsertDate( const Date& rDate, sal_uInt16 nPos = COMBOBOX_APPEND );
void RemoveDate( const Date& rDate );
using DateFormatter::GetDate;
Date GetDate( sal_uInt16 nPos ) const;
sal_uInt16 GetDatePos( const Date& rDate ) const;
};
......
......@@ -1935,25 +1935,6 @@ Date DateFormatter::GetDate() const
// -----------------------------------------------------------------------
Date DateFormatter::GetRealDate() const
{
// !!! TH-18.2.99: Wenn wir Zeit haben sollte dieses auch einmal
// !!! fuer die Numeric-Klassen eingebaut werden.
Date aDate( 0, 0, 0 );
if ( GetField() )
{
if ( !ImplDateGetValue( GetField()->GetText(), aDate, GetExtDateFormat(sal_True), ImplGetLocaleDataWrapper(), GetCalendarWrapper(), GetFieldSettings() ) )
if ( ImplAllowMalformedInput() )
aDate = GetInvalidDate();
}
return aDate;
}
// -----------------------------------------------------------------------
void DateFormatter::SetEmptyDate()
{
FormatterBase::SetEmptyFieldValue();
......@@ -1982,18 +1963,6 @@ sal_Bool DateFormatter::IsEmptyDate() const
// -----------------------------------------------------------------------
sal_Bool DateFormatter::IsDateModified() const
{
if ( ImplGetEmptyFieldValue() )
return !IsEmptyDate();
else if ( GetDate() != maFieldDate )
return sal_True;
else
return sal_False;
}
// -----------------------------------------------------------------------
void DateFormatter::Reformat()
{
if ( !GetField() )
......@@ -2234,26 +2203,6 @@ DateBox::DateBox( Window* pParent, WinBits nWinStyle ) :
// -----------------------------------------------------------------------
DateBox::DateBox( Window* pParent, const ResId& rResId ) :
ComboBox( WINDOW_DATEBOX )
{
rResId.SetRT( RSC_DATEBOX );
WinBits nStyle = ImplInitRes( rResId );
ComboBox::ImplInit( pParent, nStyle );
SetField( this );
SetText( ImplGetLocaleDataWrapper().getDate( ImplGetFieldDate() ) );
ComboBox::ImplLoadRes( rResId );
ResMgr* pMgr = rResId.GetResMgr();
if( pMgr )
DateFormatter::ImplLoadRes( ResId( (RSHEADER_TYPE *)GetClassRes(), *pMgr ) );
Reformat();
if ( !( nStyle & WB_HIDE ) )
Show();
}
// -----------------------------------------------------------------------
DateBox::~DateBox()
{
}
......@@ -2338,47 +2287,6 @@ void DateBox::ReformatAll()
// -----------------------------------------------------------------------
void DateBox::InsertDate( const Date& rDate, sal_uInt16 nPos )
{
Date aDate = rDate;
if ( aDate > GetMax() )
aDate = GetMax();
else if ( aDate < GetMin() )
aDate = GetMin();
ComboBox::InsertEntry( ImplGetDateAsText( aDate, GetFieldSettings() ), nPos );
}
// -----------------------------------------------------------------------
void DateBox::RemoveDate( const Date& rDate )
{
ComboBox::RemoveEntry( ImplGetDateAsText( rDate, GetFieldSettings() ) );
}
// -----------------------------------------------------------------------
Date DateBox::GetDate( sal_uInt16 nPos ) const
{
Date aDate( 0, 0, 0 );
ImplDateGetValue( ComboBox::GetEntry( nPos ), aDate, GetExtDateFormat(sal_True), ImplGetLocaleDataWrapper(), GetCalendarWrapper(), GetSettings() );
return aDate;
}
// -----------------------------------------------------------------------
sal_uInt16 DateBox::GetDatePos( const Date& rDate ) const
{
XubString aStr;
if ( IsLongFormat() )
aStr = ImplGetLocaleDataWrapper().getLongDate( rDate, GetCalendarWrapper(), 1, sal_False, 1, !IsShowDateCentury() );
else
aStr = ImplGetLocaleDataWrapper().getDate( rDate );
return ComboBox::GetEntryPos( aStr );
}
// -----------------------------------------------------------------------
static sal_Bool ImplTimeProcessKeyInput( Edit*, const KeyEvent& rKEvt,
sal_Bool bStrictFormat, sal_Bool bDuration,
TimeFieldFormat eFormat,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment