LibreOffice Module sc (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
XclFunctionProvider Class Reference

Provides access to function info structs for all available functions. More...

#include <xlformula.hxx>

Public Member Functions

 XclFunctionProvider (const XclRoot &rRoot)
 
const XclFunctionInfoGetFuncInfoFromXclFunc (sal_uInt16 nXclFunc) const
 Returns the function data for an Excel function index, or 0 on error. More...
 
const XclFunctionInfoGetFuncInfoFromXclMacroName (const OUString &rXclMacroName) const
 Returns the function data for an Excel function simulated by a macro call, or 0 on error. More...
 
const XclFunctionInfoGetFuncInfoFromOpCode (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...
 

Detailed Description

Provides access to function info structs for all available functions.

Definition at line 344 of file xlformula.hxx.

Member Typedef Documentation

◆ ScFuncMap

Definition at line 363 of file xlformula.hxx.

◆ XclFuncMap

typedef ::std::map< sal_uInt16, const XclFunctionInfo* > XclFunctionProvider::XclFuncMap
private

Definition at line 361 of file xlformula.hxx.

◆ XclMacroNameMap

Definition at line 362 of file xlformula.hxx.

Constructor & Destructor Documentation

◆ XclFunctionProvider()

XclFunctionProvider::XclFunctionProvider ( const XclRoot rRoot)
explicit

Member Function Documentation

◆ FillScFuncMap()

void XclFunctionProvider::FillScFuncMap ( const XclFunctionInfo pBeg,
const XclFunctionInfo pEnd 
)
private

Definition at line 714 of file xlformula.cxx.

References EXC_FUNCFLAG_IMPORTONLY, get_flag(), and maScFuncMap.

Referenced by XclFunctionProvider().

◆ FillXclFuncMap()

void XclFunctionProvider::FillXclFuncMap ( const XclFunctionInfo pBeg,
const XclFunctionInfo pEnd 
)
private

Definition at line 700 of file xlformula.cxx.

References EXC_FUNCFLAG_EXPORTONLY, get_flag(), maXclFuncMap, maXclMacroNameMap, and NOID.

Referenced by XclFunctionProvider().

◆ GetFuncInfoFromOpCode()

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().

◆ GetFuncInfoFromXclFunc()

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().

◆ GetFuncInfoFromXclMacroName()

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().

Member Data Documentation

◆ maScFuncMap

ScFuncMap XclFunctionProvider::maScFuncMap
private

Maps macro function names to function data.

Definition at line 367 of file xlformula.hxx.

Referenced by FillScFuncMap(), and GetFuncInfoFromOpCode().

◆ maXclFuncMap

XclFuncMap XclFunctionProvider::maXclFuncMap
private

◆ maXclMacroNameMap

XclMacroNameMap XclFunctionProvider::maXclMacroNameMap
private

Maps Excel function indexes to function data.

Definition at line 366 of file xlformula.hxx.

Referenced by FillXclFuncMap(), and GetFuncInfoFromXclMacroName().


The documentation for this class was generated from the following files: