diff options
author | Eike Rathke <erack@redhat.com> | 2013-12-02 20:18:43 +0100 |
---|---|---|
committer | Eike Rathke <erack@redhat.com> | 2013-12-02 22:06:22 +0100 |
commit | 5a5b35c979acf303d99a365b6735148d4f0ab817 (patch) | |
tree | 51afd5c56e31563c819e5990cab736f82177a0c9 /include/formula | |
parent | 2dcee42f4e8e8ca8821e37b5ec9d24aeb4b736c1 (diff) |
added isOOXML()
Change-Id: I9e088e1d6679297884d71604b03537b73ee3387c
Diffstat (limited to 'include/formula')
-rw-r--r-- | include/formula/FormulaCompiler.hxx | 3 | ||||
-rw-r--r-- | include/formula/grammar.hxx | 7 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/formula/FormulaCompiler.hxx b/include/formula/FormulaCompiler.hxx index a90bc82dede1..591103a1deaf 100644 --- a/include/formula/FormulaCompiler.hxx +++ b/include/formula/FormulaCompiler.hxx @@ -156,6 +156,9 @@ public: /// Is it an ODFF / ODF 1.2 mapping? inline bool isODFF() const { return FormulaGrammar::isODFF( meGrammar); } + /// Is it an OOXML mapping? + inline bool isOOXML() const { return FormulaGrammar::isOOXML( meGrammar); } + /// Does it have external symbol/name mappings? inline bool hasExternals() const { return !mpExternalHashMap->empty(); } diff --git a/include/formula/grammar.hxx b/include/formula/grammar.hxx index e3f29de543e7..1971c4fb4d97 100644 --- a/include/formula/grammar.hxx +++ b/include/formula/grammar.hxx @@ -244,6 +244,13 @@ public: ::com::sun::star::sheet::FormulaLanguage::ODFF; } + /// If grammar is of OOXML + static inline bool isOOXML( const Grammar eGrammar ) + { + return extractFormulaLanguage( eGrammar) == + ::com::sun::star::sheet::FormulaLanguage::OOXML; + } + }; // ============================================================================= } // formula |