LibreOffice Module sc (master) 1
|
Public Member Functions | |
OOXMLFormulaParserImpl (const Reference< XMultiServiceFactory > &rxModelFactory) | |
Sequence< FormulaToken > | parseFormula (const OUString &rFormula, const ScAddress &rReferencePos) |
Protected Member Functions | |
virtual const FunctionInfo * | resolveBadFuncName (const OUString &rTokenData) const override |
Derived classed may try to find a function info struct from the passed string extracted from an OPCODE_BAD token. More... | |
Private Attributes | |
ApiParserWrapper | maApiParser |
Additional Inherited Members | |
Private Member Functions inherited from oox::xls::FormulaFinalizer | |
FormulaFinalizer (const OpCodeProvider &rOpCodeProv) | |
ApiTokenSequence | finalizeTokenArray (const ApiTokenSequence &rTokens) |
Finalizes and returns the passed token array. More... | |
virtual const FunctionInfo * | resolveBadFuncName (const OUString &rTokenData) const |
Derived classed may try to find a function info struct from the passed string extracted from an OPCODE_BAD token. More... | |
virtual OUString | resolveDefinedName (sal_Int32 nTokenIndex) const |
Derived classed may try to find the name of a defined name with the passed index extracted from an OPCODE_NAME token. More... | |
Private Member Functions inherited from oox::xls::OpCodeProvider | |
OpCodeProvider (const css::uno::Reference< css::lang::XMultiServiceFactory > &rxModelFactory, bool bImportFilter) | |
virtual | ~OpCodeProvider () override |
OpCodeProvider (OpCodeProvider const &)=default | |
OpCodeProvider (OpCodeProvider &&)=default | |
OpCodeProvider & | operator= (OpCodeProvider const &)=delete |
OpCodeProvider & | operator= (OpCodeProvider &&)=delete |
const ApiOpCodes & | getOpCodes () const |
Returns the structure containing all token op-codes for operators and special tokens used by the Calc document and its formula parser. More... | |
const FunctionInfo * | getFuncInfoFromApiToken (const ApiToken &rToken) const |
Returns the function info for an API token, or 0 on error. More... | |
css::uno::Sequence< css::sheet::FormulaOpCodeMapEntry > | getOoxParserMap () const |
Returns the op-code map that is used by the OOXML formula parser. More... | |
Private Member Functions inherited from oox::xls::FunctionProvider | |
FunctionProvider (bool bImportFilter) | |
virtual | ~FunctionProvider () |
FunctionProvider (FunctionProvider const &)=default | |
FunctionProvider (FunctionProvider &&)=default | |
FunctionProvider & | operator= (FunctionProvider const &)=delete |
FunctionProvider & | operator= (FunctionProvider &&)=delete |
const FunctionInfo * | getFuncInfoFromOoxFuncName (const OUString &rFuncName) const |
Returns the function info for an OOXML function name, or 0 on error. More... | |
const FunctionInfo * | getFuncInfoFromBiff12FuncId (sal_uInt16 nFuncId) const |
Returns the function info for a BIFF12 function index, or 0 on error. More... | |
const FunctionInfo * | getFuncInfoFromMacroName (const OUString &rFuncName) const |
Returns the function info for a macro function referred by the EXTERN.CALL function, or 0 on error. More... | |
const FunctionInfoVector & | getFuncs () const |
Returns the list of all function infos. More... | |
Static Private Member Functions inherited from oox::xls::FunctionProvider | |
static FunctionLibraryType | getFuncLibTypeFromLibraryName (std::u16string_view rLibraryName) |
Returns the library type associated with the passed URL of a function library (function add-in). More... | |
Definition at line 37 of file ooxformulaparser.cxx.
|
explicit |
Definition at line 51 of file ooxformulaparser.cxx.
Sequence< FormulaToken > oox::xls::OOXMLFormulaParserImpl::parseFormula | ( | const OUString & | rFormula, |
const ScAddress & | rReferencePos | ||
) |
Definition at line 57 of file ooxformulaparser.cxx.
References oox::xls::FormulaFinalizer::finalizeTokenArray(), maApiParser, and oox::xls::ApiParserWrapper::parseFormula().
|
overrideprotectedvirtual |
Derived classed may try to find a function info struct from the passed string extracted from an OPCODE_BAD token.
rTokenData | The string that has been found in an OPCODE_BAD token preceding the function parentheses. |
Reimplemented from oox::xls::FormulaFinalizer.
Definition at line 62 of file ooxformulaparser.cxx.
References oox::xls::FUNCLIB_UNKNOWN, oox::xls::FunctionProvider::getFuncInfoFromOoxFuncName(), oox::xls::FunctionProvider::getFuncLibTypeFromLibraryName(), and oox::xls::FunctionInfo::meFuncLibType.
|
private |
Definition at line 48 of file ooxformulaparser.cxx.
Referenced by parseFormula().