From ee4a50e5dbaba32cfa24f407867c79d983793d32 Mon Sep 17 00:00:00 2001 From: Vladimir Glazounov Date: Mon, 28 Jan 2008 13:01:00 +0000 Subject: INTEGRATION: CWS ab42 (1.6.56); FILE MERGED 2007/12/21 11:16:36 ab 1.6.56.1: #151250# Support date/time formats --- basic/source/sbx/sbxform.cxx | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) (limited to 'basic/source') diff --git a/basic/source/sbx/sbxform.cxx b/basic/source/sbx/sbxform.cxx index 827dd5f4e57a..e11a3a30e24c 100644 --- a/basic/source/sbx/sbxform.cxx +++ b/basic/source/sbx/sbxform.cxx @@ -4,9 +4,9 @@ * * $RCSfile: sbxform.cxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: hr $ $Date: 2007-06-27 14:30:36 $ + * last change: $Author: vg $ $Date: 2008-01-28 14:01:00 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -1151,3 +1151,26 @@ String SbxBasicFormater::BasicFormat( double dNumber, String sFormatStrg ) return sReturnStrg; } +BOOL SbxBasicFormater::isBasicFormat( String sFormatStrg ) +{ + if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_GENERALNUMBER ) ) + return TRUE; + if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_CURRENCY ) ) + return TRUE; + if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_FIXED ) ) + return TRUE; + if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_STANDARD ) ) + return TRUE; + if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_PERCENT ) ) + return TRUE; + if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_SCIENTIFIC ) ) + return TRUE; + if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_YESNO ) ) + return TRUE; + if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_TRUEFALSE ) ) + return TRUE; + if( sFormatStrg.EqualsIgnoreCaseAscii( BASICFORMAT_ONOFF ) ) + return TRUE; + return FALSE; +} + -- cgit