diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2011-08-16 16:58:37 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2011-08-18 15:33:46 +0200 |
commit | c0bcff297b9282baa6de998804e451d66e2863b7 (patch) | |
tree | 01d741965d8741ad7667bcdb22192a82b63102ee /starmath/source/document.cxx | |
parent | 1ea4a6658517d27e7d5e26fc33fca9e49af6ddf7 (diff) |
hack: make msoffice 2k7 be able to read ooxml formulas
It seems that it doesn't read characters unless the font is explicitly
specified as "Cambria Math"
Diffstat (limited to 'starmath/source/document.cxx')
-rw-r--r-- | starmath/source/document.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/starmath/source/document.cxx b/starmath/source/document.cxx index b9db1f5db35e..90da132a385a 100644 --- a/starmath/source/document.cxx +++ b/starmath/source/document.cxx @@ -991,7 +991,7 @@ sal_Bool SmDocShell::ConvertTo( SfxMedium &rMedium ) return bRet; } -bool SmDocShell::writeFormulaOoxml( ::sax_fastparser::FSHelperPtr m_pSerializer ) +bool SmDocShell::writeFormulaOoxml( ::sax_fastparser::FSHelperPtr m_pSerializer, oox::core::OoxmlVersion version ) { RTL_LOGFILE_CONTEXT( aLog, "starmath: SmDocShell::writeFormulaOoxml" ); @@ -999,7 +999,7 @@ bool SmDocShell::writeFormulaOoxml( ::sax_fastparser::FSHelperPtr m_pSerializer Parse(); if( pTree && !IsFormulaArranged() ) ArrangeFormula(); - SmOoxml aEquation( aText, pTree ); + SmOoxml aEquation( aText, pTree, version ); return aEquation.ConvertFromStarMath( m_pSerializer ); } |