diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-05 11:08:06 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-08 09:48:16 +0200 |
commit | 8d6cf7a147acde4e4a4f7600af25ed614b07f90d (patch) | |
tree | ae8f52bd74fb33459fe69eadbdb57271df86fd94 /reportbuilder | |
parent | 60fad3fabb26a50ea238bed2f046670c6e5678f7 (diff) |
java: remove dead methods
Change-Id: I9f2e705fd603a7c8832c0f0772bee9f395380a0d
Diffstat (limited to 'reportbuilder')
3 files changed, 0 insertions, 124 deletions
diff --git a/reportbuilder/java/org/libreoffice/report/SDBCReportDataFactory.java b/reportbuilder/java/org/libreoffice/report/SDBCReportDataFactory.java index b7508a038b2a..1384f0a4d70d 100644 --- a/reportbuilder/java/org/libreoffice/report/SDBCReportDataFactory.java +++ b/reportbuilder/java/org/libreoffice/report/SDBCReportDataFactory.java @@ -275,25 +275,6 @@ public class SDBCReportDataFactory implements DataSourceFactory return order.toString(); } - private XNameAccess getFieldsByCommandDescriptor(final int commandType, final String command, final XComponent[] out) throws SQLException - { - final Class[] parameter = new Class[3]; - parameter[0] = int.class; - parameter[1] = String.class; - parameter[2] = out.getClass(); - final XConnectionTools tools = UnoRuntime.queryInterface(XConnectionTools.class, connection); - try - { - tools.getClass().getMethod("getFieldsByCommandDescriptor", parameter); - return tools.getFieldsByCommandDescriptor(commandType, command, out); - } - catch (NoSuchMethodException ex) - { - } - - throw new SQLException(); - } - private XSingleSelectQueryComposer getComposer(final XConnectionTools tools, final String command, final int commandType) diff --git a/reportbuilder/java/org/libreoffice/report/pentaho/layoutprocessor/FormattedTextLayoutController.java b/reportbuilder/java/org/libreoffice/report/pentaho/layoutprocessor/FormattedTextLayoutController.java index d2955364f46f..155357f39545 100644 --- a/reportbuilder/java/org/libreoffice/report/pentaho/layoutprocessor/FormattedTextLayoutController.java +++ b/reportbuilder/java/org/libreoffice/report/pentaho/layoutprocessor/FormattedTextLayoutController.java @@ -55,27 +55,6 @@ public class FormattedTextLayoutController { } - private VariablesCollection getVariablesCollection() - { - LayoutController parent = getParent(); - while (parent != null) - { - if (parent instanceof OfficeRepeatingStructureLayoutController) - { - final OfficeRepeatingStructureLayoutController orslc = - (OfficeRepeatingStructureLayoutController) parent; - if (orslc.isNormalFlowProcessing()) - { - return null; - } - - return orslc.getVariablesCollection(); - } - parent = parent.getParent(); - } - return null; - } - public boolean isValueChanged() { try @@ -155,21 +134,6 @@ public class FormattedTextLayoutController return join(getFlowController()); } - private OfficeDocument getDocument() - { - LayoutController parent = getParent(); - while (parent != null) - { - final Object node = parent.getNode(); - if (node instanceof OfficeDocument) - { - return (OfficeDocument) node; - } - parent = parent.getParent(); - } - return null; - } - private Element getParentTableCell() { LayoutController parent = getParent(); @@ -185,44 +149,4 @@ public class FormattedTextLayoutController return null; } - private String computeValueStyle() - { - final Element tce = getParentTableCell(); - if (tce == null) - { - return null; - } - - final String cellStyleName = (String) tce.getAttribute(OfficeNamespaces.TABLE_NS, OfficeToken.STYLE_NAME); - if (cellStyleName == null) - { - return null; - } - final OfficeDocument document = getDocument(); - if (document == null) - { - return null; - } - - final OfficeStyle style = document.getStylesCollection().getStyle("table-cell", cellStyleName); - return (String) style.getAttribute(OfficeNamespaces.STYLE_NS, "data-style-name"); - } - - private String computeValueType() - { - final Element tce = getParentTableCell(); - if (tce == null) - { - // NO particular format means: Fallback to string and hope and pray .. - throw new IllegalStateException("A formatted text element must be a child of a Table-Cell."); - } - - final String type = (String) tce.getAttribute(OfficeNamespaces.OFFICE_NS, FormatValueUtility.VALUE_TYPE); - if (type == null) - { - LOGGER.error("The Table-Cell does not have a office:value attribute defined. Your content will be messed up."); - return "string"; - } - return type; - } } 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 4bc0ada7038c..82cf13a9a978 100644 --- a/reportbuilder/java/org/libreoffice/report/pentaho/output/text/MasterPageFactory.java +++ b/reportbuilder/java/org/libreoffice/report/pentaho/output/text/MasterPageFactory.java @@ -97,20 +97,6 @@ public class MasterPageFactory return result; } - public String getTemplate() - { - return template; - } - - public String getPageHeader() - { - return pageHeader; - } - - public String getPageFooter() - { - return pageFooter; - } } private static class PageLayoutKey @@ -129,21 +115,6 @@ public class MasterPageFactory this.footerHeight = footerHeight; } - public String getTemplateName() - { - return templateName; - } - - public CSSNumericValue getHeaderHeight() - { - return headerHeight; - } - - public CSSNumericValue getFooterHeight() - { - return footerHeight; - } - public boolean equals(final Object o) { if (this == o) |