Add a set of callbacks to receive notification.
The callbacks object.
Optionaloptions: IListener.Options
Options
A function that can be called to remove the listener.
Start persisting styles.
Clears the mru color list
Returns the customized Indexed colors.
Returns the document's own table styles, customized built-ins included.
Themes do not contain font sizes but it is possible to set a default font size at the document or application level.
Returns the style a table is given when it is created without one.
Returns an array of colors that will be used to resolve any colors that use IndexXX or ColorXX as a key.
Returns the named cell styles.
Return a the Normal styles as an IStyle.;
Convenience mechanism (and slightly faster) way to call getNamed('Normal').getRanged();
Returns the table style with the given name, or null if there is none; with no name, the
style of a table that has none.
Optionalname: stringReturns the table styles, and the default for a new table.
Returns the current theme
This is available for functions that want to resolve colors using the index color palette.
Converts a list of IStyle.Modifiers that contain shorthand values into native values.
A valid IStyle.Modifiers with values that match the normal style removed.
Returns a list of colors that were added via addRecentColor.
Flattens a style against the named style it references, resolving shorthand values as it goes.
A valid IStyle.Properties with the referenced style's values merged in.
The inverse of IStyleCollection.normalize: where normalize reduces a style to what it
authors over its named style, this restores what that authorship actually resolves to. Formats
that store a style as a self-contained record rather than as a delta (OOXML xf) need this on
the way out.
This is available for functions that want to resolve colors for the theme used specifically for this style.
Override the default indexed colors.
An array of colors.
Adds or updates a table style.
Set the default fontSize. Note - A theme does NOT contain this.
The new default font size.
Sets the style a table is given when it is created without one.
Adds or updates a named style.
Checks the current name to see if this is a valid sheetName.
Base implementation of IStyleCollection
TODO - defaultFontSize move to theme?