Class Index | File Index

Classes


Class odf.StyleTree


Defined in: StyleTree.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
odf.StyleTree(styles, autoStyles)
StyleTree creates a nested dictionary of the styles in an ODF document This is to allow the lookup of all styles for a given family by using the family name as the key and then the specific style in that family by using the style name as the key.
Method Summary
Method Attributes Method Name and Description
<inner>  
addStyleMapToStyleTree(stylesMap, stylesTree)
<inner>  
createStyleTreeNode(styleName, stylesMap, stylesTree)
Creates the StyleTreeNode from the style element and inserts it into the given StyleTree
<inner>  
findStyleTreeNode(stylesTree, name)
<inner>  
getStyleMap(stylesNode)
 
Class Detail
odf.StyleTree(styles, autoStyles)
StyleTree creates a nested dictionary of the styles in an ODF document This is to allow the lookup of all styles for a given family by using the family name as the key and then the specific style in that family by using the style name as the key.
Parameters:
{!Element} styles
{!Element} autoStyles
Method Detail
<inner> {undefined} addStyleMapToStyleTree(stylesMap, stylesTree)
Parameters:
{!Object.} stylesMap
{!Object.} stylesTree
Returns:
{undefined}

<inner> {?odf.StyleTreeNode} createStyleTreeNode(styleName, stylesMap, stylesTree)
Creates the StyleTreeNode from the style element and inserts it into the given StyleTree
Parameters:
{string} styleName
{!Object.} stylesMap
{!Object.} stylesTree
Returns:
{?odf.StyleTreeNode}

<inner> {odf.StyleTreeNode} findStyleTreeNode(stylesTree, name)
Parameters:
{!Object.} stylesTree
{string} name
Returns:
{odf.StyleTreeNode}

<inner> {!Object.>} getStyleMap(stylesNode)
Parameters:
{!Element} stylesNode
Returns:
{!Object.>}

{!odf.StyleTree.Tree} getStyleTree()
Returns:
{!odf.StyleTree.Tree}

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Aug 06 2015 04:10:41 GMT+0200 (MESZ)