https://bz.apache.org/bugzilla/show_bug.cgi?id=61085
Bug ID: 61085
Summary: StylesTable doesn't include table styles
Product: POI
Version: 3.17-dev
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P2
Component: XSSF
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
The OOXML styles.xml includes a <tableStyles> collection defining custom styles
for data tables and pivot tables. The StylesTable class should know about
them.
Further, it should know about the built-in styles defined in the OOXML spec
Annex G.
The XML definitions of these can be found here:
http://www.ecma-international.org/news/TC45_current_work/OfficeOpenXML-SpreadsheetMLStyles.zip
These are not in the same format as styles.xml, unfortunately, but recognizable
as similar.
Table styles are referenced by name, not index as other style elements, but
refer to <dxf> elements in the same collection as other types of styles, like
conditional formatting rules, by the same indexes.
It is quite possible, even likely that a single workbook will have <dxf>
elements for both conditional formats and tables, and possibly even share some
between them if they are identical in definition (don't have proof of this, but
the spec indicates it could happen).
StylesTable should have name based getter functionality, and the new TableStyle
or whatever class should know about the list of possible style dxfs. These are
referenced by type name, and have a well-defined application hierarchy in the
spec.
The resulting API should make it easy to navigate table styles by name, and
then the styles of an element by both type and cell within a table, finding the
ordered set of styles to process for a given cell given its table position and
the table style configuration (boolean properties for things like whether or
not to use alternating row styles).
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]