User: kz      
Date: 2008-05-05 15:02:37+0000
Modified:
   
dba/reportdesign/java/com/sun/star/report/pentaho/parser/office/BodyReadHandler.java

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

File Changes:

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

File [changed]: BodyReadHandler.java
Url: 
http://dba.openoffice.org/source/browse/dba/reportdesign/java/com/sun/star/report/pentaho/parser/office/BodyReadHandler.java?r1=1.4&r2=1.5
Delta lines:  +40 -46
---------------------
--- BodyReadHandler.java        2008-04-10 17:45:26+0000        1.4
+++ BodyReadHandler.java        2008-05-05 15:02:25+0000        1.5
@@ -27,8 +27,6 @@
  * for a copy of the LGPLv3 License.
  *
  ************************************************************************/
-
-
 package com.sun.star.report.pentaho.parser.office;
 
 import com.sun.star.report.pentaho.OfficeNamespaces;
@@ -42,10 +40,11 @@
 
 public class BodyReadHandler extends ElementReadHandler
 {
+
   private ElementReadHandler reportReadHandler;
-  private Section body;
+    private final Section body;
 
-  public BodyReadHandler ()
+    public BodyReadHandler()
   {
     body = new Section();
   }
@@ -59,15 +58,11 @@
    *
    * @throws org.xml.sax.SAXException if there is a parsing error.
    */
-  protected XmlReadHandler getHandlerForChild (final String uri, final String 
tagName,
+    protected XmlReadHandler getHandlerForChild(final String uri, final String 
tagName,
                                                final Attributes atts)
           throws SAXException
   {
-    if (OfficeNamespaces.OFFICE_NS.equals(uri) == false)
-    {
-      return null;
-    }
-    if ("report".equals(tagName))
+        if (OfficeNamespaces.OFFICE_NS.equals(uri) && "report".equals(tagName))
     {
       reportReadHandler = new ReportReadHandler();
       return reportReadHandler;
@@ -89,7 +84,6 @@
     }
   }
 
-
   public Element getElement()
   {
     return body;




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

Reply via email to