summaryrefslogtreecommitdiff
path: root/xmlStyles.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2017-03-26 15:27:04 +0800
committerRi Xu <xuri.me@gmail.com>2017-03-26 15:27:04 +0800
commitb6254209fe56c84a9ac99805ce3dd877a494e134 (patch)
tree87e44867fe4f34298d92b06f8458da48ce6b1349 /xmlStyles.go
parent0d3452fbe22b5700baa23a4972c68cbadc19d600 (diff)
- Set text in cell align support, note that the parameters of the `SetCellStyle` function have changed;
- go test updated
Diffstat (limited to 'xmlStyles.go')
-rw-r--r--xmlStyles.go13
1 files changed, 12 insertions, 1 deletions
diff --git a/xmlStyles.go b/xmlStyles.go
index 954e431..62bf0f5 100644
--- a/xmlStyles.go
+++ b/xmlStyles.go
@@ -277,10 +277,21 @@ type formatCellStyle struct {
Color string `json:"color"`
Style int `json:"style"`
} `json:"border"`
- Fill []struct {
+ Fill struct {
Type string `json:"type"`
Pattern int `json:"pattern"`
Color []string `json:"color"`
Shading int `json:"shading"`
} `json:"fill"`
+ Alignment *struct {
+ Horizontal string `json:"horizontal"`
+ Indent int `json:"indent,omitempty"`
+ JustifyLastLine bool `json:"justify_last_line"`
+ ReadingOrder uint64 `json:"reading_order"`
+ RelativeIndent int `json:"relative_indent"`
+ ShrinkToFit bool `json:"shrink_to_fit"`
+ TextRotation int `json:"text_rotation"`
+ Vertical string `json:"vertical"`
+ WrapText bool `json:"wrap_text"`
+ } `json:"alignment"`
}