Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for some of the conditional formatting spec #83

Merged
merged 9 commits into from Apr 20, 2012

Conversation

scpike
Copy link
Collaborator

@scpike scpike commented Apr 20, 2012

I've added ConditionalFormatting and ConditionalFormattingRule classes to generate the <conditionalFormatting> chunks. It doesn't handle the entire spec and we need to support add support for dxfs before it's useful, but it's a base.

Documentation and tests are included.

Related to issue #33

Adds support for conditional formatting via two new classes,
ConditionalFormatting and ConditionalFormattingRule.

Conditional Formats apply to ranges of cells, and can include
multiple rules, ranked by priority.

A single worksheet has many @conditional_formattings applied to
different ranges.

There are still pieces of the spec missing from the
implementation. The biggest glaring ommission are the child elements
colorScale, dataBar, and iconSet (I only implemented formula).

http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.conditionalformattingrule.aspx
…ting

New Dxf class implements 18.8.14. Conditional formatting now "works".

Add :type option to add_styles, defaults to :xf

when add_styles is called with :dxf type, new styles are not added
to the global @Styles set. Dxf child elements only exist inside the
`<dxf>` chunk.

Added tests and an example.
Adds support for conditional formatting via two new classes,
ConditionalFormatting and ConditionalFormattingRule.

Conditional Formats apply to ranges of cells, and can include
multiple rules, ranked by priority.

A single worksheet has many @conditional_formattings applied to
different ranges.

There are still pieces of the spec missing from the
implementation. The biggest glaring ommission are the child elements
colorScale, dataBar, and iconSet (I only implemented formula).

http://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.conditionalformattingrule.aspx
@randym
Copy link
Owner

randym commented Apr 20, 2012

This is beautiful. Unequivocally beautiful. Clean code, clean docs and clean specs.

randym added a commit that referenced this pull request Apr 20, 2012
Support for some of the conditional formatting spec
@randym randym merged commit e43fd6c into randym:master Apr 20, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants