From e72e8c59fb1103f46b3d0b3e6a2386566068b1a2 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Sun, 27 Sep 2015 07:35:39 +0200 Subject: OOXML with VBA needs to be a different filter type The filter type also contains the file format, so we need to use a different type to keep the xlsm extension during export. Now the only missing part is the warning that saving as the non-VBA version will loose the VBA stream. Change-Id: I11f78d2c33cb2834086a4e9fad141b3e374b8991 --- filter/Configuration_filter.mk | 1 + .../filters/calc_MS_Excel_2007_VBA_XML.xcu | 2 +- .../fragments/types/MS_Excel_2007_VBA_XML.xcu | 27 ++++++++++++++++++++++ .../config/fragments/types/MS_Excel_2007_XML.xcu | 2 +- 4 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 filter/source/config/fragments/types/MS_Excel_2007_VBA_XML.xcu (limited to 'filter') diff --git a/filter/Configuration_filter.mk b/filter/Configuration_filter.mk index 1f7280789091..5fe58b0e3aca 100644 --- a/filter/Configuration_filter.mk +++ b/filter/Configuration_filter.mk @@ -506,6 +506,7 @@ $(eval $(call filter_Configuration_add_types,fcfg_langpack,fcfg_calc_types.xcu,f calc8 \ calc8_template \ MS_Excel_2007_XML \ + MS_Excel_2007_VBA_XML \ MS_Excel_2007_XML_Template \ MS_Excel_2007_Binary \ calc_OOXML \ diff --git a/filter/source/config/fragments/filters/calc_MS_Excel_2007_VBA_XML.xcu b/filter/source/config/fragments/filters/calc_MS_Excel_2007_VBA_XML.xcu index afd66dbcad27..f8321358f826 100644 --- a/filter/source/config/fragments/filters/calc_MS_Excel_2007_VBA_XML.xcu +++ b/filter/source/config/fragments/filters/calc_MS_Excel_2007_VBA_XML.xcu @@ -21,7 +21,7 @@ com.sun.star.comp.oox.xls.ExcelFilter macro-enabled - MS Excel 2007 XML + MS Excel 2007 VBA XML com.sun.star.sheet.SpreadsheetDocument diff --git a/filter/source/config/fragments/types/MS_Excel_2007_VBA_XML.xcu b/filter/source/config/fragments/types/MS_Excel_2007_VBA_XML.xcu new file mode 100644 index 000000000000..17f6f0ad3e9b --- /dev/null +++ b/filter/source/config/fragments/types/MS_Excel_2007_VBA_XML.xcu @@ -0,0 +1,27 @@ + + + com.sun.star.comp.oox.FormatDetector + + xlsm + application/vnd.ms-excel.sheet.macroEnabled.12 + false + Calc MS Excel 2007 VBA XML + Microsoft Excel 2007-2016 VBA XML + + diff --git a/filter/source/config/fragments/types/MS_Excel_2007_XML.xcu b/filter/source/config/fragments/types/MS_Excel_2007_XML.xcu index 42819b8d7003..b39c3c19b469 100644 --- a/filter/source/config/fragments/types/MS_Excel_2007_XML.xcu +++ b/filter/source/config/fragments/types/MS_Excel_2007_XML.xcu @@ -18,7 +18,7 @@ com.sun.star.comp.oox.FormatDetector - xlsx xlsm + xlsx application/vnd.openxmlformats-officedocument.spreadsheetml.sheet false Calc MS Excel 2007 XML -- cgit