summaryrefslogtreecommitdiffstats
path: root/include/formula
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2013-12-02 20:18:43 +0100
committerEike Rathke <erack@redhat.com>2013-12-02 22:06:22 +0100
commit5a5b35c979acf303d99a365b6735148d4f0ab817 (patch)
tree51afd5c56e31563c819e5990cab736f82177a0c9 /include/formula
parentGPU Calc: cache the very last compiled program in memory (diff)
downloadcore-5a5b35c979acf303d99a365b6735148d4f0ab817.tar.gz
core-5a5b35c979acf303d99a365b6735148d4f0ab817.zip
added isOOXML()
Change-Id: I9e088e1d6679297884d71604b03537b73ee3387c
Diffstat (limited to 'include/formula')
-rw-r--r--include/formula/FormulaCompiler.hxx3
-rw-r--r--include/formula/grammar.hxx7
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