summaryrefslogtreecommitdiff
path: root/sc/source/filter/oox
diff options
context:
space:
mode:
authorVasily Melenchuk <vasily.melenchuk@cib.de>2018-12-13 15:47:38 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2018-12-17 15:54:14 +0100
commit8cc29e7040ed02afd5f979e23c9ec154c0cb2c83 (patch)
treeebc6f37aa424c02b4a0d1c89c833c9400ba4ed94 /sc/source/filter/oox
parent0aff4d06e706fde2543fc0926f2e48e0c2139700 (diff)
tdf#99438: sc: support for .xltx export
Added support for content types for template and template with macros (.xltm, but no user interface for this yet). Fixed preferred extension for template: by default it is .xltx and not .xltm (macro-enabled), because MS Excel is very strict about matching of content-type and extension here. Fixed wrong namespace in FilterService for ExcelFilter. Change-Id: Ie717d31d72203601324860f069918d75082add4a Reviewed-on: https://gerrit.libreoffice.org/65111 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sc/source/filter/oox')
-rw-r--r--sc/source/filter/oox/excelfilter.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/filter/oox/excelfilter.cxx b/sc/source/filter/oox/excelfilter.cxx
index e638d0df7c82..c5fda17bd919 100644
--- a/sc/source/filter/oox/excelfilter.cxx
+++ b/sc/source/filter/oox/excelfilter.cxx
@@ -227,7 +227,7 @@ sal_Bool SAL_CALL ExcelFilter::filter( const css::uno::Sequence< css::beans::Pro
{
bool bExportVBA = exportVBA();
Reference< XExporter > xExporter(
- new XclExpXmlStream( getComponentContext(), bExportVBA ) );
+ new XclExpXmlStream( getComponentContext(), bExportVBA, isExportTemplate() ) );
Reference< XComponent > xDocument( getModel(), UNO_QUERY );
Reference< XFilter > xFilter( xExporter, UNO_QUERY );