Add a listener for style changes.
Add a color to the mru list. This is used to populate color pickers.
Note - Any color can be added but generally this should be limited to custom/non-themed color
Add a reference for a shared style. This is done to allow styles to be shared. The reference passed is used to track the current style usage. Once it's released or GC'ed the style will be release from the shared pool.
Returns a reference to a new style. If will generally be the same cell style but if the cells style was created from a different styles then a new one will be returned.
The previously created style
Start persisting styles. This is used during save/load to allow for styles to be references by an id count. This is a stack so multiple begins will need to be matched with an end.
Allows for a non managed style. Useful for tooltips or other transient styles.
(And original values to inherit from)
Returns the built in cell style for the given key.
Returns the built in style for the given key.
A string of the name of the table.
Returns all customized named cell styles.
This includes new style names and builtin overrides.
Return the customized Indexed colors.
Returns all customized table styles.
This includes new table styles and builtin overrides.
Returns the default TableStyle.
Return an array of colors that will be used to resolve any colors that use IndexXX or ColorXX as a key.
This will also return a list of colors.
Returns The named style from either a custom style or a builtin.
Will try to return:
Convenience mechanism (and slightly faster) way to call getNamedCellStyle('Normal');
Returns a style that is an adjustment of the original. This method also tracks usages of the styles.
If an adjustment of null or has no values then the 'named' style will be returned.
Note - If a style that is being updated is using the same original cell and the same ref. The original style is released.
either a new partial style or a ICellStyleUpdater that
the original style. This is either another SharedStyle which will be used as a template or a NamedStyle. If this is not specified then the normal style will be used.
This is any object that is used for tracking.
Returns The table style. This can be either a custom or a built in table style.
Will try to return:
This will remove a custom styles or hide built-in cell style.
The named style or the string name of a named style.
Returns a flag indicating if the style was removed or hidden.
This is available for functions that want to resolve colors using the index color palette.
Converts a list of SerializableCellStyleValues that contain shorthand values into native values. It will also remove any value that resolve to the same values as the referenced named style (or Normal if this is not specified)
Given a border rationalize the border edges for a coord with a range.
Returns a list of colors that were added via
This will remove a custom cell style.
The named style or the string name of a named style.
true if the style was removed.
Parses the color using the Theme being used by this style
This is available for functions that want to resolve colors for the theme used specifically for this style.
This will add or update a cell style.
If true then the style will be merged with the existing style otherwise is a replace.
the new style after any merges.
Case insensitive; for duplicate detection purposes.
false
Override the default indexed colors.
This will add or update a table style.
A string of the name of the table.
the values to set for the table style.
Case insensitive; for duplicate detection purposes.
Will fire a change event
Base implementation of
See
ISheetStyle
TODO - defaultFontSize move to theme?