Hi Eike,
There are already entry points that do something similar for the old non-ODFF (aka PODF) OOo-XML
format, i.e. in formula/source/core/api/FormulaCompiler.cxx
FormulaCompiler::CreateStringFromTokenArray() and in formula/source/core/api/token.cxx all
functions with *Rewrite*()
The MissingConvention and FormulaMissingContext need to handle also the OOXML cases, or probably
better create a derived MissingConvention for the OOXML case so there are less explicit
comparisons and/or switch cases to differentiate.
I note that the PODF-handling is always done when saving, regardless of the file type being saved
(e.g. ods, xlsx).
The result is that e.g. the formula GAMMADIST(1,2,5) (4th argument is optional) is always extended
to GAMMADIST(1,2,5,1).
Whether this is a desired functionality or not may be a matter of taste, but it makes
FormulaCompiler::CreateStringFromTokenArray() an unsuitable starting point for OOXML-modifications.
Am I overlooking something?
Winfried
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.