Cell

General data object for storing cell information.

new Cell()
Instance Members
clone()

CellBuilder

Builds the description of a table cell.

new CellBuilder(callback: Function)
Parameters
callback (Function) A function to be called with the cell data.
Instance Members
beginSheet()
emitCell(cell)
emitCoveredCell(cell)

ContentParser

Parses the content.xml file of an ODS document.

new ContentParser(styleResolver: StyleResolver, cellBuilder: CellBuilder)
Parameters
styleResolver (StyleResolver) Resolver used to look up styles.
cellBuilder (CellBuilder) Invoked for every parsed table cell.
Instance Members
parse(xml)

OdsReader

Central class for reading ODS files.

new OdsReader()
Static Members
readBuffer(buffer, callback)
readFile(filename, callback)

RichTextBuilder

Builds the rich text representation of a table cell.

new RichTextBuilder()
Instance Members
clear()
breakSegment()
append(text, style)
appendSpaces(style, count)
appendTabs(style, count)
appendLineBreaks(style, count)
build()

Style

General data object for storing style information.

new Style()
Instance Members
hasProperty(property)
clone()
merge(parentStyle)
equals(style)

StyleResolver

Resolves styles by their names.

new StyleResolver(styles: Map<string, Style>)
Parameters
styles (Map<string, Style> = new Map()) Map containing all known styles.
Instance Members
hasStyle(name)
getStyle(name)
getTextStyle(name)
getParagraphStyle(name)
getCellStyle(name)
getRowStyle(name)
getColumnStyle(name)

StylesParser

Parses the styles.xml file of an ODS document.

new StylesParser()
Instance Members
parse(xml)
resolveInheritance()
getStyles()
getStyle(name)

XmlContext

Maintains the current XML element hierarchy while parsing an XML document.

new XmlContext()
Instance Members
push(name)
root()
pop()
peek()
parent()
path()
contains(name)
isInside(elements)
isCurrent(name)
depth()