LibreOffice Module xmerge (master) 1
|
General spreadsheet implementation of DocumentDeserializer
for the SxcPluginFactory
.
More...
Public Member Functions | |
SxcDocumentDeserializer (ConvertData cd) | |
Constructor. More... | |
abstract SpreadsheetDecoder | createDecoder (String workbook, String[] worksheetNames, String password) throws IOException |
This abstract method will be implemented by concrete subclasses and will return an application-specific Decoder. More... | |
Document | deserialize () throws ConvertException, IOException |
Method to convert a set of "Device" Document objects into a SxcDocument object and returns it as a Document . More... | |
Document | deserialize () throws ConvertException, IOException |
Convert the data passed into the DocumentDeserializer constructor into the "Office" Document format. More... | |
Protected Member Functions | |
abstract String | getWorkbookName (ConvertData cd) throws IOException |
This method will return the name of the WorkBook from the ConvertData . More... | |
abstract String[] | getWorksheetNames (ConvertData cd) throws IOException |
This method will return the name of the WorkSheet from the ConvertData . More... | |
void | decode () throws IOException |
Outer level method used to decode a WorkBook into a Document . More... | |
void | processSettings (Node root) |
This method process the settings portion of the Document . More... | |
void | processNameDefinition (Node root, Iterator< NameDefinition > eNameDefinitions) throws IOException |
This method process a Name Definition Table and generates a portion of the Document . More... | |
void | processTable (Node root) throws IOException |
This method process a WorkSheet and generates a portion of the Document . More... | |
void | processColumns (Node root) throws IOException |
This method process the cells in a Document and generates a portion of the Document . More... | |
void | processCells (Node root) throws IOException |
This method process the cells in a Document and generates a portion of the Document . More... | |
void | addEmptyRows (int numEmptyRows, Node root, int numEmptyCells) |
This method will add empty rows to the Document . More... | |
void | addEmptyCells (int numColsSkipped, Node row) |
This method will add empty cells to the Document . More... | |
void | processCellData (Element cellElement, String type, String contents) |
This method process the data in a cell and sets the appropriate attributes on the cell Element . More... | |
Private Member Functions | |
void | initFontTable () |
This initializes a font table so we can include some basic font support for spreadsheets. More... | |
Private Attributes | |
SpreadsheetDecoder | decoder = null |
A SpreadsheetDecoder object for decoding from device formats. More... | |
org.w3c.dom.Document | settings = null |
A w3c Document . More... | |
org.w3c.dom.Document | doc = null |
A w3c Document . More... | |
final ConvertData | cd |
A ConvertData object assigned to this object. More... | |
StyleCatalog | styleCat = null |
A StyleCatalog for the workbook. More... | |
int | textStyles = 1 |
int | colStyles = 1 |
int | rowStyles = 1 |
Additional Inherited Members | |
Public Attributes inherited from org.openoffice.xmerge.converter.xml.OfficeConstants | |
String | TAG_OFFICE_DOCUMENT = "office:document" |
Element tag for office:document, this is the root tag. More... | |
String | TAG_OFFICE_DOCUMENT_CONTENT = "office:document-content" |
Element tag for office:document-content, this is the root tag in content.xml. More... | |
String | TAG_OFFICE_DOCUMENT_SETTINGS = "office:document-settings" |
Element tag for office:document-settings, this is the root tag in content.xml. More... | |
String | TAG_OFFICE_DOCUMENT_META = "office:document-meta" |
Element tag for office:document-meta, this is the root tag in content.xml. More... | |
String | TAG_OFFICE_DOCUMENT_STYLES = "office:document-styles" |
Element tag for office:document-styles, this is the root tag in styles.xml. More... | |
String | TAG_OFFICE_STYLES = "office:styles" |
Element tag for office:styles. More... | |
String | TAG_OFFICE_META = "office:meta" |
Element tag for office:meta. More... | |
String | TAG_OFFICE_AUTOMATIC_STYLES = "office:automatic-styles" |
Element tag for office:automatic-styles. More... | |
String | TAG_OFFICE_MASTER_STYLES = "office:master-styles" |
Element tag for office:master-styles. More... | |
String | TAG_OFFICE_BODY = "office:body" |
Element tag for office:body. More... | |
String | TAG_OFFICE_SETTINGS = "office:settings" |
Element tag for office:settings. More... | |
String | TAG_OFFICE_FONT_DECLS = "office:font-decls" |
Element tag for office:font-decls. More... | |
String | TAG_STYLE_FONT_DECL = "style:font-decl" |
Element tag for style:font-decl. More... | |
String | ATTRIBUTE_STYLE_NAME = "style:name" |
Attribute tag for style:name of element style:name. More... | |
String | ATTRIBUTE_STYLE_FONT_PITCH = "style:font-pitch" |
Attribute tag for style:font-pitch of element style:font-pitch. More... | |
String | ATTRIBUTE_FO_FONT_FAMILY = "fo:font-family" |
Attribute tag for fo:font-family of element fo:font-family. More... | |
String | ATTRIBUTE_FO_FONT_FAMILY_GENERIC = "fo:font-family-generic" |
Attribute tag for fo:font-family of element fo:font-family. More... | |
String | TAG_PARAGRAPH = "text:p" |
Element tag for text:p. More... | |
String | TAG_HEADING = "text:h" |
Element tag for text:h. More... | |
String | TAG_SPACE = "text:s" |
Element tag for text:s. More... | |
String | TAG_TAB_STOP = "text:tab-stop" |
Element tag for text:tab-stop. More... | |
String | TAG_LINE_BREAK = "text:line-break" |
Element tag for text:line-break. More... | |
String | TAG_SPAN = "text:span" |
Element tag for text:span. More... | |
String | TAG_HYPERLINK = "text:a" |
Element tag for text:a. More... | |
String | TAG_UNORDERED_LIST = "text:unordered-list" |
Element tag for text:unordered-list. More... | |
String | TAG_ORDERED_LIST = "text:ordered-list" |
Element tag for text:ordered-list. More... | |
String | TAG_LIST_HEADER = "text:list-header" |
Element tag for text:list-header. More... | |
String | TAG_LIST_ITEM = "text:list-item" |
Element tag for text:list-item. More... | |
String | ATTRIBUTE_SPACE_COUNT = "text:c" |
Attribute tag for text:c of element text:s. More... | |
String | TAG_TABLE = "table:table" |
Element tag for table:table. More... | |
String | TAG_NAMED_EXPRESSIONS = "table:named-expressions" |
Element tag for table:named-expression. More... | |
String | TAG_TABLE_NAMED_RANGE = "table:named-range" |
Element tag for table:named-range. More... | |
String | TAG_TABLE_NAMED_EXPRESSION = "table:named-expression" |
Element tag for table:named-expression. More... | |
String | ATTRIBUTE_TABLE_NAME = "table:name" |
Attribute tag for table:name of element table:table. More... | |
String | ATTRIBUTE_TABLE_EXPRESSION = "table:expression" |
Attribute tag for table:expression of element table:named-range. More... | |
String | ATTRIBUTE_TABLE_BASE_CELL_ADDRESS = "table:base-cell-address" |
Attribute tag for table:base-cell-address of element table:named-range. More... | |
String | ATTRIBUTE_TABLE_CELL_RANGE_ADDRESS = "table:cell-range-address" |
Attribute tag for table:cell-range-address of element table:named-range. More... | |
String | TAG_TABLE_ROW = "table:table-row" |
Element tag for table:table-row. More... | |
String | TAG_TABLE_COLUMN = "table:table-column" |
Element tag for table:table-column. More... | |
String | ATTRIBUTE_DEFAULT_CELL_STYLE = "table:default-cell-style-name" |
Attribute tag for table:default-cell-style-name of element table:table-column. More... | |
String | TAG_TABLE_SCENARIO = "table:scenario" |
Element tag for table:scenario. More... | |
String | TAG_TABLE_CELL = "table:table-cell" |
Element tag for table:table-cell. More... | |
String | ATTRIBUTE_TABLE_VALUE_TYPE = "table:value-type" |
Attribute tag for table:value-type of element table:table-cell. More... | |
String | ATTRIBUTE_TABLE_NUM_COLUMNS_REPEATED |
Attribute tag for table:number-columns-repeated of element table:table-cell. More... | |
String | ATTRIBUTE_TABLE_NUM_ROWS_REPEATED = "table:number-rows-repeated" |
Attribute tag for table:number-rows-repeated of element table:table-row. More... | |
String | ATTRIBUTE_TABLE_FORMULA = "table:formula" |
Attribute tag for table:formula of element table:table-cell. More... | |
String | ATTRIBUTE_TABLE_VALUE = "table:value" |
Attribute tag for table:value of element table:table-cell. More... | |
String | ATTRIBUTE_TABLE_DATE_VALUE = "table:date-value" |
Attribute tag for table:date-value of element table:table-cell. More... | |
String | ATTRIBUTE_TABLE_TIME_VALUE = "table:time-value" |
Attribute tag for table:time-value of element table:table-cell. More... | |
String | ATTRIBUTE_TABLE_STRING_VALUE = "table:string-value" |
Attribute tag for table:string-value of element table:table-cell. More... | |
String | ATTRIBUTE_TABLE_BOOLEAN_VALUE = "table:boolean-value" |
Attribute tag for table:time-boolean-value of element table:table-cell. More... | |
String | ATTRIBUTE_TABLE_STYLE_NAME = "table:style-name" |
Attribute tag for table:style-name of table elements. More... | |
String | ATTRIBUTE_TABLE_CURRENCY = "table:currency" |
Attribute tag for table:currency of element table:table-cell. More... | |
String | CELLTYPE_STRING = "string" |
The cell contains data of type string. More... | |
String | CELLTYPE_FLOAT = "float" |
The cell contains data of type float. More... | |
String | CELLTYPE_TIME = "time" |
The cell contains data of type time. More... | |
String | CELLTYPE_DATE = "date" |
The cell contains data of type date. More... | |
String | CELLTYPE_CURRENCY = "currency" |
The cell contains data of type currency. More... | |
String | CELLTYPE_BOOLEAN = "boolean" |
The cell contains data of type boolean. More... | |
String | CELLTYPE_PERCENT = "percentage" |
The cell contains data of type percent. More... | |
String | SXW_FILE_EXTENSION = ".sxw" |
StarWriter XML file extension. More... | |
String | SXW_TYPE = "text" |
StarWriter XML office:class value. More... | |
String | SXC_FILE_EXTENSION = ".sxc" |
StarCalc XML file extension. More... | |
String | SXC_TYPE = "spreadsheet" |
StarCalc XML office:class value. More... | |
String | TAG_MANIFEST_ROOT = "manifest:manifest" |
Element tag for manifest:manifestentry in Manifest XML. More... | |
String | TAG_MANIFEST_FILE = "manifest:file-entry" |
Element tag for manifest:file-entry entry in Manifest XML. More... | |
String | ATTRIBUTE_MANIFEST_FILE_TYPE = "manifest:media-type" |
Attribute tag for manifest:media-type of element manifest:file-entry. More... | |
String | ATTRIBUTE_MANIFEST_FILE_PATH = "manifest:full-path" |
Attribute tag for manifest:full-path of element manifest:file-entry. More... | |
String | TAG_CONFIG_ITEM = "config:config-item" |
Element tag for config:config-item. More... | |
String | TAG_CONFIG_ITEM_SET = "config:config-item-set" |
Element tag for config:config-item-set. More... | |
String | TAG_CONFIG_ITEM_MAP_INDEXED = "config:config-item-map-indexed" |
Element tag for config:config-item-map-indexed. More... | |
String | TAG_CONFIG_ITEM_MAP_NAMED = "config:config-item-map-named" |
Element tag for config:config-item-map-named. More... | |
String | TAG_CONFIG_ITEM_MAP_ENTRY = "config:config-item-map-entry" |
Element tag for config:config-item-map-entry. More... | |
String | ATTRIBUTE_CONFIG_NAME = "config:name" |
Attribute tag for config:name of element config:config-item. More... | |
String | ATTRIBUTE_CONFIG_TYPE = "config:type" |
Attribute tag for config:type of element config:config-item. More... | |
String | SXW_MIME_TYPE = "application/vnd.sun.xml.writer" |
StarWriter XML MIME type. More... | |
String | SXC_MIME_TYPE = "application/vnd.sun.xml.calc" |
StarCalc XML MIME type. More... | |
General spreadsheet implementation of DocumentDeserializer
for the SxcPluginFactory
.
Used with SXC Document
objects.
The deserialize
method uses a DocDecoder
to read the device spreadsheet format into a String
object, then it calls buildDocument
to create a SxcDocument
object from it.
Definition at line 47 of file SxcDocumentDeserializer.java.
|
inline |
Constructor.
cd | ConvertData consisting of a device content object. |
Definition at line 76 of file SxcDocumentDeserializer.java.
References org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.cd.
|
inlineprotected |
This method will add empty cells to the Document
.
It is called when the conversion process encounters a row that contains some cells without data.
numColsSkipped | The number of empty cells that we need to add to the current row. |
row | The Node of the Document we are building that we will append our empty cell Node objects. This Node should be a TAG_TABLE_ROW tag. |
Definition at line 652 of file SxcDocumentDeserializer.java.
References org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_TABLE_NUM_COLUMNS_REPEATED, org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_TABLE_STYLE_NAME, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.doc, i, Integer, org.openoffice.xmerge.util.Debug.log(), org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_TABLE_CELL, and org.openoffice.xmerge.util.Debug.TRACE.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.addEmptyRows(), and org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processCells().
|
inlineprotected |
This method will add empty rows to the Document
.
It is called when the conversion process encounters a row (or rows) that do not contain any data in its cells.
numEmptyRows | The number of empty rows that we need to add to the Document . |
root | The Node of the Document we are building that we will append our empty row Node objects. This Node should be a TAG_TABLE tag. |
numEmptyCells | The number of empty cells in the empty row. |
Definition at line 613 of file SxcDocumentDeserializer.java.
References org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.addEmptyCells(), org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_TABLE_NUM_ROWS_REPEATED, org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_TABLE_STYLE_NAME, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.doc, i, Integer, org.openoffice.xmerge.util.Debug.log(), org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_TABLE_ROW, and org.openoffice.xmerge.util.Debug.TRACE.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processCells().
|
abstract |
This abstract
method will be implemented by concrete subclasses and will return an application-specific Decoder.
workbook | The WorkBook to read. |
password | The WorkBook password. |
SpreadSheetDecoder
.IOException | If any I/O error occurs. |
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.deserialize().
|
inlineprotected |
Outer level method used to decode a WorkBook into a Document
.
IOException | If any I/O error occurs. |
Definition at line 208 of file SxcDocumentDeserializer.java.
References org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.decoder, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.doc, org.openoffice.xmerge.converter.xml.sxc.SpreadsheetDecoder.getNameDefinitions(), org.openoffice.xmerge.converter.xml.sxc.SpreadsheetDecoder.getNumberOfSheets(), i, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processNameDefinition(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processSettings(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processTable(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.settings, org.openoffice.xmerge.converter.xml.sxc.SpreadsheetDecoder.setWorksheet(), System, org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_OFFICE_BODY, and org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_OFFICE_SETTINGS.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.deserialize().
|
inline |
Method to convert a set of "Device" Document
objects into a SxcDocument
object and returns it as a Document
.
This method is not thread safe for performance reasons. This method should not be called from within two threads. It would be best to call this method only once per object instance.
SxcDocument
consisting of the data converted from the input stream.ConvertException | If any conversion error occurs. |
IOException | If any I/O error occurs. |
Implements org.openoffice.xmerge.DocumentDeserializer.
Definition at line 134 of file SxcDocumentDeserializer.java.
References org.openoffice.xmerge.converter.xml.sxc.SpreadsheetDecoder.addDeviceContent(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.cd, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.createDecoder(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.decode(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.decoder, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.doc, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.getWorkbookName(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.getWorksheetNames(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.initFontTable(), org.openoffice.xmerge.util.Debug.log(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.settings, String, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.styleCat, and org.openoffice.xmerge.util.Debug.TRACE.
|
abstractprotected |
This method will return the name of the WorkBook from the ConvertData
.
Allows for situations where the WorkBook name differs from the Device Content name.
Implemented in the Deserializer as the Decoder's constructor requires a name.
cd | The ConvertData containing the Device content. |
References String.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.deserialize().
|
abstractprotected |
This method will return the name of the WorkSheet from the ConvertData
.
cd | The ConvertData containing the Device content. |
References String.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.deserialize().
|
inlineprivate |
This initializes a font table so we can include some basic font support for spreadsheets.
Definition at line 178 of file SxcDocumentDeserializer.java.
References org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_FO_FONT_FAMILY, org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_FO_FONT_FAMILY_GENERIC, org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_STYLE_FONT_PITCH, org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_STYLE_NAME, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.doc, i, String, org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_OFFICE_FONT_DECLS, and org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_STYLE_FONT_DECL.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.deserialize().
|
inlineprotected |
This method process the data in a cell and sets the appropriate attributes on the cell Element
.
cellElement | A TAG_TABLE_CELL Element that we will be adding attributes to based on the type of data in the cell. |
type | The type of data contained in the cell. |
contents | The contents of the data contained in the cell. |
Definition at line 689 of file SxcDocumentDeserializer.java.
References org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_TABLE_BOOLEAN_VALUE, org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_TABLE_CURRENCY, org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_TABLE_DATE_VALUE, org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_TABLE_FORMULA, org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_TABLE_TIME_VALUE, org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_TABLE_VALUE, org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_TABLE_VALUE_TYPE, org.openoffice.xmerge.converter.xml.OfficeConstants.CELLTYPE_BOOLEAN, org.openoffice.xmerge.converter.xml.OfficeConstants.CELLTYPE_CURRENCY, org.openoffice.xmerge.converter.xml.OfficeConstants.CELLTYPE_DATE, org.openoffice.xmerge.converter.xml.OfficeConstants.CELLTYPE_PERCENT, org.openoffice.xmerge.converter.xml.OfficeConstants.CELLTYPE_STRING, org.openoffice.xmerge.converter.xml.OfficeConstants.CELLTYPE_TIME, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.decoder, org.openoffice.xmerge.converter.xml.sxc.SpreadsheetDecoder.getCellValue(), and type.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processCells().
|
inlineprotected |
This method process the cells in a Document
and generates a portion of the Document
.
This method assumes that records are sorted by row and then column.
root | The Node of the Document we are building that we will append our cell Node objects. This Node should be a TAG_TABLE tag. |
IOException | If any I/O error occurs. |
Definition at line 402 of file SxcDocumentDeserializer.java.
References org.openoffice.xmerge.converter.xml.StyleCatalog.add(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.addEmptyCells(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.addEmptyRows(), org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_TABLE_STYLE_NAME, col, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.decoder, org.openoffice.xmerge.converter.xml.sxc.SxcConstants.DEFAULT_STYLE, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.doc, org.openoffice.xmerge.converter.xml.sxc.SpreadsheetDecoder.getCellContents(), org.openoffice.xmerge.converter.xml.sxc.SpreadsheetDecoder.getCellDataType(), org.openoffice.xmerge.converter.xml.sxc.SpreadsheetDecoder.getCellFormat(), org.openoffice.xmerge.converter.xml.sxc.SpreadsheetDecoder.getColNumber(), org.openoffice.xmerge.converter.xml.sxc.SpreadsheetDecoder.getColumnRowInfos(), org.openoffice.xmerge.converter.xml.StyleCatalog.getMatching(), org.openoffice.xmerge.converter.xml.Style.getName(), org.openoffice.xmerge.converter.xml.sxc.SpreadsheetDecoder.getNumberOfColumns(), org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.getRepeated(), org.openoffice.xmerge.converter.xml.sxc.SpreadsheetDecoder.getRowNumber(), org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.getSize(), org.openoffice.xmerge.converter.xml.sxc.SpreadsheetDecoder.goToNextCell(), i, org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.isRow(), org.openoffice.xmerge.util.Debug.log(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processCellData(), result, org.openoffice.xmerge.converter.xml.sxc.SxcConstants.ROW_STYLE_FAMILY, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.rowStyles, org.openoffice.xmerge.converter.xml.Style.setName(), String, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.styleCat, org.openoffice.xmerge.converter.xml.sxc.SxcConstants.TABLE_CELL_STYLE_FAMILY, org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_OFFICE_AUTOMATIC_STYLES, org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_OFFICE_BODY, org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_PARAGRAPH, org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_TABLE_CELL, org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_TABLE_ROW, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.textStyles, org.openoffice.xmerge.util.Debug.TRACE, and org.openoffice.xmerge.converter.xml.StyleCatalog.writeNode().
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processTable().
|
inlineprotected |
This method process the cells in a Document
and generates a portion of the Document
.
This method assumes that records are sorted by row and then column.
root | The Node of the Document we are building that we will append our cell Node objects. This Node should be a TAG_TABLE tag. |
IOException | If any I/O error occurs. |
Definition at line 355 of file SxcDocumentDeserializer.java.
References org.openoffice.xmerge.converter.xml.StyleCatalog.add(), org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_TABLE_NUM_COLUMNS_REPEATED, org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_TABLE_STYLE_NAME, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.colStyles, org.openoffice.xmerge.converter.xml.sxc.SxcConstants.COLUMN_STYLE_FAMILY, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.decoder, org.openoffice.xmerge.converter.xml.sxc.SxcConstants.DEFAULT_STYLE, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.doc, org.openoffice.xmerge.converter.xml.sxc.SpreadsheetDecoder.getColumnRowInfos(), org.openoffice.xmerge.converter.xml.StyleCatalog.getMatching(), org.openoffice.xmerge.converter.xml.Style.getName(), org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.getRepeated(), org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.getSize(), org.openoffice.xmerge.converter.xml.sxc.ColumnRowInfo.isColumn(), org.openoffice.xmerge.util.Debug.log(), result, org.openoffice.xmerge.converter.xml.Style.setName(), String, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.styleCat, org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_TABLE_COLUMN, and org.openoffice.xmerge.util.Debug.TRACE.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processTable().
|
inlineprotected |
This method process a Name Definition Table and generates a portion of the Document
.
root | The root Node of the Document we are building. This Node should be a TAG_OFFICE_BODY tag. |
IOException | If any I/O error occurs. |
Definition at line 283 of file SxcDocumentDeserializer.java.
References org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.doc, org.openoffice.xmerge.util.Debug.log(), org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_NAMED_EXPRESSIONS, org.openoffice.xmerge.util.Debug.TRACE, and org.openoffice.xmerge.converter.xml.sxc.NameDefinition.writeNode().
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.decode().
|
inlineprotected |
This method process the settings portion of the Document
.
root | The root Node of the Document we are building. This Node should be a TAG_OFFICE_SETTINGS tag. |
Definition at line 258 of file SxcDocumentDeserializer.java.
References org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_CONFIG_NAME, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.decoder, org.openoffice.xmerge.converter.xml.sxc.SpreadsheetDecoder.getSettings(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.settings, org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_CONFIG_ITEM_MAP_ENTRY, org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_CONFIG_ITEM_MAP_INDEXED, org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_CONFIG_ITEM_SET, and org.openoffice.xmerge.converter.xml.sxc.BookSettings.writeNode().
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.decode().
|
inlineprotected |
This method process a WorkSheet and generates a portion of the Document
.
A spreadsheet is represented as a table Node in StarOffice XML format.
root | The root Node of the Document we are building. This Node should be a TAG_OFFICE_BODY tag. |
IOException | If any I/O error occurs. |
Definition at line 312 of file SxcDocumentDeserializer.java.
References org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_TABLE_NAME, org.openoffice.xmerge.converter.xml.OfficeConstants.ATTRIBUTE_TABLE_STYLE_NAME, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.decoder, org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.doc, org.openoffice.xmerge.converter.xml.sxc.SpreadsheetDecoder.getSheetName(), org.openoffice.xmerge.util.Debug.log(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processCells(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processColumns(), String, org.openoffice.xmerge.converter.xml.OfficeConstants.TAG_TABLE, and org.openoffice.xmerge.util.Debug.TRACE.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.decode().
|
private |
A ConvertData
object assigned to this object.
Definition at line 62 of file SxcDocumentDeserializer.java.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.deserialize(), and org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.SxcDocumentDeserializer().
|
private |
Definition at line 68 of file SxcDocumentDeserializer.java.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processColumns().
|
private |
A SpreadsheetDecoder
object for decoding from device formats.
Definition at line 53 of file SxcDocumentDeserializer.java.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.decode(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.deserialize(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processCellData(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processCells(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processColumns(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processSettings(), and org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processTable().
|
private |
A w3c Document
.
Definition at line 59 of file SxcDocumentDeserializer.java.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.addEmptyCells(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.addEmptyRows(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.decode(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.deserialize(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.initFontTable(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processCells(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processColumns(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processNameDefinition(), and org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processTable().
|
private |
Definition at line 69 of file SxcDocumentDeserializer.java.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processCells().
|
private |
A w3c Document
.
Definition at line 56 of file SxcDocumentDeserializer.java.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.decode(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.deserialize(), and org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processSettings().
|
private |
A StyleCatalog
for the workbook.
Definition at line 65 of file SxcDocumentDeserializer.java.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.deserialize(), org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processCells(), and org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processColumns().
|
private |
Definition at line 67 of file SxcDocumentDeserializer.java.
Referenced by org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer.processCells().