public class ExcelXlsImporter extends AbstractExcelImporter
_importCache, book, BOOK_TYPE_KEY, importedFont, importedPictureData, importedStyle, workbook
Constructor and Description |
---|
ExcelXlsImporter() |
Modifier and Type | Method and Description |
---|---|
protected SChart.ChartType |
convertChartType(HSSFChart hssfChart)
refer to 2.2.3.7 Chart Group
|
protected Workbook |
createPoiBook(InputStream is) |
protected int |
getAnchorHeightInPx(ClientAnchor anchor,
Sheet poiSheet)
reference DefaultBookWidgetLoader.getHSSFHeightInPx()
|
protected int |
getAnchorWidthInPx(ClientAnchor anchor,
Sheet sheet)
reference DefaultBookWidgetLoader.getHSSFWidthInPx()
|
protected String |
getCategoryFormula(LinkedDataRecord dataCategoryLabels)
cannot import string literal value.
|
protected String |
getChartTitle(HSSFChart hssfChart) |
protected int |
getLastChangedColumnIndex(Sheet poiSheet) |
protected String |
getTitleFormula(HSSFChart.HSSFSeries series,
int index) |
protected String |
getValueFormula(LinkedDataRecord dataValues)
cannot import string literal value.
|
protected int |
getXoffsetInPixel(ClientAnchor anchor,
Sheet poiSheet) |
protected int |
getYoffsetInPixel(ClientAnchor anchor,
Sheet poiSheet) |
protected void |
importAxis(HSSFChart hssfChart,
SChart chart) |
protected void |
importChart(List<ZssChartX> poiCharts,
Sheet poiSheet,
SSheet sheet) |
protected SColorFilter |
importColorFilter(ColorFilter colorFilter) |
protected void |
importColumn(Sheet poiSheet,
SSheet sheet)
When a column is hidden with default width, we don't import the width for it's 0.
|
protected void |
importConditionalFormatting(SSheet sheet,
Sheet poiSheet) |
protected SCustomFilters |
importCustomFilters(CustomFilters customFilters) |
protected void |
importDrawings(Sheet poiSheet,
SSheet sheet)
reference DrawingManagerImpl.initHSSFDrawings()
|
protected SDynamicFilter |
importDynamicFilter(DynamicFilter dynamicFilter) |
protected void |
importExternalBookLinks()
Excel uses external book links to map external book index and name.
|
protected void |
importPassword(Sheet poiSheet,
SSheet sheet) |
protected void |
importSeries(List<HSSFChart.HSSFSeries> seriesList,
SGeneralChartData chartData)
reference ChartHelper.prepareCategoryModel()
|
protected void |
importSheetProtection(Sheet poiSheet,
SSheet sheet)
POI SheetProtection.
|
protected void |
importTables(Sheet poiSheet,
SSheet sheet)
POI sheet tables
|
protected STop10Filter |
importTop10Filter(Top10Filter top10Filter) |
protected void |
importValidation(Sheet poiSheet,
SSheet sheet) |
protected void |
importXySeries(List<HSSFChart.HSSFSeries> seriesList,
SGeneralChartData chartData)
reference ChartHelper.prepareXYModel()
|
protected void |
importXyzSeries(List<HSSFChart.HSSFSeries> seriesList,
SGeneralChartData chartData) |
protected void |
setBookType(SBook book) |
protected boolean |
skipName(Name definedName) |
createZssFont, getBookType, getPoiFontFromRichText, importAutoFilter, importAutoFilterColumns, importCell, importCellStyle, importCellStyle, importDefaultCellStyles, importExtraStyles, importFont, importMergedRegions, importNamedRange, importNamedStyles, importPicture, importRichText, importRow, imports, importSheet, importSheetDefaultColumnWidth, importTableStyles, isImportCache, mustCalc, setImportCache, toViewAnchor, toZssFont
imports, imports
protected Workbook createPoiBook(InputStream is) throws IOException
createPoiBook
in class AbstractExcelImporter
IOException
protected void importExternalBookLinks()
AbstractExcelImporter
importExternalBookLinks
in class AbstractExcelImporter
protected int getLastChangedColumnIndex(Sheet poiSheet)
poiSheet
- protected void importColumn(Sheet poiSheet, SSheet sheet)
importColumn
in class AbstractExcelImporter
protected SChart.ChartType convertChartType(HSSFChart hssfChart)
hssfChart
- protected void importDrawings(Sheet poiSheet, SSheet sheet)
importDrawings
in class AbstractExcelImporter
poiSheet
- protected int getAnchorHeightInPx(ClientAnchor anchor, Sheet poiSheet)
getAnchorHeightInPx
in class AbstractExcelImporter
anchor
- poiSheet
- protected int getAnchorWidthInPx(ClientAnchor anchor, Sheet sheet)
getAnchorWidthInPx
in class AbstractExcelImporter
anchor
- sheet
- protected void importSeries(List<HSSFChart.HSSFSeries> seriesList, SGeneralChartData chartData)
seriesList
- chartData
- protected void importXySeries(List<HSSFChart.HSSFSeries> seriesList, SGeneralChartData chartData)
seriesList
- chartData
- protected void importXyzSeries(List<HSSFChart.HSSFSeries> seriesList, SGeneralChartData chartData)
protected String getValueFormula(LinkedDataRecord dataValues)
dataValues
- protected String getCategoryFormula(LinkedDataRecord dataCategoryLabels)
dataCategoryLabels
- protected String getTitleFormula(HSSFChart.HSSFSeries series, int index)
protected int getXoffsetInPixel(ClientAnchor anchor, Sheet poiSheet)
getXoffsetInPixel
in class AbstractExcelImporter
protected int getYoffsetInPixel(ClientAnchor anchor, Sheet poiSheet)
getYoffsetInPixel
in class AbstractExcelImporter
protected void importValidation(Sheet poiSheet, SSheet sheet)
importValidation
in class AbstractExcelImporter
protected boolean skipName(Name definedName)
skipName
in class AbstractExcelImporter
protected void setBookType(SBook book)
setBookType
in class AbstractExcelImporter
protected void importPassword(Sheet poiSheet, SSheet sheet)
importPassword
in class AbstractExcelImporter
protected void importSheetProtection(Sheet poiSheet, SSheet sheet)
AbstractExcelImporter
importSheetProtection
in class AbstractExcelImporter
poiSheet
- source POI sheetsheet
- destination sheetprotected void importTables(Sheet poiSheet, SSheet sheet)
AbstractExcelImporter
importTables
in class AbstractExcelImporter
poiSheet
- source POI sheetsheet
- destination sheetprotected void importConditionalFormatting(SSheet sheet, Sheet poiSheet)
importConditionalFormatting
in class AbstractExcelImporter
protected SColorFilter importColorFilter(ColorFilter colorFilter)
importColorFilter
in class AbstractExcelImporter
protected SCustomFilters importCustomFilters(CustomFilters customFilters)
importCustomFilters
in class AbstractExcelImporter
protected SDynamicFilter importDynamicFilter(DynamicFilter dynamicFilter)
importDynamicFilter
in class AbstractExcelImporter
protected STop10Filter importTop10Filter(Top10Filter top10Filter)
importTop10Filter
in class AbstractExcelImporter
Copyright © 2020. All rights reserved.