include/formula/grammar.hxx | 13 +++++++++++++ 1 file changed, 13 insertions(+)
New commits: commit 3c766512984feff739377d0f0af46558ee7139fd Author: Eike Rathke <er...@redhat.com> AuthorDate: Mon Jul 26 16:05:22 2021 +0200 Commit: Eike Rathke <er...@redhat.com> CommitDate: Mon Jul 26 21:41:55 2021 +0200 Related: tdf#64086 Add FormulaGrammar::isRefConventionOOXML() ... to prepare detailed compiler scanner handling. Change-Id: I4a50491b4fa95516773adbd7b86e91ab121b1820 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/119517 Tested-by: Eike Rathke <er...@redhat.com> Reviewed-by: Eike Rathke <er...@redhat.com> diff --git a/include/formula/grammar.hxx b/include/formula/grammar.hxx index 5d7933dee24a..b5b499d5aab4 100644 --- a/include/formula/grammar.hxx +++ b/include/formula/grammar.hxx @@ -209,6 +209,19 @@ public: css::sheet::FormulaLanguage::OOXML; } + /** If reference convention is OOXML. + + Note this is not equivalent to isOOXML() as it does not have to be + FormulaLanguage::OOXML but can be Grammar::GRAM_EXTERNAL merged with + AddressConvention::CONV_XL_OOX, which is used by various parts of OOXML + import through the API FormulaParser. + */ + static bool isRefConventionOOXML( const Grammar eGrammar ) + { + return extractRefConvention( eGrammar) == + FormulaGrammar::AddressConvention::CONV_XL_OOX; + } + /// If grammar has an Excel syntax, determined by address convention. static bool isExcelSyntax( const Grammar eGrammar ) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits