Class Index | File Index

Classes


Class odf.OdfContainer


Defined in: OdfContainer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
odf.OdfContainer(urlOrType, onstatereadychange)
The OdfContainer class manages the various parts that constitues an ODF document.
Field Summary
Field Attributes Field Name and Description
<static>  
odf.OdfContainer.DocumentType
Method Summary
Method Attributes Method Name and Description
<inner>  
cloneFontFaceDeclsUsedInStyles(fontFaceDeclsRootElement, stylesRootElementList)
Creates a clone of the font face declaration tree containing only those declarations which are referenced in the passed styles.
<inner>  
cloneStylesInScope(stylesRootElement, scope)
Creates a clone of the styles tree containing only styles tagged with the given scope, or with no specified scope.
<inner>  
createByteArray(successCallback, errorCallback)
Create a bytearray from the zipfile.
<inner>  
<inner>  
<inner>  
createEmptyDocument(type, isTemplate)
<inner>  
createManifestEntry(fullPath, mediaType)
Creates a manifest:file-entry node
<inner>  
Fill the zip with current data.
<static>  
odf.OdfContainer.getContainer(url)
 
 
Gets the document type as 'text', 'presentation', or 'spreadsheet'.
<inner>  
Returns the meta element.
<inner>  
getMetadata(metadataNs, metadataLocalName)
 
getPart(partname)
Open file and parse it.
 
getPartData(url, callback)
 
<inner>  
<inner>  
handleFlatXml(xmldoc)
<inner>  
<inner>  
handleMetaXml(xmldoc)
<inner>  
<inner>  
<inner>  
Import the document elementnode into the DOM of OdfContainer.
 
Increment the number of times the document has been edited.
 
Returns whether the document is a template.
<inner>  
Iterates through the subtree of rootElement and adds annotation-end elements as direct properties of the corresponding annotation elements.
<inner>  
<inner>  
loadFromXML(url, callback)
<inner>  
loadNextComponent(remainingComponents)
<inner>  
mapByFontFaceName(fontFaceDecls)
Returns a map with the fontface declaration elements, with font-face name as key.
<inner>  
mergeFontFaceDecls(targetFontFaceDeclsRootElement, sourceFontFaceDeclsRootElement)
Merges all style:font-face elements from the source into the target.
 
removeBlob(filename)
<inner>  
Remove all attributes that have no namespace and that have localname like 'on.
<inner>  
Remove any HTML