Kaydet (Commit) 0998b52b authored tarafından Eike Rathke's avatar Eike Rathke Kaydeden (comit) Kohei Yoshida

resolved fdo#60087 corrected .xlsx export of functions

Change-Id: I6c7ba47dde88a73d035b1db5f7f4cede78b262db
(cherry picked from commit 0c7a1b6e)
Reviewed-on: https://gerrit.libreoffice.org/1929Reviewed-by: 's avatarKohei Yoshida <kohei.yoshida@gmail.com>
Tested-by: 's avatarKohei Yoshida <kohei.yoshida@gmail.com>
üst 56ff995b
......@@ -1406,6 +1406,9 @@ void XclExpFmlaCompImpl::ProcessFunction( const XclExpScToken& rTokData )
void XclExpFmlaCompImpl::PrepareFunction( XclExpFuncData& rFuncData )
{
// For OOXML these are not rewritten anymore.
if (GetOutput() != EXC_OUTPUT_XML_2007)
{
switch( rFuncData.GetOpCode() )
{
case ocCosecant: // simulate CSC(x) by (1/SIN(x))
......@@ -1421,6 +1424,7 @@ void XclExpFmlaCompImpl::PrepareFunction( XclExpFuncData& rFuncData )
break;
default:;
}
}
}
void XclExpFmlaCompImpl::FinishFunction( XclExpFuncData& rFuncData, sal_uInt8 nCloseSpaces )
......@@ -1468,12 +1472,20 @@ void XclExpFmlaCompImpl::FinishFunction( XclExpFuncData& rFuncData, sal_uInt8 nC
case ocCosecantHyp: // simulate CSCH(x) by (1/SINH(x))
case ocSecantHyp: // simulate SECH(x) by (1/COSH(x))
case ocCotHyp: // simulate COTH(x) by (1/TANH(x))
// For OOXML not rewritten anymore.
if (GetOutput() != EXC_OUTPUT_XML_2007)
{
AppendBinaryOperatorToken( EXC_TOKID_DIV, true );
AppendParenToken();
}
break;
case ocArcCot: // simulate ACOT(x) by (PI/2-ATAN(x))
// For OOXML not rewritten anymore.
if (GetOutput() != EXC_OUTPUT_XML_2007)
{
AppendBinaryOperatorToken( EXC_TOKID_SUB, true );
AppendParenToken();
}
break;
default:;
......
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