@@ -108,44 +108,15 @@ type aP struct {
108108// formatting, since they are directly applied to the paragraph and supersede
109109// any formatting from styles.
110110type aPPr struct {
111- DefRPr aDefRPr `xml:"a:defRPr"`
112- }
113-
114- // aDefRPr directly maps the a:defRPr element. This element contains all
115- // default run level text properties for the text runs within a containing
116- // paragraph. These properties are to be used when overriding properties have
117- // not been defined within the rPr element.
118- type aDefRPr struct {
119- AltLang string `xml:"altLang,attr,omitempty"`
120- B bool `xml:"b,attr"`
121- Baseline int `xml:"baseline,attr"`
122- Bmk string `xml:"bmk,attr,omitempty"`
123- Cap string `xml:"cap,attr,omitempty"`
124- Dirty bool `xml:"dirty,attr,omitempty"`
125- Err bool `xml:"err,attr,omitempty"`
126- I bool `xml:"i,attr"`
127- Kern int `xml:"kern,attr"`
128- Kumimoji bool `xml:"kumimoji,attr,omitempty"`
129- Lang string `xml:"lang,attr,omitempty"`
130- NoProof bool `xml:"noProof,attr,omitempty"`
131- NormalizeH bool `xml:"normalizeH,attr,omitempty"`
132- SmtClean bool `xml:"smtClean,attr,omitempty"`
133- SmtID uint64 `xml:"smtId,attr,omitempty"`
134- Spc int `xml:"spc,attr"`
135- Strike string `xml:"strike,attr,omitempty"`
136- Sz int `xml:"sz,attr"`
137- U string `xml:"u,attr,omitempty"`
138- SolidFill * aSolidFill `xml:"a:solidFill"`
139- Latin * aLatin `xml:"a:latin"`
140- Ea * aEa `xml:"a:ea"`
141- Cs * aCs `xml:"a:cs"`
111+ DefRPr aRPr `xml:"a:defRPr"`
142112}
143113
144114// aSolidFill (Solid Fill) directly maps the solidFill element. This element
145115// specifies a solid color fill. The shape is filled entirely with the specified
146116// color.
147117type aSolidFill struct {
148- SchemeClr * aSchemeClr `xml:"a:schemeClr,omitempty"`
118+ SchemeClr * aSchemeClr `xml:"a:schemeClr"`
119+ SrgbClr * attrValString `xml:"a:srgbClr"`
149120}
150121
151122// aSchemeClr (Scheme Color) directly maps the a:schemeClr element. This
@@ -206,9 +177,29 @@ type aR struct {
206177// properties are defined as direct formatting, since they are directly applied
207178// to the run and supersede any formatting from styles.
208179type aRPr struct {
209- Lang string `xml:"lang,attr,omitempty"`
210- AltLang string `xml:"altLang,attr,omitempty"`
211- Sz int `xml:"sz,attr,omitempty"`
180+ AltLang string `xml:"altLang,attr,omitempty"`
181+ B bool `xml:"b,attr"`
182+ Baseline int `xml:"baseline,attr"`
183+ Bmk string `xml:"bmk,attr,omitempty"`
184+ Cap string `xml:"cap,attr,omitempty"`
185+ Dirty bool `xml:"dirty,attr,omitempty"`
186+ Err bool `xml:"err,attr,omitempty"`
187+ I bool `xml:"i,attr"`
188+ Kern int `xml:"kern,attr"`
189+ Kumimoji bool `xml:"kumimoji,attr,omitempty"`
190+ Lang string `xml:"lang,attr,omitempty"`
191+ NoProof bool `xml:"noProof,attr,omitempty"`
192+ NormalizeH bool `xml:"normalizeH,attr,omitempty"`
193+ SmtClean bool `xml:"smtClean,attr,omitempty"`
194+ SmtID uint64 `xml:"smtId,attr,omitempty"`
195+ Spc int `xml:"spc,attr"`
196+ Strike string `xml:"strike,attr,omitempty"`
197+ Sz int `xml:"sz,attr,omitempty"`
198+ U string `xml:"u,attr,omitempty"`
199+ SolidFill * aSolidFill `xml:"a:solidFill"`
200+ Latin * aLatin `xml:"a:latin"`
201+ Ea * aEa `xml:"a:ea"`
202+ Cs * aCs `xml:"a:cs"`
212203}
213204
214205// cSpPr (Shape Properties) directly maps the c:spPr element. This element
@@ -579,14 +570,10 @@ type formatChart struct {
579570
580571// formatChartLegend directly maps the format settings of the chart legend.
581572type formatChartLegend struct {
582- None bool `json:"none"`
583- DeleteSeries []int `json:"delete_series"`
584- Font struct {
585- Size int `json:"size"`
586- Blod bool `json:"blod"`
587- Italic bool `json:"italic"`
588- } `json:"font"`
589- Layout struct {
573+ None bool `json:"none"`
574+ DeleteSeries []int `json:"delete_series"`
575+ Font formatFont `json:"font"`
576+ Layout struct {
590577 X float64 `json:"x"`
591578 Y float64 `json:"y"`
592579 Width float64 `json:"width"`
0 commit comments