Returns a JSON representation of the style attributes of a given style element, also containing attributes
inherited from it's ancestry - up to and including the document's default style for the family.

Create a style object (JSON-equivalent) that is equivalent to inheriting from the parent
style and family, and applying the specified overrides.
This contains logic for simulating inheritance for automatic styles

Parameters:

{!string}parentStyleName

{!string}family

{!odf.Formatting.StyleData}overrides

Returns:

{!odf.Formatting.StyleData}

<inner>
{!Array.}getAppliedStyles(nodes, calculatedStylesCache)

Returns an array of all unique styles in the given text nodes

Parameters:

{!Array.}nodes

{!Object.=}calculatedStylesCache

Short-lived cache of calculated styles.
Useful if a function is looking up the style information for multiple nodes without updating
any style definitions.

Returns a JSON representation of the style attributes of a given style element, also containing attributes
inherited from it's ancestry - up to and including the document's default style for the family.

Parameters:

{!Element}styleNode

{!boolean=}includeSystemDefault

True by default. Specify false to suppress inclusion of system defaults

Returns:

{!odf.Formatting.StyleData}

<inner>
{?Element}getMasterPageElement(pageName)

Find a master page definition with the specified name

Parameters:

{!string}pageName

Returns:

{?Element}

<inner>
{?Element}getPageLayoutStyleElement(styleName, styleFamily)

Gets the associated page layout style node for the given style and family.

Parameters:

{!string}styleName

{!string}styleFamily

either 'paragraph' or 'table'

Returns:

{?Element}

<inner>
{!odf.Formatting.StyleData}getStyleAttributes(styleNode)

Returns a JSON representation of the style attributes of a given style element

Parameters:

{!Element}styleNode

Returns:

{!odf.Formatting.StyleData}

<inner>
{?Element}getStyleElement(styleName, family, styleElements)

Fetch style element associated with the requested name and family

Parameters:

{!string}styleName

{!string}family

{!Array.=}styleElements

Specific style trees to search. If unspecified will search both automatic
and user-created styles

Returns a JSON representation of the built-in default style attributes
of a given style family.
Creates a deep copy, so the result can be modified by the callee.
If there are no such attributes, null is returned.

Parameters:

{string}styleFamily

Returns:

{!odf.Formatting.StyleData}

{!boolean}hasParagraphStyle(styleName)

Returns if there is an automatic or common paragraph style with the given name.

Parameters:

{!string}styleName

Returns:

{!boolean}

<inner>
{!boolean}isCommonStyleElement(styleNode)

Returns true if the supplied style node is a common style.
From the OpenDocument spec:
"Common and automatic styles behave differently in OpenDocument editing consumers. Common
styles are presented to the user as a named set of formatting properties. The formatting
properties of an automatic style are presented to a user as properties of the object to
which the style is applied."
http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#element-office_automatic-styles

Overrides the specific properties on the styleNode from the values in the supplied properties Object.
If a newStylePrefix is supplied, this method will automatically generate a unique name for the style node