summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2015-06-22 18:47:31 +0200
committerEike Rathke <erack@redhat.com>2015-06-23 00:39:01 +0200
commit81e6799d376f23d5079121a4c830f3662c2e7750 (patch)
tree98d808b754c2baa18d1a7ce7689376e320bd65b9 /sc
parentcd1f3ec952ba2820e6dbae400e3d2853eb88f97b (diff)
Excel export: set correct grammar for named expressions symbols
This was always wrong for OOXML export, function names may have been written without _xlfn. prefix or substitutions not been processed, but will be vital for TableRef transformation to A1 notation. Change-Id: Ieffd7d78e2c744d3c12228a0a815b5ce68b26c81 (cherry picked from commit 17815049103b920df054b4f1bb8b1e99486972f2)
Diffstat (limited to 'sc')
-rw-r--r--sc/source/filter/excel/xename.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/filter/excel/xename.cxx b/sc/source/filter/excel/xename.cxx
index 8c8a010fd951..4466a1e12584 100644
--- a/sc/source/filter/excel/xename.cxx
+++ b/sc/source/filter/excel/xename.cxx
@@ -548,7 +548,8 @@ sal_uInt16 XclExpNameManagerImpl::CreateName( SCTAB nTab, const ScRangeData& rRa
xName->SetTokenArray( xTokArr );
OUString sSymbol;
- rRangeData.GetSymbol( sSymbol, formula::FormulaGrammar::GRAM_ENGLISH_XL_A1 );
+ rRangeData.GetSymbol( sSymbol, ((GetOutput() == EXC_OUTPUT_BINARY) ?
+ formula::FormulaGrammar::GRAM_ENGLISH_XL_A1 : formula::FormulaGrammar::GRAM_OOXML));
xName->SetSymbol( sSymbol );
/* Try to replace by existing built-in name - complete token array is