Package com.sun.star.report.pentaho.styles

Examples of com.sun.star.report.pentaho.styles.LengthCalculator


    return calculator.getResult();
  }

  private CSSNumericValue computeImageHeight(final ImageElementContext imageElementContext)
  {
    final LengthCalculator calculator = new LengthCalculator();
    final String[] strings = imageElementContext.getRowStyles();
    for (int i = 0; i < strings.length; i++)
    {
      final String styleName = strings[i];
      final CSSNumericValue value = computeRowHeight(styleName);
      if (value != null)
      {
        calculator.add(value);
      }
    }
    return calculator.getResult();
  }
View Full Code Here


  }

  protected void startReportSection(final AttributeMap attrs, final int role)
      throws IOException, DataSourceException, ReportProcessingException
  {
    sectionHeight = new LengthCalculator();
    if (role == OfficeDocumentReportTarget.ROLE_TEMPLATE)
    {
      // Start buffering with an dummy styles-collection, so that the global styles dont get polluted ..
      startBuffering(new OfficeStylesCollection(), true);
      return;
View Full Code Here

    if (parent == null)
    {
      return footerHeight;
    }

    final LengthCalculator lnc = new LengthCalculator();
    PageContext pc = this;
    while (pc != null)
    {
      lnc.add(pc.getFooterHeight());
      pc = pc.getParent();
    }
    return lnc.getResult();
  }
View Full Code Here

    if (parent == null)
    {
      return headerHeight;
    }

    final LengthCalculator lnc = new LengthCalculator();
    PageContext pc = this;
    while (pc != null)
    {
      lnc.add(pc.getHeaderHeight());
      pc = pc.getParent();
    }
    return lnc.getResult();
  }
View Full Code Here

TOP

Related Classes of com.sun.star.report.pentaho.styles.LengthCalculator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.