summaryrefslogtreecommitdiff
path: root/xmlDrawing.go
diff options
context:
space:
mode:
authorRi Xu <xuri.me@gmail.com>2017-02-28 12:59:04 +0800
committerRi Xu <xuri.me@gmail.com>2017-02-28 12:59:04 +0800
commit1e340aea40085133ffb98ed7635d937aa977f177 (patch)
treeadd4ce58cdefe884b6e362e9e1c6bb92deaccf16 /xmlDrawing.go
parent4b8b410f523993520c133200dacc44d5311b9fd5 (diff)
Change function `AddPicture()` parameters to add add printing settings support. Related issue #27.
Diffstat (limited to 'xmlDrawing.go')
-rw-r--r--xmlDrawing.go11
1 files changed, 11 insertions, 0 deletions
diff --git a/xmlDrawing.go b/xmlDrawing.go
index 1b80975..f4b0f02 100644
--- a/xmlDrawing.go
+++ b/xmlDrawing.go
@@ -187,3 +187,14 @@ type xlsxWsDr struct {
type encodeWsDr struct {
WsDr xlsxWsDr `xml:"xdr:wsDr"`
}
+
+// xlsxFormatPicture directly maps the format settings of the picture.
+type xlsxFormatPicture struct {
+ FPrintsWithSheet bool `json:"print_obj"`
+ FLocksWithSheet bool `json:"locked"`
+ NoChangeAspect bool `json:"lock_aspect_ratio"`
+ OffsetX int `json:"x_offset"`
+ OffsetY int `json:"y_offset"`
+ XScale float64 `json:"x_scale"`
+ YScale float64 `json:"y_scale"`
+}