OpenOffice.org
XMerge API

org.openoffice.xmerge.converter.xml.sxc.pexcel
Class SxcDocumentDeserializerImpl

java.lang.Object
  |
  +--org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer
        |
        +--org.openoffice.xmerge.converter.xml.sxc.pexcel.SxcDocumentDeserializerImpl
All Implemented Interfaces:
DocumentDeserializer, OfficeConstants

public final class SxcDocumentDeserializerImpl
extends SxcDocumentDeserializer

Pocket Excel implementation of DocumentDeserializer for the PluginFactoryImpl.

This converts a set of files in Pocket Excel PXL format to a StarOffice DOM.


Fields inherited from interface org.openoffice.xmerge.converter.xml.OfficeConstants
ATTRIBUTE_FO_FONT_FAMILY, ATTRIBUTE_OFFICE_CLASS, ATTRIBUTE_SPACE_COUNT, ATTRIBUTE_STYLE_FONT_PITCH, ATTRIBUTE_STYLE_NAME, ATTRIBUTE_TABLE_BOOLEAN_VALUE, ATTRIBUTE_TABLE_CURRENCY, ATTRIBUTE_TABLE_DATE_VALUE, ATTRIBUTE_TABLE_FORMULA, ATTRIBUTE_TABLE_NAME, ATTRIBUTE_TABLE_NUM_COLUMNS_REPEATED, ATTRIBUTE_TABLE_NUM_ROWS_REPEATED, ATTRIBUTE_TABLE_STRING_VALUE, ATTRIBUTE_TABLE_STYLE_NAME, ATTRIBUTE_TABLE_TIME_VALUE, ATTRIBUTE_TABLE_VALUE, ATTRIBUTE_TABLE_VALUE_TYPE, ATTRIBUTE_TEXT_STYLE_NAME, CELLTYPE_BOOLEAN, CELLTYPE_CURRENCY, CELLTYPE_DATE, CELLTYPE_FLOAT, CELLTYPE_PERCENT, CELLTYPE_STRING, CELLTYPE_TIME, SXC_FILE_EXTENSION, SXC_TYPE, SXW_FILE_EXTENSION, SXW_TYPE, TAG_BOOKMARK, TAG_BOOKMARK_START, TAG_HEADING, TAG_HYPERLINK, TAG_LINE_BREAK, TAG_LIST_HEADER, TAG_LIST_ITEM, TAG_OFFICE_AUTOMATIC_STYLES, TAG_OFFICE_BODY, TAG_OFFICE_DOCUMENT, TAG_OFFICE_DOCUMENT_CONTENT, TAG_OFFICE_DOCUMENT_STYLES, TAG_OFFICE_FONT_DECLS, TAG_OFFICE_MASTER_STYLES, TAG_OFFICE_STYLES, TAG_ORDERED_LIST, TAG_PARAGRAPH, TAG_SPACE, TAG_SPAN, TAG_STYLE_FONT_DECL, TAG_TAB_STOP, TAG_TABLE, TAG_TABLE_CELL, TAG_TABLE_COLUMN, TAG_TABLE_ROW, TAG_TABLE_SCENARIO, TAG_UNORDERED_LIST
 
Constructor Summary
SxcDocumentDeserializerImpl(ConvertData cd)
          Creates new SxcDocumentDeserializerImpl.
 
Method Summary
 SpreadsheetDecoder createDecoder(java.lang.String workbook, java.lang.String[] worksheetNames, java.lang.String password)
          This method will be implemented by concrete subclasses and will return an application-specific decoder.
protected  java.lang.String getWorkbookName(ConvertData cd)
          This method will return the name of the WorkBook from the ConvertData.
protected  java.lang.String[] getWorksheetNames(ConvertData cd)
          This method will return an array of WorkSheet names from the ConvertData.
 
Methods inherited from class org.openoffice.xmerge.converter.xml.sxc.SxcDocumentDeserializer
addEmptyCells, addEmptyRows, decode, deserialize, parseFormula, processCellData, processCells, processTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SxcDocumentDeserializerImpl

public SxcDocumentDeserializerImpl(ConvertData cd)
Creates new SxcDocumentDeserializerImpl.
Parameters:
cd - ConvertData Input data to convert.
Method Detail

createDecoder

public SpreadsheetDecoder createDecoder(java.lang.String workbook,
                                        java.lang.String[] worksheetNames,
                                        java.lang.String password)
                                 throws java.io.IOException
This method will be implemented by concrete subclasses and will return an application-specific decoder.
Overrides:
createDecoder in class SxcDocumentDeserializer
Parameters:
workbook - The WorkBook name.
worksheetNames - An array of WorkSheet names.
password - The password.
Returns:
An application-specific SpreadsheetDecoder.

getWorkbookName

protected java.lang.String getWorkbookName(ConvertData cd)
                                    throws java.io.IOException
This method will return the name of the WorkBook from the ConvertData. Allows for situations where the WorkBook name differs from the PDB name. Implemented in the Deserializer as the Decoder's constructor requires a name.
Overrides:
getWorkbookName in class SxcDocumentDeserializer
Parameters:
cd - The ConvertData.
Returns:
The name of the WorkBook.

getWorksheetNames

protected java.lang.String[] getWorksheetNames(ConvertData cd)
                                        throws java.io.IOException
This method will return an array of WorkSheet names from the ConvertData.
Overrides:
getWorksheetNames in class SxcDocumentDeserializer
Parameters:
cd - The ConvertData.
Returns:
The name of the WorkSheet.

OpenOffice.org
XMerge API

Copyright © 2002 OpenOffice.org