Kaydet (Commit) 17815049 authored tarafından Eike Rathke's avatar Eike Rathke

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
üst a51ac4d2
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment