Package io.keikai.model.impl.html
Class HtmlExporter
- java.lang.Object
-
- io.keikai.model.impl.html.HtmlExporter
-
- All Implemented Interfaces:
io.keikai.range.SExporter,java.io.Serializable
public class HtmlExporter extends java.lang.Object implements io.keikai.range.SExporter, java.io.SerializableImplementation ofXExporterinterface that converts Excel data modelio.keikai.model.sys.SBookinto a PDF format written to aOutputStream- Author:
- peterkuo, kuro
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected org.zkoss.zul.Chart_chartprotected int_outcol1protected int_outcol2protected int_outrow1protected int_outrow2protected java.lang.String_refSheetNameprotected floatbottomMarginprotected int[]colBreaksprotected float[]columnLeftprotected intcurrentSheetIndexprotected intendColumnprotected intendRowprotected intfirstColumnprotected floatfooterMarginprotected floatheaderFooterTotalWidthprotected floatheaderMarginprotected java.util.Map<java.lang.String,java.lang.Integer>lastPageRowColumnBoundsprotected floatleftMarginprotected intpageCountprotected intpageNumberprotected booleanprintGridLinesprotected booleanprintHeadingsprotected floatrightMarginprotected int[]rowBreaksprotected float[]rowTopprotected java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,int[]>>sheetsWithRepeatingRowsAndColumnsprotected floattopMarginprotected floattotalAvailablePageHeightprotected floattotalAvailablePageWidthprotected io.keikai.model.SBookwb
-
Constructor Summary
Constructors Constructor Description HtmlExporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidenableHeadings(boolean enable)Enables row and column headings printingvoidexport(io.keikai.model.SBook book, java.io.File file)voidexport(io.keikai.model.SBook workbook, java.io.OutputStream outputStream)Exports Keikai SpreadsheetSBookinto another format written to aOutputStream.voidexport(io.keikai.model.SheetRegion sheetRegion, java.io.OutputStream outputStream)Exports selected area of Keikai Spreadsheet active sheet represented byio.keikai.model.sys.XRangevoidexport(io.keikai.model.SSheet worksheet, java.io.OutputStream outputStream)Exports Keikai SpreadsheetSSheetinto another format written to a
-
-
-
Field Detail
-
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 java.util.Map<java.lang.Integer,java.util.Map<java.lang.String,int[]>> sheetsWithRepeatingRowsAndColumns
-
totalAvailablePageWidth
protected float totalAvailablePageWidth
-
totalAvailablePageHeight
protected float totalAvailablePageHeight
-
columnLeft
protected float[] columnLeft
-
rowTop
protected float[] rowTop
-
lastPageRowColumnBounds
protected java.util.Map<java.lang.String,java.lang.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 java.lang.String _refSheetName
-
-
Method Detail
-
export
public void export(io.keikai.model.SBook workbook, java.io.OutputStream outputStream) throws java.io.IOExceptionExports Keikai SpreadsheetSBookinto another format written to aOutputStream. Note that it exports entire workbook.- Specified by:
exportin interfaceio.keikai.range.SExporter- Parameters:
workbook-outputStream-- Throws:
java.io.IOException
-
export
public void export(io.keikai.model.SSheet worksheet, java.io.OutputStream outputStream) throws java.io.IOExceptionExports Keikai SpreadsheetSSheetinto another format written to a- Parameters:
worksheet- sheet instance that contains selected areaoutputStream- outoutStream to which exported contents to be written- Throws:
java.io.IOException
-
export
public void export(io.keikai.model.SBook book, java.io.File file) throws java.io.IOException- Specified by:
exportin interfaceio.keikai.range.SExporter- Throws:
java.io.IOException
-
export
public void export(io.keikai.model.SheetRegion sheetRegion, java.io.OutputStream outputStream) throws java.io.IOExceptionExports selected area of Keikai Spreadsheet active sheet represented byio.keikai.model.sys.XRange- Parameters:
worksheet- sheet instance that contains selected areaarea- area representing selected area to be exportedoutputStream- outoutStream to which exported contents to be written- Throws:
java.io.IOException
-
enableHeadings
public void enableHeadings(boolean enable)
Enables row and column headings printing- Parameters:
enable-
-
-