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

use SvNumberFormatter::FillKeywordTableForExcel()

Change-Id: I83b0cd033ba46dabdde92ed2812398518d1895bf
üst b5554804
......@@ -1366,14 +1366,7 @@ XclExpNumFmtBuffer::XclExpNumFmtBuffer( const XclExpRoot& rRoot ) :
default: mnXclOffset = 0; DBG_ERROR_BIFF();
}
mxFormatter->FillKeywordTable( *mpKeywordTable, LANGUAGE_ENGLISH_US );
// remap codes unknown to Excel
(*mpKeywordTable)[ NF_KEY_NN ] = "DDD";
(*mpKeywordTable)[ NF_KEY_NNN ] = "DDDD";
// NNNN gets a separator appended in SvNumberformat::GetMappedFormatString()
(*mpKeywordTable)[ NF_KEY_NNNN ] = "DDDD";
// Export the Thai T NatNum modifier.
(*mpKeywordTable)[ NF_KEY_THAI_T ] = "T";
mxFormatter->FillKeywordTableForExcel( *mpKeywordTable );
}
XclExpNumFmtBuffer::~XclExpNumFmtBuffer()
......@@ -2997,14 +2990,7 @@ XclExpDxfs::XclExpDxfs( const XclExpRoot& rRoot )
mxFormatter( new SvNumberFormatter( comphelper::getProcessComponentContext(), LANGUAGE_ENGLISH_US ) ),
mpKeywordTable( new NfKeywordTable )
{
mxFormatter->FillKeywordTable( *mpKeywordTable, LANGUAGE_ENGLISH_US );
// remap codes unknown to Excel
(*mpKeywordTable)[ NF_KEY_NN ] = "DDD";
(*mpKeywordTable)[ NF_KEY_NNN ] = "DDDD";
// NNNN gets a separator appended in SvNumberformat::GetMappedFormatString()
(*mpKeywordTable)[ NF_KEY_NNNN ] = "DDDD";
// Export the Thai T NatNum modifier.
(*mpKeywordTable)[ NF_KEY_THAI_T ] = "T";
mxFormatter->FillKeywordTableForExcel( *mpKeywordTable );
SCTAB nTables = rRoot.GetDoc().GetTableCount();
for(SCTAB nTab = 0; nTab < nTables; ++nTab)
......
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