diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2006-04-07 13:07:52 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2006-04-07 13:07:52 +0000 |
commit | 9964b7e36ded066c9d3af90aa87e0b05cbff3e5a (patch) | |
tree | e2a55657b23d17c5768a1d0c52f91a7af7119421 | |
parent | 28405a581b17c86bc6a3d48dbed7289d38d978f0 (diff) |
INTEGRATION: CWS internatiodel (1.17.324); FILE MERGED
2006/01/20 00:10:31 er 1.17.324.2: RESYNC: (1.17-1.20); FILE MERGED
2005/06/24 13:09:25 er 1.17.324.1: #i50205# get rid of class International
-rw-r--r-- | svx/source/items/flditem.cxx | 155 |
1 files changed, 2 insertions, 153 deletions
diff --git a/svx/source/items/flditem.cxx b/svx/source/items/flditem.cxx index 5ffdad629a..023b1dfb4f 100644 --- a/svx/source/items/flditem.cxx +++ b/svx/source/items/flditem.cxx @@ -4,9 +4,9 @@ * * $RCSfile: flditem.cxx,v $ * - * $Revision: 1.21 $ + * $Revision: 1.22 $ * - * last change: $Author: vg $ $Date: 2006-04-07 08:18:00 $ + * last change: $Author: vg $ $Date: 2006-04-07 14:07:52 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -39,9 +39,6 @@ #ifndef _ZFORLIST_HXX #include <svtools/zforlist.hxx> #endif -#ifndef _INTN_HXX -#include <tools/intn.hxx> -#endif #ifndef _URLOBJ_HXX #include <tools/urlobj.hxx> #endif @@ -353,94 +350,6 @@ String SvxDateField::GetFormatted( Date& aDate, SvxDateFormat eFormat, SvNumberF return aStr; } -// deprecated, to be removed -XubString SvxDateField::GetFormatted( LanguageType eLanguage, LanguageType eFmt ) const -{ - International aInter( eLanguage, eFmt ); - int bLongDate = FALSE; - - Date aDate; // aktuelles - if ( eType == SVXDATETYPE_FIX ) - aDate.SetDate( nFixDate ); - - SvxDateFormat eTmpFormat = eFormat; - - if ( eTmpFormat == SVXDATEFORMAT_SYSTEM ) - { - DBG_ERROR( "SVXDATEFORMAT_SYSTEM nicht implementiert!" ); - eTmpFormat = SVXDATEFORMAT_STDSMALL; - } - else if ( eTmpFormat == SVXDATEFORMAT_APPDEFAULT ) - { - DBG_ERROR( "SVXDATEFORMAT_APPDEFAULT: Woher nehmen?" ); - eTmpFormat = SVXDATEFORMAT_STDSMALL; - } - - switch( eTmpFormat ) - { - // kurze Formate standard - case SVXDATEFORMAT_STDSMALL: - break; - case SVXDATEFORMAT_STDBIG: - { - bLongDate = TRUE; - } - break; - case SVXDATEFORMAT_A: - { - // 13.02.96 - aInter.SetDateCentury( FALSE ); - } - break; - case SVXDATEFORMAT_B: - { - // 13.02.1996 - aInter.SetDateCentury( TRUE ); - } - break; - case SVXDATEFORMAT_C: - { - // 13.Feb 1996 - aInter.SetLongDateDayOfWeekFormat( DAYOFWEEK_NONE ); - aInter.SetLongDateMonthFormat( MONTH_SHORT ); - aInter.SetDateCentury( TRUE ); - bLongDate = TRUE; - } - break; - case SVXDATEFORMAT_D: - { - // 13.Februar 1996 - aInter.SetLongDateDayOfWeekFormat(DAYOFWEEK_NONE); - aInter.SetLongDateMonthFormat(MONTH_LONG); - aInter.SetDateCentury(TRUE); - bLongDate = TRUE; - } - break; - case SVXDATEFORMAT_E: - { - // Die, 13.Februar 1996 - aInter.SetLongDateDayOfWeekFormat(DAYOFWEEK_SHORT); - aInter.SetLongDateMonthFormat(MONTH_LONG); - aInter.SetDateCentury(TRUE); - bLongDate = TRUE; - } - break; - case SVXDATEFORMAT_F: - { - // Dienstag, 13.Februar 1996 - aInter.SetLongDateDayOfWeekFormat(DAYOFWEEK_LONG); - aInter.SetLongDateMonthFormat(MONTH_LONG); - aInter.SetDateCentury(TRUE); - bLongDate = TRUE; - } - break; - } - - if( bLongDate ) - return aInter.GetLongDate( aDate ); - return aInter.GetDate( aDate ); -} - MetaAction* SvxDateField::createBeginComment() const { return new MetaCommentAction( "FIELD_SEQ_BEGIN" ); @@ -823,66 +732,6 @@ String SvxExtTimeField::GetFormatted( Time& aTime, SvxTimeFormat eFormat, SvNumb return aStr; } -// deprecated, to be removed -XubString SvxExtTimeField::GetFormatted( LanguageType eLanguage, LanguageType eFmt ) const -{ - International aInter( eLanguage, eFmt ); - XubString aStrTime; - - Time aTime; // aktuelle Zeit - if ( eType == SVXTIMETYPE_FIX ) - aTime.SetTime( nFixTime ); - - SvxTimeFormat eTmpFormat = eFormat; - - if ( eTmpFormat == SVXTIMEFORMAT_SYSTEM ) - { - DBG_ERROR( "SVXTIMEFORMAT_SYSTEM nicht implementiert!" ); - eTmpFormat = SVXTIMEFORMAT_STANDARD; - } - else if ( eTmpFormat == SVXTIMEFORMAT_APPDEFAULT ) - { - DBG_ERROR( "SVXTIMEFORMAT_APPDEFAULT: Woher nehmen?" ); - eTmpFormat = SVXTIMEFORMAT_STANDARD; - } - - // 12 oder 24 Stunden - switch( eTmpFormat ) - { - case SVXTIMEFORMAT_24_HM: - case SVXTIMEFORMAT_24_HMS: - case SVXTIMEFORMAT_24_HMSH: - aInter.SetTimeFormat( HOUR_24 ); - break; - - default: - aInter.SetTimeFormat( HOUR_12 ); - break; - } - switch( eTmpFormat ) - { - case SVXTIMEFORMAT_12_HM: - case SVXTIMEFORMAT_24_HM: - aStrTime = aInter.GetTime( aTime, FALSE ); - break; - - case SVXTIMEFORMAT_12_HMSH: - case SVXTIMEFORMAT_24_HMSH: - aStrTime = aInter.GetTime( aTime, TRUE, TRUE ); - break; - - case SVXTIMEFORMAT_STANDARD: - case SVXTIMEFORMAT_12_HMS: - case SVXTIMEFORMAT_24_HMS: - default: - aStrTime = aInter.GetTime( aTime, TRUE ); - break; - - } - - return( aStrTime ); -} - MetaAction* SvxExtTimeField::createBeginComment() const { return new MetaCommentAction( "FIELD_SEQ_BEGIN" ); |