summaryrefslogtreecommitdiff
path: root/reportbuilder/java/com/sun/star/report/pentaho/model
diff options
context:
space:
mode:
Diffstat (limited to 'reportbuilder/java/com/sun/star/report/pentaho/model')
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/DataStyle.java25
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/FixedTextElement.java23
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java49
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceElement.java25
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/FormatCondition.java48
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/FormattedTextElement.java26
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/ImageElement.java72
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/ObjectOleElement.java29
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/OfficeDetailSection.java9
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/OfficeDocument.java39
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/OfficeGroup.java77
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/OfficeGroupInstanceSection.java7
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterPage.java42
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterStyles.java54
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/OfficeReport.java60
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/OfficeStyle.java166
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/OfficeStyles.java2
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/OfficeStylesCollection.java115
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/OfficeTableSection.java9
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/PageLayout.java44
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/RawText.java11
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/ReportElement.java108
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/TableCellElement.java8
-rw-r--r--reportbuilder/java/com/sun/star/report/pentaho/model/VariablesDeclarationSection.java12
24 files changed, 527 insertions, 533 deletions
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/DataStyle.java b/reportbuilder/java/com/sun/star/report/pentaho/model/DataStyle.java
index efef723425da..37ffed4ecd8d 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/DataStyle.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/DataStyle.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import org.jfree.report.structure.Section;
@@ -42,19 +40,18 @@ import com.sun.star.report.pentaho.OfficeNamespaces;
*/
public class DataStyle extends Section
{
- public DataStyle()
- {
- }
-
- public String getStyleName()
- {
- return (String) getAttribute(OfficeNamespaces.STYLE_NS, "name");
- }
- public void setStyleName(final String name)
- {
- setAttribute(OfficeNamespaces.STYLE_NS, "name", name);
- }
+ public DataStyle()
+ {
+ }
+ public String getStyleName()
+ {
+ return (String) getAttribute(OfficeNamespaces.STYLE_NS, "name");
+ }
+ public void setStyleName(final String name)
+ {
+ setAttribute(OfficeNamespaces.STYLE_NS, "name", name);
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/FixedTextElement.java b/reportbuilder/java/com/sun/star/report/pentaho/model/FixedTextElement.java
index 7632ee1fd650..c216f6aad214 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/FixedTextElement.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/FixedTextElement.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import org.jfree.report.structure.Section;
@@ -41,16 +39,17 @@ import org.jfree.report.structure.Section;
*/
public class FixedTextElement extends ReportElement
{
- private final Section content;
- public FixedTextElement()
- {
- content = new Section();
- content.setVirtual(true);
- }
+ private final Section content;
+
+ public FixedTextElement()
+ {
+ content = new Section();
+ content.setVirtual(true);
+ }
- public Section getContent()
- {
- return content;
- }
+ public Section getContent()
+ {
+ return content;
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java b/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java
index 9b509b0b0157..96e9eed7c2fe 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceDeclsSection.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import java.util.HashMap;
@@ -45,34 +43,33 @@ import org.jfree.report.structure.Element;
*/
public class FontFaceDeclsSection extends Element
{
- private final Map fontFaces;
- public FontFaceDeclsSection()
- {
- fontFaces = new HashMap();
- setType("font-face-decls");
- setNamespace(OfficeNamespaces.OFFICE_NS);
- }
+ private final Map fontFaces;
- public void addFontFace(final FontFaceElement style)
- {
- fontFaces.put (style.getStyleName(), style);
- }
+ public FontFaceDeclsSection()
+ {
+ fontFaces = new HashMap();
+ setType("font-face-decls");
+ setNamespace(OfficeNamespaces.OFFICE_NS);
+ }
- public FontFaceElement getFontFace (final String name)
- {
- return (FontFaceElement) fontFaces.get(name);
- }
+ public void addFontFace(final FontFaceElement style)
+ {
+ fontFaces.put(style.getStyleName(), style);
+ }
- public FontFaceElement[] getAllFontFaces()
- {
- return (FontFaceElement[]) fontFaces.values().toArray
- (new FontFaceElement[fontFaces.size()]);
- }
+ public FontFaceElement getFontFace(final String name)
+ {
+ return (FontFaceElement) fontFaces.get(name);
+ }
+ public FontFaceElement[] getAllFontFaces()
+ {
+ return (FontFaceElement[]) fontFaces.values().toArray(new FontFaceElement[fontFaces.size()]);
+ }
- public boolean containsFont(final String fontName)
- {
- return fontFaces.containsKey(fontName);
- }
+ public boolean containsFont(final String fontName)
+ {
+ return fontFaces.containsKey(fontName);
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceElement.java b/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceElement.java
index 48abe9e1f088..46516557f97a 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceElement.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/FontFaceElement.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import org.jfree.report.structure.Section;
@@ -42,19 +40,18 @@ import com.sun.star.report.pentaho.OfficeNamespaces;
*/
public class FontFaceElement extends Section
{
- public FontFaceElement()
- {
- }
-
- public String getStyleName()
- {
- return (String) getAttribute(OfficeNamespaces.STYLE_NS, "name");
- }
- public void setStyleName(final String name)
- {
- setAttribute(OfficeNamespaces.STYLE_NS, "name", name);
- }
+ public FontFaceElement()
+ {
+ }
+ public String getStyleName()
+ {
+ return (String) getAttribute(OfficeNamespaces.STYLE_NS, "name");
+ }
+ public void setStyleName(final String name)
+ {
+ setAttribute(OfficeNamespaces.STYLE_NS, "name", name);
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/FormatCondition.java b/reportbuilder/java/com/sun/star/report/pentaho/model/FormatCondition.java
index 43e84abc4651..2f4d459229d6 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/FormatCondition.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/FormatCondition.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import org.jfree.report.expressions.FormulaExpression;
@@ -41,32 +39,32 @@ import org.jfree.report.expressions.FormulaExpression;
*/
public class FormatCondition
{
- private final FormulaExpression formula;
- private final String styleName;
- private final boolean enabled;
- public FormatCondition(final FormulaExpression formula,
- final String styleName,
- final boolean enabled)
- {
- this.formula = formula;
- this.styleName = styleName;
- this.enabled = enabled;
- }
+ private final FormulaExpression formula;
+ private final String styleName;
+ private final boolean enabled;
+ public FormatCondition(final FormulaExpression formula,
+ final String styleName,
+ final boolean enabled)
+ {
+ this.formula = formula;
+ this.styleName = styleName;
+ this.enabled = enabled;
+ }
- public FormulaExpression getFormula()
- {
- return formula;
- }
+ public FormulaExpression getFormula()
+ {
+ return formula;
+ }
- public String getStyleName()
- {
- return styleName;
- }
+ public String getStyleName()
+ {
+ return styleName;
+ }
- public boolean isEnabled()
- {
- return enabled;
- }
+ public boolean isEnabled()
+ {
+ return enabled;
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/FormattedTextElement.java b/reportbuilder/java/com/sun/star/report/pentaho/model/FormattedTextElement.java
index f902cae1a346..3852cdabb86a 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/FormattedTextElement.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/FormattedTextElement.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import org.jfree.report.expressions.FormulaExpression;
@@ -44,20 +42,20 @@ import org.jfree.report.expressions.FormulaExpression;
*/
public class FormattedTextElement extends ReportElement
{
- private FormulaExpression valueExpression;
- public FormattedTextElement()
- {
- }
+ private FormulaExpression valueExpression;
+ public FormattedTextElement()
+ {
+ }
- public FormulaExpression getValueExpression()
- {
- return valueExpression;
- }
+ public FormulaExpression getValueExpression()
+ {
+ return valueExpression;
+ }
- public void setValueExpression(final FormulaExpression valueExpression)
- {
- this.valueExpression = valueExpression;
- }
+ public void setValueExpression(final FormulaExpression valueExpression)
+ {
+ this.valueExpression = valueExpression;
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/ImageElement.java b/reportbuilder/java/com/sun/star/report/pentaho/model/ImageElement.java
index 195c569a3028..f7832a9618c7 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/ImageElement.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/ImageElement.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import org.jfree.report.expressions.FormulaExpression;
@@ -43,45 +41,49 @@ import com.sun.star.report.OfficeToken;
*/
public class ImageElement extends ReportElement
{
- private FormulaExpression formula;
- public ImageElement()
- {
- }
+ private FormulaExpression formula;
- public FormulaExpression getFormula()
- {
- return formula;
- }
+ public ImageElement()
+ {
+ }
- public void setFormula(final FormulaExpression formula)
- {
- this.formula = formula;
- }
+ public FormulaExpression getFormula()
+ {
+ return formula;
+ }
+ public void setFormula(final FormulaExpression formula)
+ {
+ this.formula = formula;
+ }
- public String getScaleMode()
- {
- String val = (String)getAttribute(OfficeNamespaces.OOREPORT_NS, OfficeToken.SCALE);
- if ( OfficeToken.TRUE.equals(val) )
- val = OfficeToken.ANISOTROPIC;
- else if ( OfficeToken.FALSE.equals(val) || val == null )
- val = OfficeToken.NONE;
- return val;
- }
+ public String getScaleMode()
+ {
+ String val = (String) getAttribute(OfficeNamespaces.OOREPORT_NS, OfficeToken.SCALE);
+ if (OfficeToken.TRUE.equals(val))
+ {
+ val = OfficeToken.ANISOTROPIC;
+ }
+ else if (OfficeToken.FALSE.equals(val) || val == null)
+ {
+ val = OfficeToken.NONE;
+ }
+ return val;
+ }
- public boolean isPreserveIRI()
- {
- return OfficeToken.TRUE.equals(getAttribute(OfficeNamespaces.OOREPORT_NS, OfficeToken.PRESERVE_IRI));
- }
+ public boolean isPreserveIRI()
+ {
+ return OfficeToken.TRUE.equals(getAttribute(OfficeNamespaces.OOREPORT_NS, OfficeToken.PRESERVE_IRI));
+ }
- public void setPreserveIRI(final boolean preserveIRI)
- {
- setAttribute(OfficeNamespaces.OOREPORT_NS, OfficeToken.PRESERVE_IRI, String.valueOf(preserveIRI));
- }
+ public void setPreserveIRI(final boolean preserveIRI)
+ {
+ setAttribute(OfficeNamespaces.OOREPORT_NS, OfficeToken.PRESERVE_IRI, String.valueOf(preserveIRI));
+ }
- public String getImageData()
- {
- return (String) getAttribute(OfficeNamespaces.FORM_NS, OfficeToken.IMAGE_DATA);
- }
+ public String getImageData()
+ {
+ return (String) getAttribute(OfficeNamespaces.FORM_NS, OfficeToken.IMAGE_DATA);
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/ObjectOleElement.java b/reportbuilder/java/com/sun/star/report/pentaho/model/ObjectOleElement.java
index c31c3ae8497a..2950e1c8d2ff 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/ObjectOleElement.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/ObjectOleElement.java
@@ -36,22 +36,26 @@ import java.util.List;
*
* @author Ocke Janssen
*/
-public class ObjectOleElement extends ReportElement{
+public class ObjectOleElement extends ReportElement
+{
private String url;
private final List masterfields;
private final List detailfields;
private String classid;
- public String getClassid() {
+ public String getClassid()
+ {
return classid;
}
- public List getDetailfields() {
+ public List getDetailfields()
+ {
return detailfields;
}
- public List getMasterfields() {
+ public List getMasterfields()
+ {
return masterfields;
}
@@ -61,22 +65,27 @@ public class ObjectOleElement extends ReportElement{
detailfields = new ArrayList();
}
- public String getUrl() {
+ public String getUrl()
+ {
return url;
}
- public void setClassId(final String classid) {
+ public void setClassId(final String classid)
+ {
this.classid = classid;
}
- public void setUrl(final String _url ){
+
+ public void setUrl(final String _url)
+ {
url = _url;
}
- public void addMasterDetailFields(final String master,final String detail){
- if ( master != null ){
+ public void addMasterDetailFields(final String master, final String detail)
+ {
+ if (master != null)
+ {
masterfields.add(master);
detailfields.add(detail == null ? master : detail);
}
}
-
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeDetailSection.java b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeDetailSection.java
index d66c17c29132..a31f66a805b6 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeDetailSection.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeDetailSection.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import org.jfree.report.structure.DetailSection;
@@ -41,7 +39,8 @@ import org.jfree.report.structure.DetailSection;
*/
public class OfficeDetailSection extends DetailSection
{
- public OfficeDetailSection()
- {
- }
+
+ public OfficeDetailSection()
+ {
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeDocument.java b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeDocument.java
index 02727c2b9d2a..41cc7aaa68d4 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeDocument.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeDocument.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import com.sun.star.report.JobProperties;
@@ -43,32 +41,35 @@ import org.jfree.report.JFreeReport;
*/
public class OfficeDocument extends JFreeReport
{
- private OfficeStylesCollection stylesCollection;
- private JobProperties jobProperties;
- public JobProperties getJobProperties() {
+ private OfficeStylesCollection stylesCollection;
+ private JobProperties jobProperties;
+
+ public JobProperties getJobProperties()
+ {
return jobProperties;
}
- public void setJobProperties(final JobProperties jobProperties) {
+ public void setJobProperties(final JobProperties jobProperties)
+ {
this.jobProperties = jobProperties;
}
- public OfficeDocument()
- {
- }
+ public OfficeDocument()
+ {
+ }
- public OfficeStylesCollection getStylesCollection()
- {
- return stylesCollection;
- }
+ public OfficeStylesCollection getStylesCollection()
+ {
+ return stylesCollection;
+ }
- public void setStylesCollection(final OfficeStylesCollection stylesCollection)
- {
- if (stylesCollection == null)
+ public void setStylesCollection(final OfficeStylesCollection stylesCollection)
{
- throw new NullPointerException();
+ if (stylesCollection == null)
+ {
+ throw new NullPointerException();
+ }
+ this.stylesCollection = stylesCollection;
}
- this.stylesCollection = stylesCollection;
- }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeGroup.java b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeGroup.java
index 2717eadea602..eca3f20fe0ef 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeGroup.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeGroup.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import com.sun.star.report.pentaho.OfficeNamespaces;
@@ -46,54 +44,53 @@ import org.jfree.report.structure.Section;
*/
public class OfficeGroup extends Section
{
- public OfficeGroup()
- {
- }
- public boolean isStartNewColumn ()
- {
- return OfficeToken.TRUE.equals
- (getAttribute(OfficeNamespaces.OOREPORT_NS, "start-new-column"));
- }
+ public OfficeGroup()
+ {
+ }
- public boolean isResetPageNumber ()
- {
- return OfficeToken.TRUE.equals
- (getAttribute(OfficeNamespaces.OOREPORT_NS, "reset-page-number"));
- }
+ public boolean isStartNewColumn()
+ {
+ return OfficeToken.TRUE.equals(getAttribute(OfficeNamespaces.OOREPORT_NS, "start-new-column"));
+ }
- public OfficeGroupSection getHeader()
- {
- final OfficeGroupInstanceSection instanceSection =
- (OfficeGroupInstanceSection) findFirstChild(JFreeReportInfo.REPORT_NAMESPACE, "group-instance");
- if (instanceSection == null)
+ public boolean isResetPageNumber()
{
- return null;
+ return OfficeToken.TRUE.equals(getAttribute(OfficeNamespaces.OOREPORT_NS, "reset-page-number"));
}
- return (OfficeGroupSection) instanceSection.findFirstChild
- (OfficeNamespaces.OOREPORT_NS, "group-header");
- }
+ public OfficeGroupSection getHeader()
+ {
+ final OfficeGroupInstanceSection instanceSection =
+ (OfficeGroupInstanceSection) findFirstChild(JFreeReportInfo.REPORT_NAMESPACE, "group-instance");
+ if (instanceSection == null)
+ {
+ return null;
+ }
+ return (OfficeGroupSection) instanceSection.findFirstChild(OfficeNamespaces.OOREPORT_NS, "group-header");
- public OfficeGroupSection getFooter()
- {
- final OfficeGroupInstanceSection instanceSection =
- (OfficeGroupInstanceSection) findFirstChild(JFreeReportInfo.REPORT_NAMESPACE, "group-instance");
- if (instanceSection == null)
+ }
+
+ public OfficeGroupSection getFooter()
{
- return null;
+ final OfficeGroupInstanceSection instanceSection =
+ (OfficeGroupInstanceSection) findFirstChild(JFreeReportInfo.REPORT_NAMESPACE, "group-instance");
+ if (instanceSection == null)
+ {
+ return null;
+ }
+ return (OfficeGroupSection) instanceSection.findFirstChild(OfficeNamespaces.OOREPORT_NS, "group-footer");
+
}
- return (OfficeGroupSection) instanceSection.findFirstChild
- (OfficeNamespaces.OOREPORT_NS, "group-footer");
- }
- public Expression getGroupingExpression(){
- final OfficeGroupInstanceSection instanceSection =
- (OfficeGroupInstanceSection) findFirstChild(JFreeReportInfo.REPORT_NAMESPACE, "group-instance");
- if (instanceSection == null)
+ public Expression getGroupingExpression()
{
- return null;
+ final OfficeGroupInstanceSection instanceSection =
+ (OfficeGroupInstanceSection) findFirstChild(JFreeReportInfo.REPORT_NAMESPACE, "group-instance");
+ if (instanceSection == null)
+ {
+ return null;
+ }
+ return instanceSection.getGroupingExpression();
}
- return instanceSection.getGroupingExpression();
- }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeGroupInstanceSection.java b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeGroupInstanceSection.java
index 26ec1d8f9c6d..478cc1b73f6d 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeGroupInstanceSection.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeGroupInstanceSection.java
@@ -9,7 +9,8 @@ import org.jfree.report.structure.Group;
*/
public class OfficeGroupInstanceSection extends Group
{
- public OfficeGroupInstanceSection()
- {
- }
+
+ public OfficeGroupInstanceSection()
+ {
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterPage.java b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterPage.java
index 6dca280618cc..209f0866271a 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterPage.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterPage.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import org.jfree.report.structure.Section;
@@ -44,29 +42,27 @@ import com.sun.star.report.pentaho.OfficeNamespaces;
public class OfficeMasterPage extends Section
{
- public OfficeMasterPage()
- {
- }
-
- public String getStyleName()
- {
- return (String) getAttribute(OfficeNamespaces.STYLE_NS, "name");
- }
-
- public void setStyleName(final String name)
- {
- setAttribute(OfficeNamespaces.STYLE_NS, "name", name);
- }
+ public OfficeMasterPage()
+ {
+ }
- public String getPageLayout()
- {
- return (String) getAttribute(OfficeNamespaces.STYLE_NS, "page-layout-name");
- }
+ public String getStyleName()
+ {
+ return (String) getAttribute(OfficeNamespaces.STYLE_NS, "name");
+ }
- public void setPageLayout(final String name)
- {
- setAttribute(OfficeNamespaces.STYLE_NS, "page-layout-name", name);
- }
+ public void setStyleName(final String name)
+ {
+ setAttribute(OfficeNamespaces.STYLE_NS, "name", name);
+ }
+ public String getPageLayout()
+ {
+ return (String) getAttribute(OfficeNamespaces.STYLE_NS, "page-layout-name");
+ }
+ public void setPageLayout(final String name)
+ {
+ setAttribute(OfficeNamespaces.STYLE_NS, "page-layout-name", name);
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterStyles.java b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterStyles.java
index fed1f04db958..866a604c3f9f 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterStyles.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeMasterStyles.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import java.util.HashMap;
@@ -51,37 +49,37 @@ import org.jfree.report.structure.Section;
*/
public class OfficeMasterStyles extends Element
{
- private final Map masterPages;
- private final Section otherNodes;
- public OfficeMasterStyles()
- {
- masterPages = new HashMap();
- otherNodes = new Section();
- }
+ private final Map masterPages;
+ private final Section otherNodes;
- public void addMasterPage (final OfficeMasterPage masterPage)
- {
- if (masterPage == null)
+ public OfficeMasterStyles()
{
- throw new NullPointerException();
+ masterPages = new HashMap();
+ otherNodes = new Section();
}
- this.masterPages.put(masterPage.getStyleName(), masterPage);
- }
- public OfficeMasterPage getMasterPage (final String name)
- {
- return (OfficeMasterPage) masterPages.get (name);
- }
+ public void addMasterPage(final OfficeMasterPage masterPage)
+ {
+ if (masterPage == null)
+ {
+ throw new NullPointerException();
+ }
+ this.masterPages.put(masterPage.getStyleName(), masterPage);
+ }
- public OfficeMasterPage[] getAllMasterPages()
- {
- return (OfficeMasterPage[]) masterPages.values().toArray
- (new OfficeMasterPage[masterPages.size()]);
- }
+ public OfficeMasterPage getMasterPage(final String name)
+ {
+ return (OfficeMasterPage) masterPages.get(name);
+ }
- public Section getOtherNodes()
- {
- return otherNodes;
- }
+ public OfficeMasterPage[] getAllMasterPages()
+ {
+ return (OfficeMasterPage[]) masterPages.values().toArray(new OfficeMasterPage[masterPages.size()]);
+ }
+
+ public Section getOtherNodes()
+ {
+ return otherNodes;
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeReport.java b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeReport.java
index 74afacbc4026..5804396b36be 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeReport.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeReport.java
@@ -42,7 +42,8 @@ import org.jfree.report.structure.Node;
* @author Thomas Morgner
* @since 02.03.2007
*/
-public class OfficeReport extends Element {
+public class OfficeReport extends Element
+{
private Node pageHeader;
private Node pageFooter;
@@ -54,78 +55,97 @@ public class OfficeReport extends Element {
private Node preBodySection;
private Node postBodySection;
- public Node getPostBodySection() {
+ public Node getPostBodySection()
+ {
return postBodySection;
}
- public void setPostBodySection(final Node postBodySection) {
+ public void setPostBodySection(final Node postBodySection)
+ {
this.postBodySection = postBodySection;
}
- public Node getPreBodySection() {
+ public Node getPreBodySection()
+ {
return preBodySection;
}
- public void setPreBodySection(final Node preBodySection) {
+ public void setPreBodySection(final Node preBodySection)
+ {
this.preBodySection = preBodySection;
}
- public OfficeReport() {
+ public OfficeReport()
+ {
}
- public Node getPageHeader() {
+ public Node getPageHeader()
+ {
return pageHeader;
}
- public void setPageHeader(final Node pageHeader) {
+ public void setPageHeader(final Node pageHeader)
+ {
this.pageHeader = pageHeader;
}
- public Node getPageFooter() {
+ public Node getPageFooter()
+ {
return pageFooter;
}
- public void setPageFooter(final Node pageFooter) {
+ public void setPageFooter(final Node pageFooter)
+ {
this.pageFooter = pageFooter;
}
- public Node getColumnHeader() {
+ public Node getColumnHeader()
+ {
return columnHeader;
}
- public void setColumnHeader(final Node columnHeader) {
+ public void setColumnHeader(final Node columnHeader)
+ {
this.columnHeader = columnHeader;
}
- public Node getColumnFooter() {
+ public Node getColumnFooter()
+ {
return columnFooter;
}
- public void setColumnFooter(final Node columnFooter) {
+ public void setColumnFooter(final Node columnFooter)
+ {
this.columnFooter = columnFooter;
}
- public Node getReportHeader() {
+ public Node getReportHeader()
+ {
return reportHeader;
}
- public void setReportHeader(final Node reportHeader) {
+ public void setReportHeader(final Node reportHeader)
+ {
this.reportHeader = reportHeader;
}
- public Node getReportFooter() {
+ public Node getReportFooter()
+ {
return reportFooter;
}
- public void setReportFooter(final Node reportFooter) {
+ public void setReportFooter(final Node reportFooter)
+ {
this.reportFooter = reportFooter;
}
- public Node getBodySection() {
+ public Node getBodySection()
+ {
return bodySection;
}
- public void setBodySection(final Node bodySection) {
+ public void setBodySection(final Node bodySection)
+ {
this.bodySection = bodySection;
}
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeStyle.java b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeStyle.java
index 5f6bef8f1492..acb4b88359d0 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeStyle.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeStyle.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import com.sun.star.report.OfficeToken;
@@ -44,91 +42,91 @@ import org.jfree.report.structure.Section;
*/
public class OfficeStyle extends Section
{
- public OfficeStyle()
- {
- setNamespace(OfficeNamespaces.STYLE_NS);
- setType("style");
- }
-
- public String getStyleName()
- {
- return (String) getAttribute(OfficeNamespaces.STYLE_NS, "name");
- }
-
- public void setStyleName(final String name)
- {
- setAttribute(OfficeNamespaces.STYLE_NS, "name", name);
- }
-
- /**
- * A parent style name must be a common style (it cannot be an automatic
- * style) and has to exist. If no parent style is given, an implementation
- * specific default style is used.
- *
- * @return
- */
- public String getStyleParent()
- {
- return (String) getAttribute(OfficeNamespaces.STYLE_NS, "parent-style-name");
- }
-
- public void setStyleParent(final String parentName)
- {
- setAttribute(OfficeNamespaces.STYLE_NS, "parent-style-name", parentName);
- }
-
- public String getStyleFamily()
- {
- return (String) getAttribute(OfficeNamespaces.STYLE_NS, "family");
- }
-
- public void setStyleFamily(final String family)
- {
- setAttribute(OfficeNamespaces.STYLE_NS, "family", family);
- }
+
+ public OfficeStyle()
+ {
+ setNamespace(OfficeNamespaces.STYLE_NS);
+ setType("style");
+ }
+
+ public String getStyleName()
+ {
+ return (String) getAttribute(OfficeNamespaces.STYLE_NS, "name");
+ }
+
+ public void setStyleName(final String name)
+ {
+ setAttribute(OfficeNamespaces.STYLE_NS, "name", name);
+ }
+
+ /**
+ * A parent style name must be a common style (it cannot be an automatic
+ * style) and has to exist. If no parent style is given, an implementation
+ * specific default style is used.
+ *
+ * @return
+ */
+ public String getStyleParent()
+ {
+ return (String) getAttribute(OfficeNamespaces.STYLE_NS, "parent-style-name");
+ }
+
+ public void setStyleParent(final String parentName)
+ {
+ setAttribute(OfficeNamespaces.STYLE_NS, "parent-style-name", parentName);
+ }
+
+ public String getStyleFamily()
+ {
+ return (String) getAttribute(OfficeNamespaces.STYLE_NS, "family");
+ }
+
+ public void setStyleFamily(final String family)
+ {
+ setAttribute(OfficeNamespaces.STYLE_NS, "family", family);
+ }
// public String getMasterPageName()
// {
// return (String) getAttribute(OfficeNamespaces.STYLE_NS, "master-page-name");
// }
-
- public Element getParagraphProperties ()
- {
- return findFirstChild(OfficeNamespaces.STYLE_NS, "paragraph-properties");
- }
-
- public Element getTextProperties ()
- {
- return findFirstChild(OfficeNamespaces.STYLE_NS, "text-properties");
- }
-
- public Element getTableRowProperties ()
- {
- return findFirstChild(OfficeNamespaces.STYLE_NS, "table-row-properties");
- }
-
- public Element getTableProperties ()
- {
- return findFirstChild(OfficeNamespaces.STYLE_NS, "table-properties");
- }
-
- public Element getTableColumnProperties ()
- {
- return findFirstChild(OfficeNamespaces.STYLE_NS, "table-column-properties");
- }
-
- public Element getSectionProperties ()
- {
- return findFirstChild(OfficeNamespaces.STYLE_NS, "section-properties");
- }
-
- public Element getTableCellProperties ()
- {
- return findFirstChild(OfficeNamespaces.STYLE_NS, "table-cell-properties");
- }
-
- public Element getGraphicProperties ()
- {
- return findFirstChild(OfficeNamespaces.STYLE_NS, OfficeToken.GRAPHIC_PROPERTIES);
- }
+ public Element getParagraphProperties()
+ {
+ return findFirstChild(OfficeNamespaces.STYLE_NS, "paragraph-properties");
+ }
+
+ public Element getTextProperties()
+ {
+ return findFirstChild(OfficeNamespaces.STYLE_NS, "text-properties");
+ }
+
+ public Element getTableRowProperties()
+ {
+ return findFirstChild(OfficeNamespaces.STYLE_NS, "table-row-properties");
+ }
+
+ public Element getTableProperties()
+ {
+ return findFirstChild(OfficeNamespaces.STYLE_NS, "table-properties");
+ }
+
+ public Element getTableColumnProperties()
+ {
+ return findFirstChild(OfficeNamespaces.STYLE_NS, "table-column-properties");
+ }
+
+ public Element getSectionProperties()
+ {
+ return findFirstChild(OfficeNamespaces.STYLE_NS, "section-properties");
+ }
+
+ public Element getTableCellProperties()
+ {
+ return findFirstChild(OfficeNamespaces.STYLE_NS, "table-cell-properties");
+ }
+
+ public Element getGraphicProperties()
+ {
+ return findFirstChild(OfficeNamespaces.STYLE_NS, OfficeToken.GRAPHIC_PROPERTIES);
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeStyles.java b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeStyles.java
index 29f2a923dae3..aa08f75e38a4 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeStyles.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeStyles.java
@@ -91,7 +91,7 @@ public class OfficeStyles extends Element
final StyleKey styleKey = (StyleKey) obj;
- if (!family.equals(styleKey.family) || ( name != null ? !name.equals(styleKey.name) : styleKey.name != null) )
+ if (!family.equals(styleKey.family) || (name != null ? !name.equals(styleKey.name) : styleKey.name != null))
{
return false;
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeStylesCollection.java b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeStylesCollection.java
index 58e6d4639add..a4a4d4b544ab 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeStylesCollection.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeStylesCollection.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import com.sun.star.report.pentaho.OfficeNamespaces;
@@ -54,73 +52,74 @@ import org.jfree.report.structure.Element;
*/
public class OfficeStylesCollection extends Element
{
- // Font-face declarations are copied as is. We simply merge them by adding
- // them all in one set. This may result in duplicate entries, but as the
- // fileformat does not forbid that, it therefore must be ok.
- private final FontFaceDeclsSection fontFaceDecls;
- private final OfficeStyles automaticStyles;
- private final OfficeStyles commonStyles;
- private final OfficeMasterStyles masterStyles;
+ // Font-face declarations are copied as is. We simply merge them by adding
+ // them all in one set. This may result in duplicate entries, but as the
+ // fileformat does not forbid that, it therefore must be ok.
- public OfficeStylesCollection()
- {
- fontFaceDecls = new FontFaceDeclsSection();
+ private final FontFaceDeclsSection fontFaceDecls;
+ private final OfficeStyles automaticStyles;
+ private final OfficeStyles commonStyles;
+ private final OfficeMasterStyles masterStyles;
- automaticStyles = new OfficeStyles();
- automaticStyles.setType("automatic-styles");
- automaticStyles.setNamespace(OfficeNamespaces.OFFICE_NS);
+ public OfficeStylesCollection()
+ {
+ fontFaceDecls = new FontFaceDeclsSection();
- commonStyles = new OfficeStyles();
- commonStyles.setType("styles");
- commonStyles.setNamespace(OfficeNamespaces.OFFICE_NS);
+ automaticStyles = new OfficeStyles();
+ automaticStyles.setType("automatic-styles");
+ automaticStyles.setNamespace(OfficeNamespaces.OFFICE_NS);
- masterStyles = new OfficeMasterStyles();
- masterStyles.setType("master-styles");
- masterStyles.setNamespace(OfficeNamespaces.OFFICE_NS);
- }
+ commonStyles = new OfficeStyles();
+ commonStyles.setType("styles");
+ commonStyles.setNamespace(OfficeNamespaces.OFFICE_NS);
- public OfficeStyle getStyle(final String family, final String name)
- {
- final OfficeStyle commonStyle = commonStyles.getStyle(family, name);
- if (commonStyle != null)
- {
- return commonStyle;
+ masterStyles = new OfficeMasterStyles();
+ masterStyles.setType("master-styles");
+ masterStyles.setNamespace(OfficeNamespaces.OFFICE_NS);
}
- final OfficeStyle autoStyle = automaticStyles.getStyle(family, name);
- if (autoStyle != null)
+
+ public OfficeStyle getStyle(final String family, final String name)
{
- return autoStyle;
- }
+ final OfficeStyle commonStyle = commonStyles.getStyle(family, name);
+ if (commonStyle != null)
+ {
+ return commonStyle;
+ }
+ final OfficeStyle autoStyle = automaticStyles.getStyle(family, name);
+ if (autoStyle != null)
+ {
+ return autoStyle;
+ }
- // And later: Autogenerate one of the default styles.
- // However, at this moment, we dont have a clue about the default styles
- // at all. Maybe we should add them to make this implementation more robust
- // against invalid documents.
- return null;
- }
+ // And later: Autogenerate one of the default styles.
+ // However, at this moment, we dont have a clue about the default styles
+ // at all. Maybe we should add them to make this implementation more robust
+ // against invalid documents.
+ return null;
+ }
- public boolean containsStyle (final String family, final String name)
- {
- return (getStyle(family, name) != null);
- }
+ public boolean containsStyle(final String family, final String name)
+ {
+ return (getStyle(family, name) != null);
+ }
- public OfficeStyles getAutomaticStyles()
- {
- return automaticStyles;
- }
+ public OfficeStyles getAutomaticStyles()
+ {
+ return automaticStyles;
+ }
- public OfficeStyles getCommonStyles()
- {
- return commonStyles;
- }
+ public OfficeStyles getCommonStyles()
+ {
+ return commonStyles;
+ }
- public OfficeMasterStyles getMasterStyles()
- {
- return masterStyles;
- }
+ public OfficeMasterStyles getMasterStyles()
+ {
+ return masterStyles;
+ }
- public FontFaceDeclsSection getFontFaceDecls()
- {
- return fontFaceDecls;
- }
+ public FontFaceDeclsSection getFontFaceDecls()
+ {
+ return fontFaceDecls;
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeTableSection.java b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeTableSection.java
index 96d6a4dd7e9e..bf77ebcd1253 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeTableSection.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/OfficeTableSection.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import org.jfree.report.structure.Section;
@@ -40,7 +38,8 @@ import org.jfree.report.structure.Section;
*/
public class OfficeTableSection extends Section
{
- public OfficeTableSection()
- {
- }
+
+ public OfficeTableSection()
+ {
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/PageLayout.java b/reportbuilder/java/com/sun/star/report/pentaho/model/PageLayout.java
index 29b916778ab7..9499d0557f29 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/PageLayout.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/PageLayout.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import org.jfree.report.structure.Section;
@@ -44,29 +42,29 @@ import com.sun.star.report.pentaho.OfficeNamespaces;
public class PageLayout extends Section
{
- public PageLayout()
- {
- setNamespace(OfficeNamespaces.STYLE_NS);
- setType("page-layout");
- }
+ public PageLayout()
+ {
+ setNamespace(OfficeNamespaces.STYLE_NS);
+ setType("page-layout");
+ }
- public String getStyleName()
- {
- return (String) getAttribute(OfficeNamespaces.STYLE_NS, "name");
- }
+ public String getStyleName()
+ {
+ return (String) getAttribute(OfficeNamespaces.STYLE_NS, "name");
+ }
- public void setStyleName(final String name)
- {
- setAttribute(OfficeNamespaces.STYLE_NS, "name", name);
- }
+ public void setStyleName(final String name)
+ {
+ setAttribute(OfficeNamespaces.STYLE_NS, "name", name);
+ }
- public Section getHeaderStyle ()
- {
- return (Section) findFirstChild(OfficeNamespaces.STYLE_NS, "header-style");
- }
+ public Section getHeaderStyle()
+ {
+ return (Section) findFirstChild(OfficeNamespaces.STYLE_NS, "header-style");
+ }
- public Section getFooterStyle ()
- {
- return (Section) findFirstChild(OfficeNamespaces.STYLE_NS, "footer-style");
- }
+ public Section getFooterStyle()
+ {
+ return (Section) findFirstChild(OfficeNamespaces.STYLE_NS, "footer-style");
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/RawText.java b/reportbuilder/java/com/sun/star/report/pentaho/model/RawText.java
index 679dd30fdff3..8dd1dcf7430d 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/RawText.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/RawText.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import org.jfree.report.structure.StaticText;
@@ -43,8 +41,9 @@ import org.jfree.report.structure.StaticText;
*/
public class RawText extends StaticText
{
- public RawText(final String text)
- {
- super(text);
- }
+
+ public RawText(final String text)
+ {
+ super(text);
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/ReportElement.java b/reportbuilder/java/com/sun/star/report/pentaho/model/ReportElement.java
index df1de0154e6a..a3c9838be19d 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/ReportElement.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/ReportElement.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import java.util.ArrayList;
@@ -47,69 +45,67 @@ import java.util.List;
*/
public abstract class ReportElement extends Element
{
- private final List formatConditions;
- protected ReportElement()
- {
- formatConditions = new ArrayList();
- }
+ private final List formatConditions;
- /**
- * Checks the current group and prints this element only if the current row is
- * the first row for that particular group.
- *
- * @return true, if the element should only be printed in the first row of the
- * current group, false otherwise.
- */
- public boolean isPrintWhenGroupChanges()
- {
- return OfficeToken.TRUE.equals(getAttribute
- (OfficeNamespaces.OOREPORT_NS, "print-when-group-changes"));
- }
+ protected ReportElement()
+ {
+ formatConditions = new ArrayList();
+ }
- public void setPrintWhenGroupChanges(final boolean printWhenGroupChanges)
- {
- setAttribute(OfficeNamespaces.OOREPORT_NS, "print-when-group-changes",
- String.valueOf(printWhenGroupChanges));
- }
+ /**
+ * Checks the current group and prints this element only if the current row is
+ * the first row for that particular group.
+ *
+ * @return true, if the element should only be printed in the first row of the
+ * current group, false otherwise.
+ */
+ public boolean isPrintWhenGroupChanges()
+ {
+ return OfficeToken.TRUE.equals(getAttribute(OfficeNamespaces.OOREPORT_NS, "print-when-group-changes"));
+ }
- /**
- * Checks, whether the printed value has been changed since the last run. The
- * element will only be printed, if there was at least one change.
- *
- * @return true, if repeated values should be printed, false if repeated
- * values should be surpressed.
- */
- public boolean isPrintRepeatedValues()
- {
- return OfficeToken.TRUE.equals(getAttribute
- (OfficeNamespaces.OOREPORT_NS, "print-repeated-values"));
- }
+ public void setPrintWhenGroupChanges(final boolean printWhenGroupChanges)
+ {
+ setAttribute(OfficeNamespaces.OOREPORT_NS, "print-when-group-changes",
+ String.valueOf(printWhenGroupChanges));
+ }
- public void setPrintRepeatedValues(final boolean printRepeatedValues)
- {
- setAttribute(OfficeNamespaces.OOREPORT_NS, "print-repeated-values",
- String.valueOf(printRepeatedValues));
- }
+ /**
+ * Checks, whether the printed value has been changed since the last run. The
+ * element will only be printed, if there was at least one change.
+ *
+ * @return true, if repeated values should be printed, false if repeated
+ * values should be surpressed.
+ */
+ public boolean isPrintRepeatedValues()
+ {
+ return OfficeToken.TRUE.equals(getAttribute(OfficeNamespaces.OOREPORT_NS, "print-repeated-values"));
+ }
- public void addFormatCondition(final FormatCondition formatCondition)
- {
- if (formatCondition == null)
+ public void setPrintRepeatedValues(final boolean printRepeatedValues)
{
- throw new NullPointerException();
+ setAttribute(OfficeNamespaces.OOREPORT_NS, "print-repeated-values",
+ String.valueOf(printRepeatedValues));
}
- this.formatConditions.add(formatCondition);
- }
+ public void addFormatCondition(final FormatCondition formatCondition)
+ {
+ if (formatCondition == null)
+ {
+ throw new NullPointerException();
+ }
+
+ this.formatConditions.add(formatCondition);
+ }
- public FormatCondition[] getFormatConditions ()
- {
- return (FormatCondition[]) this.formatConditions.toArray
- (new FormatCondition[this.formatConditions.size()]);
- }
+ public FormatCondition[] getFormatConditions()
+ {
+ return (FormatCondition[]) this.formatConditions.toArray(new FormatCondition[this.formatConditions.size()]);
+ }
- public int getFormatConditionCount ()
- {
- return formatConditions.size();
- }
+ public int getFormatConditionCount()
+ {
+ return formatConditions.size();
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/TableCellElement.java b/reportbuilder/java/com/sun/star/report/pentaho/model/TableCellElement.java
index 74334dc11c52..501a8dbe8131 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/TableCellElement.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/TableCellElement.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import org.jfree.report.structure.Section;
@@ -42,7 +40,7 @@ import org.jfree.report.structure.Section;
public class TableCellElement extends Section
{
- public TableCellElement()
- {
- }
+ public TableCellElement()
+ {
+ }
}
diff --git a/reportbuilder/java/com/sun/star/report/pentaho/model/VariablesDeclarationSection.java b/reportbuilder/java/com/sun/star/report/pentaho/model/VariablesDeclarationSection.java
index 3dcdc302ef7a..fc03e863ff64 100644
--- a/reportbuilder/java/com/sun/star/report/pentaho/model/VariablesDeclarationSection.java
+++ b/reportbuilder/java/com/sun/star/report/pentaho/model/VariablesDeclarationSection.java
@@ -27,8 +27,6 @@
* for a copy of the LGPLv3 License.
*
************************************************************************/
-
-
package com.sun.star.report.pentaho.model;
import org.jfree.report.JFreeReportInfo;
@@ -49,9 +47,9 @@ import org.jfree.report.structure.Section;
public class VariablesDeclarationSection extends Section
{
- public VariablesDeclarationSection()
- {
- setNamespace(JFreeReportInfo.REPORT_NAMESPACE);
- setType("variables-section");
- }
+ public VariablesDeclarationSection()
+ {
+ setNamespace(JFreeReportInfo.REPORT_NAMESPACE);
+ setType("variables-section");
+ }
}