diff options
author | Eike Rathke <erack@redhat.com> | 2016-04-23 15:44:13 +0200 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2016-04-23 15:52:35 +0200 |
commit | 26adceb098134d918f6d57c8687ab057e24adc39 (patch) | |
tree | f29c82cddc1d7e033b3cc9dec15b4079b1fc16b5 /include/formula | |
parent | simplify the ReplaceToken() offset logic to absolute offsets (diff) | |
download | core-26adceb098134d918f6d57c8687ab057e24adc39.tar.gz core-26adceb098134d918f6d57c8687ab057e24adc39.zip |
Resolves: tdf#96426 significant whitespace as intersection in Excel syntax
Also when reading/writing OOXML, so change SC_OPCODE_INTERSECT of
RID_STRLIST_FUNCTION_NAMES_ENGLISH_OOXML accordingly to " ", where
previously "!" was expected and written, which was plain wrong.
Change-Id: Ic0cfd7afc657f07bfd8e37de61b3621cc68685ff
Diffstat (limited to 'include/formula')
-rw-r--r-- | include/formula/grammar.hxx | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/formula/grammar.hxx b/include/formula/grammar.hxx index 91ca7ae1171a..6500d68df898 100644 --- a/include/formula/grammar.hxx +++ b/include/formula/grammar.hxx @@ -203,6 +203,21 @@ public: css::sheet::FormulaLanguage::OOXML; } + /// If grammar has an Excel syntax, determined by address convention. + static inline bool isExcelSyntax( const Grammar eGrammar ) + { + AddressConvention eConv = extractRefConvention( eGrammar ); + switch (eConv) + { + case FormulaGrammar::AddressConvention::CONV_XL_A1: + case FormulaGrammar::AddressConvention::CONV_XL_R1C1: + case FormulaGrammar::AddressConvention::CONV_XL_OOX: + return true; + default: + return false; + } + } + }; } // formula |