From fb1aab7add52808c96c9cc10570fe73ce797b7f4 Mon Sep 17 00:00:00 2001 From: xuri Date: Thu, 8 Sep 2022 22:20:21 +0800 Subject: This closes #744, the `Save`, `Write` and `WriteTo` function accept saving options --- xmlDrawing.go | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'xmlDrawing.go') 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. -- cgit v1.2.1