Class HtmlExporter

java.lang.Object
io.keikai.model.impl.html.HtmlExporter
All Implemented Interfaces:
io.keikai.range.SExporter, Serializable

public class HtmlExporter extends Object implements io.keikai.range.SExporter, Serializable
Implementation of XExporter interface that converts Excel data model io.keikai.model.sys.SBook into a PDF format written to a OutputStream
Author:
peterkuo, kuro
See Also:
  • Field Details

    • wb

      protected io.keikai.model.SBook wb
    • colBreaks

      protected int[] colBreaks
    • rowBreaks

      protected int[] rowBreaks
    • firstColumn

      protected int firstColumn
    • endColumn

      protected int endColumn
    • endRow

      protected int endRow
    • pageCount

      protected int pageCount
    • pageNumber

      protected int pageNumber
    • printGridLines

      protected boolean printGridLines
    • printHeadings

      protected boolean printHeadings
    • headerFooterTotalWidth

      protected float headerFooterTotalWidth
    • leftMargin

      protected float leftMargin
    • rightMargin

      protected float rightMargin
    • topMargin

      protected float topMargin
    • bottomMargin

      protected float bottomMargin
    • headerMargin

      protected float headerMargin
    • footerMargin

      protected float footerMargin
    • sheetsWithRepeatingRowsAndColumns

      protected Map<Integer,Map<String,int[]>> sheetsWithRepeatingRowsAndColumns
    • totalAvailablePageWidth

      protected float totalAvailablePageWidth
    • totalAvailablePageHeight

      protected float totalAvailablePageHeight
    • columnLeft

      protected float[] columnLeft
    • rowTop

      protected float[] rowTop
    • lastPageRowColumnBounds

      protected Map<String,Integer> lastPageRowColumnBounds
    • currentSheetIndex

      protected int currentSheetIndex
    • _outcol1

      protected int _outcol1
    • _outcol2

      protected int _outcol2
    • _outrow1

      protected int _outrow1
    • _outrow2

      protected int _outrow2
    • _chart

      protected org.zkoss.zul.Chart _chart
    • _refSheetName

      protected String _refSheetName
  • Constructor Details

    • HtmlExporter

      public HtmlExporter()
  • Method Details

    • export

      public void export(io.keikai.model.SBook workbook, OutputStream outputStream) throws IOException
      Exports Keikai Spreadsheet SBook into another format written to a OutputStream. Note that it exports entire workbook.
      Specified by:
      export in interface io.keikai.range.SExporter
      Parameters:
      workbook -
      outputStream -
      Throws:
      IOException
    • export

      public void export(io.keikai.model.SSheet worksheet, OutputStream outputStream) throws IOException
      Exports Keikai Spreadsheet SSheet into another format written to a
      Parameters:
      worksheet - sheet instance that contains selected area
      outputStream - outoutStream to which exported contents to be written
      Throws:
      IOException
    • export

      public void export(io.keikai.model.SBook book, File file) throws IOException
      Specified by:
      export in interface io.keikai.range.SExporter
      Throws:
      IOException
    • export

      public void export(io.keikai.model.SheetRegion sheetRegion, OutputStream outputStream) throws IOException
      Exports selected area of Keikai Spreadsheet active sheet represented by io.keikai.model.sys.XRange
      Parameters:
      worksheet - sheet instance that contains selected area
      area - area representing selected area to be exported
      outputStream - outoutStream to which exported contents to be written
      Throws:
      IOException
    • enableHeadings

      public void enableHeadings(boolean enable)
      Enables row and column headings printing
      Parameters:
      enable -