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:15:47 +0100 |
commit | 90f5dfee61678abc1fab68f295a75f6289353e80 (patch) | |
tree | aa5371abc17a5cfbd499730617e1a92885a98d1a /include | |
parent | 01ee34e66d94548720487e915186b342a9557f41 (diff) |
added isOOXML()
Change-Id: I9e088e1d6679297884d71604b03537b73ee3387c
(cherry picked from commit 5a5b35c979acf303d99a365b6735148d4f0ab817)
Diffstat (limited to 'include')
-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 |