Class Index | File Index

Classes


Class odf.Style2CSS


Defined in: Style2CSS.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<inner>  
addListStyleRule(sheet, name, node, itemrule)
<inner>  
addListStyleRules(sheet, name, node)
<inner>  
addPageStyleRules(sheet, node)
<inner>  
addRule(sheet, family, name, node)
<inner>  
addRules(sheet, family, name, node)
<inner>  
addStyleMapToStyleTree(stylesmap, stylestree)
<inner>  
addStyleRule(sheet, family, name, node)
<inner>  
addStyleToStyleTree(stylename, stylesmap, stylestree)
<inner>  
applySimpleMapping(props, mapping)
<inner>  
createSelector(family, name)
<inner>  
findStyle(stylestree, name)
<inner>  
Make sure border width is no less than 1px wide; otherwise border is not rendered.
<inner>  
<inner>  
getDirectChild(node, ns, name)
<inner>  
<inner>  
getFontSize(styleNode)
Returns the font size attribute value from the text properties of a style node
<inner>  
<inner>  
<inner>  
<inner>  
<inner>  
getParentStyleNode(styleNode)
Returns the parent style node of a given style node
<inner>  
getSelectors(family, name, node)
<inner>  
getStyleMap(stylesnode)
<inner>  
<inner>  
<inner>  
<inner>  
<inner>  
<inner>  
hexToRgb(hex)
<inner>  
<inner>  
matchToRgb(m, r, g, b)
 
style2css(doctype, stylesheet, fontFaceMap, styles, autostyles)
Class Detail
odf.Style2CSS()
Method Detail
<inner> {undefined} addListStyleRule(sheet, name, node, itemrule)
Parameters:
{!CSSStyleSheet} sheet
{!string} name
{!Element} node
{string} itemrule
Returns:
{undefined}

<inner> {undefined} addListStyleRules(sheet, name, node)
Parameters:
{!CSSStyleSheet} sheet
{string} name
{!Element} node
Returns:
{undefined}

<inner> {undefined} addPageStyleRules(sheet, node)
Parameters:
{!CSSStyleSheet} sheet
{!Element} node
/
Returns:
{undefined}

<inner> {undefined} addRule(sheet, family, name, node)
Parameters:
{!CSSStyleSheet} sheet
{string} family
{string} name
{!odf.StyleTreeNode} node
Returns:
{undefined}

<inner> {undefined} addRules(sheet, family, name, node)
Parameters:
{!CSSStyleSheet} sheet
{string} family
{string} name
{!odf.StyleTreeNode} node
Returns:
{undefined}

<inner> {undefined} addStyleMapToStyleTree(stylesmap, stylestree)
Parameters:
{!Object.} stylesmap
{!Object.} stylestree
Returns:
{undefined}

<inner> {undefined} addStyleRule(sheet, family, name, node)
Parameters:
{!CSSStyleSheet} sheet
{string} family
{string} name
{!odf.StyleTreeNode} node
Returns:
{undefined}

<inner> {?odf.StyleTreeNode} addStyleToStyleTree(stylename, stylesmap, stylestree)
Parameters:
{string} stylename
{!Object.} stylesmap
{!Object.} stylestree
Returns:
{?odf.StyleTreeNode}

<inner> {!string} applySimpleMapping(props, mapping)
Parameters:
{!Element} props
{!Array.>} mapping
Returns:
{!string}

<inner> {?string} createSelector(family, name)
Parameters:
{!string} family
{!string} name
Returns:
{?string}

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

<inner> {!string} fixBorderWidth(value)
Make sure border width is no less than 1px wide; otherwise border is not rendered. Only have problems with point unit at the moment. Please add more rule if needed.
Parameters:
{!string} value
a string contains border attributes eg. 1pt solid black or 1px
Returns:
{!string}

<inner> {string} getBulletRule(node)
Parameters:
{!Element} node
Returns:
{string}

<inner> {?Element} getDirectChild(node, ns, name)
Parameters:
{?Element} node
{!string} ns
{!string} name
Returns:
{?Element}

<inner> {string} getDrawingPageProperties(props)
Parameters:
{!Element} props
Returns:
{string}

<inner> {?{value: !number|unit: !string}} getFontSize(styleNode)
Returns the font size attribute value from the text properties of a style node
Parameters:
{?Element} styleNode
Returns:
{?{value: !number|unit: !string}}

<inner> {string} getGraphicProperties(props)
Parameters:
{!Element} props
Returns:
{string}

<inner> {string} getImageRule()
Returns:
{string}

<inner> {string} getNumberRule(node)
Parameters:
{!Element} node
Returns:
{string}

<inner> {!string} getParagraphProperties(props)
Parameters:
{!Element} props
Returns:
{!string}

<inner> {Element} getParentStyleNode(styleNode)
Returns the parent style node of a given style node
Parameters:
{!Element} styleNode
Returns:
{Element}

<inner> {!Array.} getSelectors(family, name, node)
Parameters:
{!string} family
{!string} name
{!odf.StyleTreeNode} node
Returns:
{!Array.}

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

<inner> {string} getTableCellProperties(props)
Parameters:
{!Element} props
Returns:
{string}

<inner> {string} getTableColumnProperties(props)
Parameters:
{!Element} props
Returns:
{string}

<inner> {string} getTableProperties(props)
Parameters:
{!Element} props
Returns:
{string}

<inner> {string} getTableRowProperties(props)
Parameters:
{!Element} props
Returns:
{string}

<inner> {!string} getTextProperties(props)
Parameters:
{!Element} props
Returns:
{!string}

<inner> {?{ r: number|g: number|b: number}} hexToRgb(hex)
Parameters:
{!string} hex
Returns:
{?{ r: number|g: number|b: number}}

<inner> {boolean} isNumber(n)
Parameters:
{string} n
Returns:
{boolean}

<inner> {string} matchToRgb(m, r, g, b)
Parameters:
{*} m
{string} r
{string} g
{string} b
Returns:
{string}

{undefined} style2css(doctype, stylesheet, fontFaceMap, styles, autostyles)
Parameters:
{!string} doctype
{!CSSStyleSheet} stylesheet
{!Object.} fontFaceMap
{!Element} styles
{!Element} autostyles
Returns:
{undefined}

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Jan 28 2014 15:10:26 GMT+0100 (CET)