Class odf.StylePile
Defined in: StyleCache.js.
Constructor Attributes | Constructor Name and Description |
---|---|
odf.StylePile(styleParseUtils, masterPageCache)
Collection of all the styles in the document for one style family.
|
Method Attributes | Method Name and Description |
---|---|
addAutomaticStyle(style)
|
|
addCommonStyle(style)
|
|
<inner> |
getStyle(styleName)
|
<inner> |
parseStyle(element, visitedStyles)
|
setDefaultStyle(style)
|
Class Detail
odf.StylePile(styleParseUtils, masterPageCache)
Collection of all the styles in the document for one style family.
There are separate style piles for family 'text', 'paragraph', 'graphic' etc.
- Parameters:
- {!odf.StyleParseUtils} styleParseUtils
- {!odf.MasterPageCache} masterPageCache
Method Detail
{undefined}
addAutomaticStyle(style)
- Parameters:
- {!Element} style
- Returns:
- {undefined}
{undefined}
addCommonStyle(style)
- Parameters:
- {!Element} style
- Returns:
- {undefined}
{!odf.StylePileEntry|undefined}
getDefaultStyle()
- Returns:
- {!odf.StylePileEntry|undefined}
<inner>
{!odf.StylePileEntry|undefined}
getStyle(styleName)
- Parameters:
- {!string} styleName
- Returns:
- {!odf.StylePileEntry|undefined}
<inner>
{!odf.StylePileEntry}
parseStyle(element, visitedStyles)
- Parameters:
- {!Element} element
- {!Array.} visitedStyles
- track visited styles to avoid loops
- Returns:
- {!odf.StylePileEntry}
{undefined}
setDefaultStyle(style)
- Parameters:
- {!Element} style
- Returns:
- {undefined}