summaryrefslogtreecommitdiff
path: root/include/formula
diff options
context:
space:
mode:
Diffstat (limited to 'include/formula')
-rw-r--r--include/formula/grammar.hxx15
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