LibreOffice Module sc (master) 1
|
#include <xlformula.hxx>
#include <refdata.hxx>
#include <tokenarray.hxx>
#include <xestream.hxx>
#include <xistream.hxx>
#include <xlroot.hxx>
#include <comphelper/string.hxx>
#include <svl/sharedstringpool.hxx>
Go to the source code of this file.
Macros | |
#define | RO { EXC_PARAM_REGULAR, EXC_PARAMCONV_ORG, false } |
#define | RA { EXC_PARAM_REGULAR, EXC_PARAMCONV_ARR, false } |
#define | RR { EXC_PARAM_REGULAR, EXC_PARAMCONV_RPT, false } |
#define | RX { EXC_PARAM_REGULAR, EXC_PARAMCONV_RPX, false } |
#define | VO { EXC_PARAM_REGULAR, EXC_PARAMCONV_ORG, true } |
#define | VV { EXC_PARAM_REGULAR, EXC_PARAMCONV_VAL, true } |
#define | VA { EXC_PARAM_REGULAR, EXC_PARAMCONV_ARR, true } |
#define | VR { EXC_PARAM_REGULAR, EXC_PARAMCONV_RPT, true } |
#define | VX { EXC_PARAM_REGULAR, EXC_PARAMCONV_RPX, true } |
#define | RO_E { EXC_PARAM_EXCELONLY, EXC_PARAMCONV_ORG, false } |
#define | VR_E { EXC_PARAM_EXCELONLY, EXC_PARAMCONV_RPT, true } |
#define | C { EXC_PARAM_CALCONLY, EXC_PARAMCONV_ORG, false } |
#define | EXC_FUNCNAME(ascii) "_xlfn." ascii |
Maximum parameter count. More... | |
#define | EXC_FUNCNAME_ODF(ascii) "_xlfnodf." ascii |
#define | EXC_FUNCNAME_ADDIN(ascii) "com.sun.star.sheet.addin." ascii |
#define | EXC_FUNCENTRY_V_VR(opcode, minparam, maxparam, flags, asciiname) |
#define | EXC_FUNCENTRY_V_VR_IMPORT(opcode, minparam, maxparam, flags, asciiname) { opcode, NOID, minparam, maxparam, V, { VR }, EXC_FUNCFLAG_IMPORTONLY|(flags), EXC_FUNCNAME( asciiname ) } |
#define | EXC_FUNCENTRY_V_RO_EXPORT(opcode, minparam, maxparam, flags, asciiname) { opcode, 255, (minparam)+1, (maxparam)+1, V, { RO_E, RO }, EXC_FUNCFLAG_EXPORTONLY|(flags), EXC_FUNCNAME( asciiname ) } |
#define | EXC_FUNCENTRY_A_VR(opcode, minparam, maxparam, flags, asciiname) |
#define | EXC_FUNCENTRY_V_RO(opcode, minparam, maxparam, flags, asciiname) |
#define | EXC_FUNCENTRY_V_RX(opcode, minparam, maxparam, flags, asciiname) |
#define | EXC_FUNCENTRY_V_VA(opcode, minparam, maxparam, flags, asciiname) |
#define | EXC_FUNCENTRY_ODF(opcode, minparam, maxparam, flags, asciiname) |
#define | EXC_FUNCENTRY_OOO(opcode, minparam, maxparam, flags, asciiname) |
#define | EXC_FUNCENTRY_OOO_IBR(opcode, minparam, maxparam, flags, asciiname) { opcode, NOID, minparam, maxparam, V, { VR }, EXC_FUNCFLAG_IMPORTONLY|(flags), asciiname } |
Functions | |
XclImpStream & | operator>> (XclImpStream &rStrm, XclTokenArray &rTokArr) |
Calls the Read() function at the passed token array. More... | |
XclExpStream & | operator<< (XclExpStream &rStrm, const XclTokenArray &rTokArr) |
Calls the Write() function at the passed token array. More... | |
XclExpStream & | operator<< (XclExpStream &rStrm, const XclTokenArrayRef &rxTokArr) |
Calls the Write() function at the passed token array. More... | |
Variables | |
const sal_uInt8 | R = EXC_TOKCLASS_REF |
const sal_uInt8 | V = EXC_TOKCLASS_VAL |
const sal_uInt8 | A = EXC_TOKCLASS_ARR |
const sal_uInt16 | NOID = SAL_MAX_UINT16 |
const sal_uInt8 | MX = 30 |
No BIFF/OOBIN function identifier available. More... | |
const XclFunctionInfo | saFuncTable_2 [] |
Functions new in BIFF2. More... | |
const XclFunctionInfo | saFuncTable_3 [] |
Functions new in BIFF3. More... | |
const XclFunctionInfo | saFuncTable_4 [] |
Functions new in BIFF4. More... | |
const XclFunctionInfo | saFuncTable_5 [] |
Functions new in BIFF5/BIFF7. More... | |
const XclFunctionInfo | saFuncTable_8 [] |
Functions new in BIFF8. More... | |
const XclFunctionInfo | saFuncTable_Oox [] |
Functions new in OOXML. More... | |
const XclFunctionInfo | saFuncTable_2010 [] |
Functions new in Excel 2010. More... | |
const XclFunctionInfo | saFuncTable_2013 [] |
Functions new in Excel 2013. More... | |
const XclFunctionInfo | saFuncTable_2016 [] |
Functions new in Excel 2016. More... | |
const XclFunctionInfo | saFuncTable_Odf [] |
Functions defined by OpenFormula, but not supported by Calc (ocNoName) or by Excel (defined op-code). More... | |
const XclFunctionInfo | saFuncTable_OOoLO [] |
Functions defined by Calc, but not in OpenFormula nor supported by Excel. More... | |
#define C { EXC_PARAM_CALCONLY, EXC_PARAMCONV_ORG, false } |
Definition at line 66 of file xlformula.cxx.
#define EXC_FUNCENTRY_A_VR | ( | opcode, | |
minparam, | |||
maxparam, | |||
flags, | |||
asciiname | |||
) |
Definition at line 414 of file xlformula.cxx.
#define EXC_FUNCENTRY_ODF | ( | opcode, | |
minparam, | |||
maxparam, | |||
flags, | |||
asciiname | |||
) |
Definition at line 596 of file xlformula.cxx.
#define EXC_FUNCENTRY_OOO | ( | opcode, | |
minparam, | |||
maxparam, | |||
flags, | |||
asciiname | |||
) |
Definition at line 609 of file xlformula.cxx.
#define EXC_FUNCENTRY_OOO_IBR | ( | opcode, | |
minparam, | |||
maxparam, | |||
flags, | |||
asciiname | |||
) | { opcode, NOID, minparam, maxparam, V, { VR }, EXC_FUNCFLAG_IMPORTONLY|(flags), asciiname } |
Definition at line 614 of file xlformula.cxx.
#define EXC_FUNCENTRY_V_RO | ( | opcode, | |
minparam, | |||
maxparam, | |||
flags, | |||
asciiname | |||
) |
Definition at line 418 of file xlformula.cxx.
#define EXC_FUNCENTRY_V_RO_EXPORT | ( | opcode, | |
minparam, | |||
maxparam, | |||
flags, | |||
asciiname | |||
) | { opcode, 255, (minparam)+1, (maxparam)+1, V, { RO_E, RO }, EXC_FUNCFLAG_EXPORTONLY|(flags), EXC_FUNCNAME( asciiname ) } |
Definition at line 411 of file xlformula.cxx.
#define EXC_FUNCENTRY_V_RX | ( | opcode, | |
minparam, | |||
maxparam, | |||
flags, | |||
asciiname | |||
) |
Definition at line 423 of file xlformula.cxx.
#define EXC_FUNCENTRY_V_VA | ( | opcode, | |
minparam, | |||
maxparam, | |||
flags, | |||
asciiname | |||
) |
Definition at line 427 of file xlformula.cxx.
#define EXC_FUNCENTRY_V_VR | ( | opcode, | |
minparam, | |||
maxparam, | |||
flags, | |||
asciiname | |||
) |
Definition at line 384 of file xlformula.cxx.
#define EXC_FUNCENTRY_V_VR_IMPORT | ( | opcode, | |
minparam, | |||
maxparam, | |||
flags, | |||
asciiname | |||
) | { opcode, NOID, minparam, maxparam, V, { VR }, EXC_FUNCFLAG_IMPORTONLY|(flags), EXC_FUNCNAME( asciiname ) } |
Definition at line 408 of file xlformula.cxx.
#define EXC_FUNCNAME | ( | ascii | ) | "_xlfn." ascii |
Maximum parameter count.
Definition at line 71 of file xlformula.cxx.
#define EXC_FUNCNAME_ADDIN | ( | ascii | ) | "com.sun.star.sheet.addin." ascii |
Definition at line 73 of file xlformula.cxx.
#define EXC_FUNCNAME_ODF | ( | ascii | ) | "_xlfnodf." ascii |
Definition at line 72 of file xlformula.cxx.
#define RA { EXC_PARAM_REGULAR, EXC_PARAMCONV_ARR, false } |
Definition at line 56 of file xlformula.cxx.
#define RO { EXC_PARAM_REGULAR, EXC_PARAMCONV_ORG, false } |
Definition at line 55 of file xlformula.cxx.
#define RO_E { EXC_PARAM_EXCELONLY, EXC_PARAMCONV_ORG, false } |
Definition at line 64 of file xlformula.cxx.
#define RR { EXC_PARAM_REGULAR, EXC_PARAMCONV_RPT, false } |
Definition at line 57 of file xlformula.cxx.
#define RX { EXC_PARAM_REGULAR, EXC_PARAMCONV_RPX, false } |
Definition at line 58 of file xlformula.cxx.
#define VA { EXC_PARAM_REGULAR, EXC_PARAMCONV_ARR, true } |
Definition at line 61 of file xlformula.cxx.
#define VO { EXC_PARAM_REGULAR, EXC_PARAMCONV_ORG, true } |
Definition at line 59 of file xlformula.cxx.
#define VR { EXC_PARAM_REGULAR, EXC_PARAMCONV_RPT, true } |
Definition at line 62 of file xlformula.cxx.
#define VR_E { EXC_PARAM_EXCELONLY, EXC_PARAMCONV_RPT, true } |
Definition at line 65 of file xlformula.cxx.
#define VV { EXC_PARAM_REGULAR, EXC_PARAMCONV_VAL, true } |
Definition at line 60 of file xlformula.cxx.
#define VX { EXC_PARAM_REGULAR, EXC_PARAMCONV_RPX, true } |
Definition at line 63 of file xlformula.cxx.
XclExpStream & operator<< | ( | XclExpStream & | rStrm, |
const XclTokenArray & | rTokArr | ||
) |
Calls the Write() function at the passed token array.
Definition at line 806 of file xlformula.cxx.
References rStrm, and XclTokenArray::Write().
XclExpStream & operator<< | ( | XclExpStream & | rStrm, |
const XclTokenArrayRef & | rxTokArr | ||
) |
Calls the Write() function at the passed token array.
Definition at line 812 of file xlformula.cxx.
References rStrm, and XclExpStream::Write().
XclImpStream & operator>> | ( | XclImpStream & | rStrm, |
XclTokenArray & | rTokArr | ||
) |
Calls the Read() function at the passed token array.
Definition at line 800 of file xlformula.cxx.
References XclTokenArray::Read(), and rStrm.
const sal_uInt8 A = EXC_TOKCLASS_ARR |
Definition at line 52 of file xlformula.cxx.
Referenced by ScBitMaskCompressedArray< A, D >::AndValue(), ScCompressedArray< A, D >::CopyFrom(), ScBitMaskCompressedArray< A, D >::CopyFromAnded(), ScBitMaskCompressedArray< A, D >::GetLastAnyBitAccess(), ScCompressedArray< A, D >::GetLastPos(), ScCompressedArray< A, D >::InsertPreservingSize(), ScCompressedArray< A, D >::Iterator::operator+(), ScBitMaskCompressedArray< A, D >::OrValue(), ScCompressedArray< A, D >::Remove(), ScCompressedArray< A, D >::RemovePreservingSize(), and ScBitMaskCompressedArray< A, D >::ScBitMaskCompressedArray().
const sal_uInt8 MX = 30 |
No BIFF/OOBIN function identifier available.
Definition at line 69 of file xlformula.cxx.
Referenced by oox::xls::FunctionProviderImpl::initFunc().
const sal_uInt16 NOID = SAL_MAX_UINT16 |
Definition at line 68 of file xlformula.cxx.
Referenced by XclFunctionProvider::FillXclFuncMap(), and oox::xls::FunctionProviderImpl::initFunc().
const sal_uInt8 R = EXC_TOKCLASS_REF |
Definition at line 50 of file xlformula.cxx.
Referenced by ScInterpreter::GetTDist().
const XclFunctionInfo saFuncTable_2[] |
Functions new in BIFF2.
Definition at line 76 of file xlformula.cxx.
Referenced by XclFunctionProvider::XclFunctionProvider().
const XclFunctionInfo saFuncTable_2010[] |
Functions new in Excel 2010.
See http://office.microsoft.com/en-us/excel-help/what-s-new-changes-made-to-excel-functions-HA010355760.aspx A lot of statistical functions have been renamed (the 'old' function names still exist).
@See sc/source/filter/oox/formulabase.cxx saFuncTable2010 for V,VR,RO,...
Definition at line 438 of file xlformula.cxx.
Referenced by XclFunctionProvider::XclFunctionProvider().
const XclFunctionInfo saFuncTable_2013[] |
Functions new in Excel 2013.
See http://office.microsoft.com/en-us/excel-help/new-functions-in-excel-2013-HA103980604.aspx Most functions apparently were added for ODF1.2 ODFF / OpenFormula compatibility.
Functions with EXC_FUNCENTRY_V_VR_IMPORT are rewritten in sc/source/filter/excel/xeformula.cxx during export for BIFF, OOXML export uses a different mapping but still uses this mapping here to determine the feature set.
FIXME: either have the exporter determine the feature set from the active mapping, preferred, or enhance this mapping here such that for OOXML the rewrite can be overridden.
@See sc/source/filter/oox/formulabase.cxx saFuncTable2013 for V,VR,RO,...
Definition at line 517 of file xlformula.cxx.
Referenced by XclFunctionProvider::XclFunctionProvider().
const XclFunctionInfo saFuncTable_2016[] |
Functions new in Excel 2016.
See https://support.office.com/en-us/article/Forecasting-functions-897a2fe9-6595-4680-a0b0-93e0308d5f6e?ui=en-US&rs=en-US&ad=US#_forecast.ets and https://support.office.com/en-us/article/What-s-New-and-Improved-in-Office-2016-for-Office-365-95c8d81d-08ba-42c1-914f-bca4603e1426?ui=en-US&rs=en-US&ad=US
@See sc/source/filter/oox/formulabase.cxx saFuncTable2016 for V,VR,RO,...
Definition at line 581 of file xlformula.cxx.
Referenced by XclFunctionProvider::XclFunctionProvider().
const XclFunctionInfo saFuncTable_3[] |
Functions new in BIFF3.
Definition at line 226 of file xlformula.cxx.
Referenced by XclFunctionProvider::XclFunctionProvider().
const XclFunctionInfo saFuncTable_4[] |
Functions new in BIFF4.
Definition at line 254 of file xlformula.cxx.
Referenced by XclFunctionProvider::XclFunctionProvider().
const XclFunctionInfo saFuncTable_5[] |
Functions new in BIFF5/BIFF7.
Unsupported functions: DATESTRING, NUMBERSTRING.
Definition at line 343 of file xlformula.cxx.
Referenced by XclFunctionProvider::XclFunctionProvider().
const XclFunctionInfo saFuncTable_8[] |
Functions new in BIFF8.
Unsupported functions: PHONETIC.
Definition at line 367 of file xlformula.cxx.
Referenced by XclFunctionProvider::XclFunctionProvider().
const XclFunctionInfo saFuncTable_Odf[] |
Functions defined by OpenFormula, but not supported by Calc (ocNoName) or by Excel (defined op-code).
Definition at line 601 of file xlformula.cxx.
Referenced by XclFunctionProvider::XclFunctionProvider().
const XclFunctionInfo saFuncTable_OOoLO[] |
Functions defined by Calc, but not in OpenFormula nor supported by Excel.
Definition at line 618 of file xlformula.cxx.
Referenced by XclFunctionProvider::XclFunctionProvider().
const XclFunctionInfo saFuncTable_Oox[] |
Functions new in OOXML.
Definition at line 389 of file xlformula.cxx.
Referenced by XclFunctionProvider::XclFunctionProvider().
const sal_uInt8 V = EXC_TOKCLASS_VAL |
Definition at line 51 of file xlformula.cxx.