summaryrefslogtreecommitdiff
path: root/reportbuilder/java/org/libreoffice/report/pentaho/output
diff options
context:
space:
mode:
Diffstat (limited to 'reportbuilder/java/org/libreoffice/report/pentaho/output')
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/ImageProducer.java2
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java1
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportProcessor.java2
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportTarget.java10
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportProcessor.java1
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java12
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/text/MasterPageFactory.java4
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportProcessor.java2
-rw-r--r--reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java13
9 files changed, 47 insertions, 0 deletions
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/ImageProducer.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/ImageProducer.java
index c4d545c49d85..3f39b3e9359e 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/ImageProducer.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/ImageProducer.java
@@ -114,6 +114,7 @@ public class ImageProducer
this.keyData = keyData;
}
+ @Override
public boolean equals(final Object o)
{
if (this != o)
@@ -133,6 +134,7 @@ public class ImageProducer
return true;
}
+ @Override
public int hashCode()
{
if (hashCode != null)
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java
index f58cf30c5e4b..5d9e6dba5d4e 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/OfficeDocumentReportTarget.java
@@ -238,6 +238,7 @@ public abstract class OfficeDocumentReportTarget extends AbstractReportTarget
this.groupWithRepeatingSection = groupWithRepeatingSection;
}
+ @Override
public String toString()
{
return "GroupContext{" + "parent=" + parent + ", iterationCount=" + iterationCount + ", groupWithRepeatingSection=" + groupWithRepeatingSection + '}';
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportProcessor.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportProcessor.java
index f8256bc6ff57..544b40506a56 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportProcessor.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportProcessor.java
@@ -77,6 +77,7 @@ public class ChartRawReportProcessor extends SinglePassReportProcessor
this.dataSourceFactory = dataSourceFactory;
}
+ @Override
protected ReportTarget createReportTarget(final ReportJob job)
throws ReportProcessingException
{
@@ -87,6 +88,7 @@ public class ChartRawReportProcessor extends SinglePassReportProcessor
inputRepository, outputRepository, targetName, imageService, dataSourceFactory);
}
+ @Override
public void processReport(final ReportJob job) throws ReportDataFactoryException, DataSourceException,
ReportProcessingException
{
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportTarget.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportTarget.java
index 2658942fe33c..05ca93ad990e 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportTarget.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/chart/ChartRawReportTarget.java
@@ -62,6 +62,7 @@ public class ChartRawReportTarget extends OfficeDocumentReportTarget
super(reportJob, resourceManager, baseResource, inputRepository, outputRepository, target, imageService, dataSourceFactory);
}
+ @Override
protected String getTargetMimeType()
{
return "application/vnd.oasis.opendocument.chart";
@@ -77,6 +78,7 @@ public class ChartRawReportTarget extends OfficeDocumentReportTarget
return "raw/" + PentahoReportEngineMetaData.OPENDOCUMENT_CHART;
}
+ @Override
protected void startContent(final AttributeMap attrs) throws IOException, DataSourceException, ReportProcessingException
{
inFilterElements = false;
@@ -88,6 +90,7 @@ public class ChartRawReportTarget extends OfficeDocumentReportTarget
++closeTags;
}
+ @Override
protected void endContent(final AttributeMap attrs) throws IOException, DataSourceException, ReportProcessingException
{
final XmlWriter xmlWriter = getXmlWriter();
@@ -98,15 +101,18 @@ public class ChartRawReportTarget extends OfficeDocumentReportTarget
}
}
+ @Override
protected void startReportSection(final AttributeMap attrs, final int role)
throws ReportProcessingException
{
}
+ @Override
protected void endReportSection(final AttributeMap attrs, final int role)
{
}
+ @Override
protected void startOther(final AttributeMap attrs) throws IOException, DataSourceException, ReportProcessingException
{
final String namespace = ReportTargetUtil.getNamespaceFromAttribute(attrs);
@@ -129,6 +135,7 @@ public class ChartRawReportTarget extends OfficeDocumentReportTarget
return OfficeToken.TABLE_HEADER_COLUMNS.equals(elementType) || OfficeToken.TABLE_HEADER_ROWS.equals(elementType) || OfficeToken.TABLE_COLUMNS.equals(elementType);
}
+ @Override
protected void endOther(final AttributeMap attrs) throws IOException, DataSourceException, ReportProcessingException
{
if (tableRowsStarted && getCurrentRole() == ROLE_TEMPLATE)
@@ -169,6 +176,7 @@ public class ChartRawReportTarget extends OfficeDocumentReportTarget
}
}
+ @Override
public void processContent(final DataFlags value)
throws DataSourceException, ReportProcessingException
{
@@ -227,6 +235,7 @@ public class ChartRawReportTarget extends OfficeDocumentReportTarget
}
+ @Override
public void processText(final String text) throws DataSourceException, ReportProcessingException
{
if (inFilterElements && tableCount > 1)
@@ -236,6 +245,7 @@ public class ChartRawReportTarget extends OfficeDocumentReportTarget
super.processText(text);
}
+ @Override
public void endReport(final ReportStructureRoot report)
throws DataSourceException, ReportProcessingException
{
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportProcessor.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportProcessor.java
index e61194797c70..777fa20e9333 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportProcessor.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportProcessor.java
@@ -95,6 +95,7 @@ public class SpreadsheetRawReportProcessor extends AbstractReportProcessor
processReportRun(job, reportTarget);
}
+ @Override
protected ReportContext createReportContext(final ReportJob job,
final ReportTarget target)
{
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java
index dbe1f4ce1abb..8c4807c28ddb 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/spreadsheet/SpreadsheetRawReportTarget.java
@@ -134,11 +134,13 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
}
}
+ @Override
public boolean equals(final Object obj)
{
return obj instanceof ColumnBoundary && ((ColumnBoundary) obj).boundary == boundary;
}
+ @Override
public int hashCode()
{
assert false : "hashCode not designed";
@@ -180,6 +182,7 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
oleHandled = false;
}
+ @Override
public void startOther(final AttributeMap attrs) throws DataSourceException, ReportProcessingException
{
if (ReportTargetUtil.isElementOfType(JFreeReportInfo.REPORT_NAMESPACE, OfficeToken.OBJECT_OLE, attrs))
@@ -264,6 +267,7 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
}
}
+ @Override
protected void startReportSection(final AttributeMap attrs, final int role) throws ReportProcessingException
{
if ((role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_HEADER || role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_FOOTER) && (!PageSection.isPrintWithReportHeader(attrs) || !PageSection.isPrintWithReportFooter(attrs)))
@@ -276,6 +280,7 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
}
}
+ @Override
protected void endReportSection(final AttributeMap attrs, final int role) throws IOException, ReportProcessingException
{
if ((role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_HEADER || role == OfficeDocumentReportTarget.ROLE_SPREADSHEET_PAGE_FOOTER) && (!PageSection.isPrintWithReportHeader(attrs) || !PageSection.isPrintWithReportFooter(attrs)))
@@ -609,6 +614,7 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
}
}
+ @Override
protected void endOther(final AttributeMap attrs) throws DataSourceException, ReportProcessingException
{
if (ReportTargetUtil.isElementOfType(JFreeReportInfo.REPORT_NAMESPACE, OfficeToken.OBJECT_OLE, attrs) || oleHandled)
@@ -693,6 +699,7 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
}
+ @Override
public void processText(final String text) throws DataSourceException, ReportProcessingException
{
if (!(isRepeatingSection() || isElementBoundaryCollectionPass()))
@@ -702,6 +709,7 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
}
}
+ @Override
public void processContent(final DataFlags value) throws DataSourceException, ReportProcessingException
{
if (!(isRepeatingSection() || isElementBoundaryCollectionPass()))
@@ -716,6 +724,7 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
return "spreadsheet";
}
+ @Override
protected void startContent(final AttributeMap attrs) throws IOException, DataSourceException,
ReportProcessingException
{
@@ -795,6 +804,7 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
return masterPage.getStyleName();
}
+ @Override
protected void endContent(final AttributeMap attrs) throws IOException, DataSourceException,
ReportProcessingException
{
@@ -807,6 +817,7 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
}
}
+ @Override
public void endReport(final ReportStructureRoot report) throws DataSourceException, ReportProcessingException
{
super.endReport(report);
@@ -928,6 +939,7 @@ public class SpreadsheetRawReportTarget extends OfficeDocumentReportTarget
return span;
}
+ @Override
protected String getTargetMimeType()
{
return "application/vnd.oasis.opendocument.spreadsheet";
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/text/MasterPageFactory.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/text/MasterPageFactory.java
index 82cf13a9a978..5f0bb70a5255 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/text/MasterPageFactory.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/text/MasterPageFactory.java
@@ -58,6 +58,7 @@ public class MasterPageFactory
this.pageFooter = pageFooter;
}
+ @Override
public boolean equals(final Object o)
{
if (this != o)
@@ -89,6 +90,7 @@ public class MasterPageFactory
return true;
}
+ @Override
public int hashCode()
{
int result = (template != null ? template.hashCode() : 0);
@@ -115,6 +117,7 @@ public class MasterPageFactory
this.footerHeight = footerHeight;
}
+ @Override
public boolean equals(final Object o)
{
if (this == o)
@@ -143,6 +146,7 @@ public class MasterPageFactory
}
+ @Override
public int hashCode()
{
int result;
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportProcessor.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportProcessor.java
index b0dd06eab9ff..8718043bf389 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportProcessor.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportProcessor.java
@@ -80,6 +80,7 @@ public class TextRawReportProcessor extends SinglePassReportProcessor
this.dataSourceFactory = dataSourceFactory;
}
+ @Override
protected ReportTarget createReportTarget(final ReportJob job)
throws ReportProcessingException
{
@@ -90,6 +91,7 @@ public class TextRawReportProcessor extends SinglePassReportProcessor
inputRepository, outputRepository, targetName, imageService, dataSourceFactory);
}
+ @Override
protected ReportContext createReportContext(final ReportJob job,
final ReportTarget target)
{
diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java b/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java
index 486b62d2eee3..266f59eeaed7 100644
--- a/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java
+++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/text/TextRawReportTarget.java
@@ -140,6 +140,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
this.tableLayoutConfig = TABLE_LAYOUT_SINGLE_DETAIL_TABLE;
}
+ @Override
protected String getTargetMimeType()
{
return "application/vnd.oasis.opendocument.text";
@@ -425,6 +426,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
* @throws org.jfree.report.ReportProcessingException
* if some other error occured.
*/
+ @Override
public void startReport(final ReportStructureRoot report)
throws DataSourceException, ReportProcessingException
{
@@ -505,6 +507,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
return variablesSectionStyle;
}
+ @Override
protected void startContent(final AttributeMap attrs)
throws IOException, DataSourceException, ReportProcessingException
{
@@ -527,6 +530,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
+ @Override
protected void startOther(final AttributeMap attrs)
throws IOException, DataSourceException, ReportProcessingException
{
@@ -1049,6 +1053,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
+ @Override
protected void startReportSection(final AttributeMap attrs, final int role)
throws ReportProcessingException
{
@@ -1098,6 +1103,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
}
+ @Override
protected void startGroup(final AttributeMap attrs)
{
super.startGroup(attrs);
@@ -1134,6 +1140,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
}
+ @Override
protected void startGroupInstance(final AttributeMap attrs)
{
if (getGroupContext().isGroupWithRepeatingSection())
@@ -1142,6 +1149,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
}
+ @Override
protected void endGroup(final AttributeMap attrs)
throws ReportProcessingException
{
@@ -1174,6 +1182,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
}
+ @Override
protected void endReportSection(final AttributeMap attrs, final int role)
throws IOException, ReportProcessingException
{
@@ -1234,6 +1243,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
+ @Override
public void endReport(final ReportStructureRoot report)
throws DataSourceException, ReportProcessingException
{
@@ -1277,6 +1287,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
}
+ @Override
protected void endOther(final AttributeMap attrs)
throws IOException, DataSourceException, ReportProcessingException
{
@@ -1383,6 +1394,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
}
+ @Override
protected void endGroupBody(final AttributeMap attrs)
throws IOException
{
@@ -1396,6 +1408,7 @@ public class TextRawReportTarget extends OfficeDocumentReportTarget
}
+ @Override
protected void endContent(final AttributeMap attrs)
throws IOException, DataSourceException, ReportProcessingException
{