summaryrefslogtreecommitdiff
path: root/basic
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-01-28 13:01:00 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-01-28 13:01:00 +0000
commitee4a50e5dbaba32cfa24f407867c79d983793d32 (patch)
tree73a10696e079409445a1de9d01ed32d1cfc88251 /basic
parenta42c9b7f52299b745186995f53a2789f66a9f9c4 (diff)
INTEGRATION: CWS ab42 (1.6.56); FILE MERGED
2007/12/21 11:16:36 ab 1.6.56.1: #151250# Support date/time formats
Diffstat (limited to 'basic')
-rw-r--r--basic/source/sbx/sbxform.cxx27
1 files changed, 25 insertions, 2 deletions
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;
+}
+