You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We might provide functions to modify the set of predefined cell styles. At first glance they appear to consist of a name and xfId pointing to cellXfs. So all the style values have to be available in styles.xml (fills, border, numfmt etc.). Simply adding a builtin style Heading 1 appears not to be sufficient to style a cell. The builtinIds might indicate the position of the cell style in the drop down menu below.
From my understanding who is pointing at whom:cellStyles -> cellXfs -> cellStylesXfs. Not sure why cellXfs is required, if cellStyleXfs basically does the same (handling borders, fonts, fills and numfmts). (This is not true. From [1]: "The xfId [in cellStyles] is a zero-based index, referencing an xf record in the cellStyleXfs collection.")
I've added help wanted, but it is merely an invitation for others to work on this. It should be straight forward, since we provide almost all that is needed. Maybe missing cellXfs and cellStyles in style_mgr, but everything else should already be in place and would simply require some functions wrapping things nicely. Though it requires some further research and testing.
[1] ECMA-376-1:2016: Office Open XML File Formats — Fundamentals and Markup Language Reference
PS: Maybe for a start I would leave out cellXfsand see if that matters after all.
The text was updated successfully, but these errors were encountered:
We might provide functions to modify the set of predefined cell styles. At first glance they appear to consist of a
name
andxfId
pointing tocellXfs
. So all the style values have to be available instyles.xml
(fills, border, numfmt etc.). Simply adding abuiltin
styleHeading 1
appears not to be sufficient to style a cell. ThebuiltinId
s might indicate the position of the cell style in the drop down menu below.From my understanding who is pointing at whom:
(This is not true. From [1]: "The xfId [in cellStyles] is a zero-based index, referencing an xf record in the cellStyleXfs collection.")cellStyles
->cellXfs
->cellStylesXfs
. Not sure whycellXfs
is required, ifcellStyleXfs
basically does the same (handling borders, fonts, fills and numfmts).I've added
help wanted
, but it is merely an invitation for others to work on this. It should be straight forward, since we provide almost all that is needed. Maybe missingcellXfs
andcellStyles
instyle_mgr
, but everything else should already be in place and would simply require some functions wrapping things nicely. Though it requires some further research and testing.[1] ECMA-376-1:2016: Office Open XML File Formats — Fundamentals and Markup Language Reference
PS: Maybe for a start I would leave out
cellXfs
and see if that matters after all.The text was updated successfully, but these errors were encountered: