diff options
author | August Sodora <augsod@gmail.com> | 2011-12-19 21:45:29 -0500 |
---|---|---|
committer | August Sodora <augsod@gmail.com> | 2011-12-19 23:11:28 -0500 |
commit | f94db3d01631e75750431a87215338bf182f7c61 (patch) | |
tree | bfef60fb84f24dc428a2b92a644a2fb6a4925d28 /vcl | |
parent | 1f2fd91bf1acc4b6e0b102738c319ce074b7faf7 (diff) |
callcatcher: Remove unused code
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/field.hxx | 9 | ||||
-rw-r--r-- | vcl/source/control/field2.cxx | 92 |
2 files changed, 0 insertions, 101 deletions
diff --git a/vcl/inc/vcl/field.hxx b/vcl/inc/vcl/field.hxx index 391a6e6c98e1..76a710d4027a 100644 --- a/vcl/inc/vcl/field.hxx +++ b/vcl/inc/vcl/field.hxx @@ -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; }; diff --git a/vcl/source/control/field2.cxx b/vcl/source/control/field2.cxx index 0a2952b28903..59e0dbd956ef 100644 --- a/vcl/source/control/field2.cxx +++ b/vcl/source/control/field2.cxx @@ -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, |