1 /* 2 * This file is part of the LibreOffice project. 3 * 4 * This Source Code Form is subject to the terms of the Mozilla Public 5 * License, v. 2.0. If a copy of the MPL was not distributed with this 6 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 7 * 8 * This file incorporates work covered by the following license notice: 9 * 10 * Licensed to the Apache Software Foundation (ASF) under one or more 11 * contributor license agreements. See the NOTICE file distributed 12 * with this work for additional information regarding copyright 13 * ownership. The ASF licenses this file to you under the Apache 14 * License, Version 2.0 (the "License"); you may not use this file 15 * except in compliance with the License. You may obtain a copy of 16 * the License at http://www.apache.org/licenses/LICENSE-2.0 . 17 */ 18 package org.libreoffice.report.pentaho.model; 19 20 import org.jfree.report.structure.Element; 21 import org.jfree.report.structure.Node; 22 23 /** 24 * A office report is an ordered section. It contains several root-level bands 25 * which need to be processed in a given order. 26 * 27 * A report can have named expression attached. These expressions will be 28 * computed at the global scope and will be available for all child elements. 29 * 30 * @since 02.03.2007 31 */ 32 public class OfficeReport extends Element 33 { 34 35 private Node pageHeader; 36 private Node pageFooter; 37 private Node reportHeader; 38 private Node reportFooter; 39 private Node bodySection; 40 private Node preBodySection; 41 private Node postBodySection; 42 getPostBodySection()43 public Node getPostBodySection() 44 { 45 return postBodySection; 46 } 47 setPostBodySection(final Node postBodySection)48 public void setPostBodySection(final Node postBodySection) 49 { 50 this.postBodySection = postBodySection; 51 } 52 getPreBodySection()53 public Node getPreBodySection() 54 { 55 return preBodySection; 56 } 57 setPreBodySection(final Node preBodySection)58 public void setPreBodySection(final Node preBodySection) 59 { 60 this.preBodySection = preBodySection; 61 } 62 getPageHeader()63 public Node getPageHeader() 64 { 65 return pageHeader; 66 } 67 setPageHeader(final Node pageHeader)68 public void setPageHeader(final Node pageHeader) 69 { 70 this.pageHeader = pageHeader; 71 } 72 getPageFooter()73 public Node getPageFooter() 74 { 75 return pageFooter; 76 } 77 setPageFooter(final Node pageFooter)78 public void setPageFooter(final Node pageFooter) 79 { 80 this.pageFooter = pageFooter; 81 } 82 getColumnHeader()83 public Node getColumnHeader() 84 { 85 return null; 86 } 87 getColumnFooter()88 public Node getColumnFooter() 89 { 90 return null; 91 } 92 getReportHeader()93 public Node getReportHeader() 94 { 95 return reportHeader; 96 } 97 setReportHeader(final Node reportHeader)98 public void setReportHeader(final Node reportHeader) 99 { 100 this.reportHeader = reportHeader; 101 } 102 getReportFooter()103 public Node getReportFooter() 104 { 105 return reportFooter; 106 } 107 setReportFooter(final Node reportFooter)108 public void setReportFooter(final Node reportFooter) 109 { 110 this.reportFooter = reportFooter; 111 } 112 getBodySection()113 public Node getBodySection() 114 { 115 return bodySection; 116 } 117 setBodySection(final Node bodySection)118 public void setBodySection(final Node bodySection) 119 { 120 this.bodySection = bodySection; 121 } 122 } 123