summaryrefslogtreecommitdiff
path: root/reportbuilder/java/com/sun/star/report/pentaho/parser/style/MasterPageReadHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'reportbuilder/java/com/sun/star/report/pentaho/parser/style/MasterPageReadHandler.java')
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/parser/style/MasterPageReadHandler.java96
1 files changed, 47 insertions, 49 deletions
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/parser/style/MasterPageReadHandler.java b/reportbuilder/java/com/sun/star/report/pentaho/parser/style/MasterPageReadHandler.java
index 160feadb737f..75773988cf76 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/parser/style/MasterPageReadHandler.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/parser/style/MasterPageReadHandler.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.parser.style;
import java.util.ArrayList;
@@ -49,59 +47,59 @@ import org.xml.sax.SAXException;
*/
public class MasterPageReadHandler extends ElementReadHandler
{
- private final OfficeMasterPage masterPage;
- private final List otherHandlers;
- public MasterPageReadHandler()
- {
- masterPage = new OfficeMasterPage();
- this.otherHandlers = new ArrayList();
- }
+ private final OfficeMasterPage masterPage;
+ private final List otherHandlers;
- public OfficeMasterPage getMasterPage()
- {
- return masterPage;
- }
+ public MasterPageReadHandler()
+ {
+ masterPage = new OfficeMasterPage();
+ this.otherHandlers = new ArrayList();
+ }
- /**
- * Returns the handler for a child element.
- *
- * @param tagName the tag name.
- * @param atts the attributes.
- * @return the handler or null, if the tagname is invalid.
- *
- * @throws org.xml.sax.SAXException if there is a parsing error.
- */
- protected XmlReadHandler getHandlerForChild(final String uri,
- final String tagName,
- final Attributes atts)
- throws SAXException
- {
- final StyleDefinitionReadHandler readHandler =
- new StyleDefinitionReadHandler();
- otherHandlers.add(readHandler);
- return readHandler;
- }
+ public OfficeMasterPage getMasterPage()
+ {
+ return masterPage;
+ }
- /**
- * Done parsing.
- *
- * @throws org.xml.sax.SAXException if there is a parsing error.
- */
- protected void doneParsing()
- throws SAXException
- {
- for (int i = 0; i < otherHandlers.size(); i++)
+ /**
+ * Returns the handler for a child element.
+ *
+ * @param tagName the tag name.
+ * @param atts the attributes.
+ * @return the handler or null, if the tagname is invalid.
+ *
+ * @throws org.xml.sax.SAXException if there is a parsing error.
+ */
+ protected XmlReadHandler getHandlerForChild(final String uri,
+ final String tagName,
+ final Attributes atts)
+ throws SAXException
{
- final ElementReadHandler handler =
- (ElementReadHandler) otherHandlers.get(i);
- masterPage.addNode(handler.getElement());
+ final StyleDefinitionReadHandler readHandler =
+ new StyleDefinitionReadHandler();
+ otherHandlers.add(readHandler);
+ return readHandler;
}
- }
+ /**
+ * Done parsing.
+ *
+ * @throws org.xml.sax.SAXException if there is a parsing error.
+ */
+ protected void doneParsing()
+ throws SAXException
+ {
+ for (int i = 0; i < otherHandlers.size(); i++)
+ {
+ final ElementReadHandler handler =
+ (ElementReadHandler) otherHandlers.get(i);
+ masterPage.addNode(handler.getElement());
+ }
+ }
- public Element getElement()
- {
- return masterPage;
- }
+ public Element getElement()
+ {
+ return masterPage;
+ }
}