LibreOffice Module sc (master) 1
|
Provides access to function info structs for all available functions. More...
#include <xlformula.hxx>
Public Member Functions | |
XclFunctionProvider (const XclRoot &rRoot) | |
const XclFunctionInfo * | GetFuncInfoFromXclFunc (sal_uInt16 nXclFunc) const |
Returns the function data for an Excel function index, or 0 on error. More... | |
const XclFunctionInfo * | GetFuncInfoFromXclMacroName (const OUString &rXclMacroName) const |
Returns the function data for an Excel function simulated by a macro call, or 0 on error. More... | |
const XclFunctionInfo * | GetFuncInfoFromOpCode (OpCode eOpCode) const |
Returns the function data for a Calc opcode, or 0 on error. More... | |
Private Types | |
typedef ::std::map< sal_uInt16, const XclFunctionInfo * > | XclFuncMap |
typedef ::std::map< OUString, const XclFunctionInfo * > | XclMacroNameMap |
typedef ::std::map< OpCode, const XclFunctionInfo * > | ScFuncMap |
Private Member Functions | |
void | FillXclFuncMap (const XclFunctionInfo *pBeg, const XclFunctionInfo *pEnd) |
void | FillScFuncMap (const XclFunctionInfo *pBeg, const XclFunctionInfo *pEnd) |
Private Attributes | |
XclFuncMap | maXclFuncMap |
XclMacroNameMap | maXclMacroNameMap |
Maps Excel function indexes to function data. More... | |
ScFuncMap | maScFuncMap |
Maps macro function names to function data. More... | |
Provides access to function info structs for all available functions.
Definition at line 344 of file xlformula.hxx.
|
private |
Definition at line 363 of file xlformula.hxx.
|
private |
Definition at line 361 of file xlformula.hxx.
|
private |
Definition at line 362 of file xlformula.hxx.
|
explicit |
Definition at line 649 of file xlformula.cxx.
References EXC_BIFF2, EXC_BIFF3, EXC_BIFF4, EXC_BIFF5, EXC_BIFF8, FillScFuncMap(), FillXclFuncMap(), XclRoot::GetBiff(), XclRoot::IsImport(), saFuncTable_2, saFuncTable_2010, saFuncTable_2013, saFuncTable_2016, saFuncTable_3, saFuncTable_4, saFuncTable_5, saFuncTable_8, saFuncTable_Odf, saFuncTable_OOoLO, and saFuncTable_Oox.
|
private |
Definition at line 714 of file xlformula.cxx.
References EXC_FUNCFLAG_IMPORTONLY, get_flag(), and maScFuncMap.
Referenced by XclFunctionProvider().
|
private |
Definition at line 700 of file xlformula.cxx.
References EXC_FUNCFLAG_EXPORTONLY, get_flag(), maXclFuncMap, maXclMacroNameMap, and NOID.
Referenced by XclFunctionProvider().
const XclFunctionInfo * XclFunctionProvider::GetFuncInfoFromOpCode | ( | OpCode | eOpCode | ) | const |
Returns the function data for a Calc opcode, or 0 on error.
Definition at line 692 of file xlformula.cxx.
References maScFuncMap.
Referenced by XclExpFmlaCompImpl::ProcessFunction().
const XclFunctionInfo * XclFunctionProvider::GetFuncInfoFromXclFunc | ( | sal_uInt16 | nXclFunc | ) | const |
Returns the function data for an Excel function index, or 0 on error.
Definition at line 676 of file xlformula.cxx.
References maXclFuncMap.
Referenced by ExcelToSc::Convert(), and ExcelToSc8::Convert().
const XclFunctionInfo * XclFunctionProvider::GetFuncInfoFromXclMacroName | ( | const OUString & | rXclMacroName | ) | const |
Returns the function data for an Excel function simulated by a macro call, or 0 on error.
Definition at line 684 of file xlformula.cxx.
References maXclFuncMap, and maXclMacroNameMap.
Referenced by ExcelToSc::DoMulArgs().
|
private |
Maps macro function names to function data.
Definition at line 367 of file xlformula.hxx.
Referenced by FillScFuncMap(), and GetFuncInfoFromOpCode().
|
private |
Definition at line 365 of file xlformula.hxx.
Referenced by FillXclFuncMap(), GetFuncInfoFromXclFunc(), and GetFuncInfoFromXclMacroName().
|
private |
Maps Excel function indexes to function data.
Definition at line 366 of file xlformula.hxx.
Referenced by FillXclFuncMap(), and GetFuncInfoFromXclMacroName().