User: kz      
Date: 2008-05-05 13:48:17+0000
Modified:
   
dba/reportdesign/java/com/sun/star/report/pentaho/layoutprocessor/FormatValueUtility.java

Log:
 INTEGRATION: CWS dba30beta (1.3.18); FILE MERGED
 2008/04/22 10:30:25 oj 1.3.18.1: #i88503# merge changes from rptchart02

File Changes:

Directory: /dba/reportdesign/java/com/sun/star/report/pentaho/layoutprocessor/
==============================================================================

File [changed]: FormatValueUtility.java
Url: 
http://dba.openoffice.org/source/browse/dba/reportdesign/java/com/sun/star/report/pentaho/layoutprocessor/FormatValueUtility.java?r1=1.3&r2=1.4
Delta lines:  +36 -5
--------------------
--- FormatValueUtility.java     2008-03-05 17:31:24+0000        1.3
+++ FormatValueUtility.java     2008-05-05 13:48:10+0000        1.4
@@ -1,9 +1,40 @@
+/*************************************************************************
+ *
+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
+ * 
+ * Copyright 2008 by Sun Microsystems, Inc.
+ *
+ * OpenOffice.org - a multi-platform office productivity suite
+ *
+ * $RCSfile$
+ * $Revision$
+ *
+ * This file is part of OpenOffice.org.
+ *
+ * OpenOffice.org is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License version 3
+ * only, as published by the Free Software Foundation.
+ *
+ * OpenOffice.org is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Lesser General Public License version 3 for more details
+ * (a copy is included in the LICENSE file that accompanied this code).
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * version 3 along with OpenOffice.org.  If not, see
+ * <http://www.openoffice.org/license.html>
+ * for a copy of the LGPLv3 License.
+ *
+ ************************************************************************/
+
 package com.sun.star.report.pentaho.layoutprocessor;
 
 import java.text.SimpleDateFormat;
 import java.util.Date;
 
 import com.sun.star.report.pentaho.OfficeNamespaces;
+import com.sun.star.report.OfficeToken;
 import com.sun.star.report.pentaho.model.FormattedTextElement;
 import org.jfree.layouting.util.AttributeMap;
 import org.jfree.report.DataFlags;
@@ -24,7 +55,7 @@
     private static final String BOOLEAN_VALUE = "boolean-value";
     private static final String STRING_VALUE = "string-value";
 
-    private static final String VALUE_TYPE = "value-type";
+    public static final String VALUE_TYPE = "value-type";
     private static SimpleDateFormat dateFormat;
 
     private FormatValueUtility()
@@ -48,11 +79,11 @@
             variableSection.setAttribute(OfficeNamespaces.OFFICE_NS, 
VALUE_TYPE, "boolean");
             if (Boolean.TRUE.equals(value))
             {
-                
variableSection.setAttribute(OfficeNamespaces.OFFICE_NS,BOOLEAN_VALUE, "true");
+                
variableSection.setAttribute(OfficeNamespaces.OFFICE_NS,BOOLEAN_VALUE, 
OfficeToken.TRUE);
             }
             else
             {
-                
variableSection.setAttribute(OfficeNamespaces.OFFICE_NS,BOOLEAN_VALUE, "false");
+                
variableSection.setAttribute(OfficeNamespaces.OFFICE_NS,BOOLEAN_VALUE, 
OfficeToken.FALSE);
             }
         }
         else if (value != null)
@@ -81,11 +112,11 @@
         {
             if (Boolean.TRUE.equals(value))
             {
-                
variableSection.setAttribute(OfficeNamespaces.OFFICE_NS,BOOLEAN_VALUE, "true");
+                
variableSection.setAttribute(OfficeNamespaces.OFFICE_NS,BOOLEAN_VALUE, 
OfficeToken.TRUE);
             }
             else
             {
-                
variableSection.setAttribute(OfficeNamespaces.OFFICE_NS,BOOLEAN_VALUE, "false");
+                
variableSection.setAttribute(OfficeNamespaces.OFFICE_NS,BOOLEAN_VALUE, 
OfficeToken.FALSE);
             }
         }
         else if (value != null)




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to