From 1e340aea40085133ffb98ed7635d937aa977f177 Mon Sep 17 00:00:00 2001 From: Ri Xu Date: Tue, 28 Feb 2017 12:59:04 +0800 Subject: Change function `AddPicture()` parameters to add add printing settings support. Related issue #27. --- xmlDrawing.go | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'xmlDrawing.go') 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"` +} -- cgit v1.2.1