summaryrefslogtreecommitdiff
path: root/sc/source/filter/inc/xlformula.hxx
diff options
context:
space:
mode:
authorDaniel Rentz [dr] <daniel.rentz@oracle.com>2012-12-15 00:57:00 +0100
committerEike Rathke <erack@redhat.com>2012-12-15 21:46:45 +0100
commitbe42c9c1087e18554940525231305a2c7e699acc (patch)
tree60dee1b8b7c6ff6c3356c5b78ab68657dd9422de /sc/source/filter/inc/xlformula.hxx
parent5d5ab4368a0ad0d520ca1728282d9fbb8d9f32bd (diff)
calcishmakkica: #i117283# support new functions in Excel filters
AVERAGEIF, AVERAGEIFS, COUNTIFS, SUMIFS Merged from Apache OO with adaptions. http://svn.apache.org/viewvc?rev=1381452&view=rev Original Apache OO committer: Andrew Rist <arist@apache.org> Original Author: Daniel Rentz [dr] <daniel.rentz@oracle.com> Original Committer: Daniel Rentz [dr] <daniel.rentz@oracle.com> # HG changeset patch # User Daniel Rentz [dr] <daniel.rentz@oracle.com> # Date 1299664669 -3600 # Node ID 89feb2fb2947d76a15e2de8bc1def1edf20e4f88 # Parent 1bf6d73db8a4ee709aa4d9d9d827efafc9c611d2 Change-Id: Ia70075284c5921faea58cae986e4e5eb090b1fab (cherry picked from commit ba950a50b0d0863e18ef781214eaaff9a8684790)
Diffstat (limited to 'sc/source/filter/inc/xlformula.hxx')
-rw-r--r--sc/source/filter/inc/xlformula.hxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/filter/inc/xlformula.hxx b/sc/source/filter/inc/xlformula.hxx
index 62c93b6ad2b8..77687691024e 100644
--- a/sc/source/filter/inc/xlformula.hxx
+++ b/sc/source/filter/inc/xlformula.hxx
@@ -284,6 +284,7 @@ const size_t EXC_FUNCINFO_PARAMINFO_COUNT = 5; /// Number of parameter
const sal_uInt8 EXC_FUNCFLAG_VOLATILE = 0x01; /// Result is volatile (e.g. NOW() function).
const sal_uInt8 EXC_FUNCFLAG_IMPORTONLY = 0x02; /// Only used in import filter.
const sal_uInt8 EXC_FUNCFLAG_EXPORTONLY = 0x04; /// Only used in export filter.
+const sal_uInt8 EXC_FUNCFLAG_PARAMPAIRS = 0x08; /// Optional parameters are expected to appear in pairs.
// selected function IDs
const sal_uInt16 EXC_FUNCID_IF = 1;
@@ -314,6 +315,8 @@ struct XclFunctionInfo
/** Returns true, if the function is volatile. */
inline bool IsVolatile() const { return ::get_flag( mnFlags, EXC_FUNCFLAG_VOLATILE ); }
+ /** Returns true, if optional parameters are expected to appear in pairs. */
+ inline bool IsParamPairs() const { return ::get_flag( mnFlags, EXC_FUNCFLAG_PARAMPAIRS ); }
/** Returns true, if the function parameter count is fixed. */
inline bool IsFixedParamCount() const { return (mnXclFunc != EXC_FUNCID_EXTERNCALL) && (mnMinParamCount == mnMaxParamCount); }
/** Returns true, if the function is simulated by a macro call. */