summaryrefslogtreecommitdiff
path: root/xmlDrawing.go
diff options
context:
space:
mode:
authorxuri <xuri.me@gmail.com>2022-09-08 22:20:21 +0800
committerxuri <xuri.me@gmail.com>2022-09-08 22:20:21 +0800
commitfb1aab7add52808c96c9cc10570fe73ce797b7f4 (patch)
tree778202a8944ecad3c7f74edf4f9ac4b0a150f79d /xmlDrawing.go
parent0c5cdfec1868f31f6e355cdcb0a91220bad80522 (diff)
This closes #744, the `Save`, `Write` and `WriteTo` function accept saving options
Diffstat (limited to 'xmlDrawing.go')
-rw-r--r--xmlDrawing.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/xmlDrawing.go b/xmlDrawing.go
index 34c9858..fc8dee5 100644
--- a/xmlDrawing.go
+++ b/xmlDrawing.go
@@ -144,6 +144,15 @@ const (
// supportedImageTypes defined supported image types.
var supportedImageTypes = map[string]string{".gif": ".gif", ".jpg": ".jpeg", ".jpeg": ".jpeg", ".png": ".png", ".tif": ".tiff", ".tiff": ".tiff", ".emf": ".emf", ".wmf": ".wmf", ".emz": ".emz", ".wmz": ".wmz"}
+// supportedContentType defined supported file format types.
+var supportedContentType = map[string]string{
+ ".xlam": ContentTypeAddinMacro,
+ ".xlsm": ContentTypeMacro,
+ ".xlsx": ContentTypeSheetML,
+ ".xltm": ContentTypeTemplateMacro,
+ ".xltx": ContentTypeTemplate,
+}
+
// xlsxCNvPr directly maps the cNvPr (Non-Visual Drawing Properties). This
// element specifies non-visual canvas properties. This allows for additional
// information that does not affect the appearance of the picture to be stored.