LibreOffice Module sc (master) 1
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
oox::xls::OOXMLFormulaParserImpl Class Reference
Inheritance diagram for oox::xls::OOXMLFormulaParserImpl:
[legend]
Collaboration diagram for oox::xls::OOXMLFormulaParserImpl:
[legend]

Public Member Functions

 OOXMLFormulaParserImpl (const Reference< XMultiServiceFactory > &rxModelFactory)
 
Sequence< FormulaToken > parseFormula (const OUString &rFormula, const ScAddress &rReferencePos)
 

Protected Member Functions

virtual const FunctionInforesolveBadFuncName (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 FunctionInforesolveBadFuncName (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
 
OpCodeProvideroperator= (OpCodeProvider const &)=delete
 
OpCodeProvideroperator= (OpCodeProvider &&)=delete
 
const ApiOpCodesgetOpCodes () 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 FunctionInfogetFuncInfoFromApiToken (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
 
FunctionProvideroperator= (FunctionProvider const &)=delete
 
FunctionProvideroperator= (FunctionProvider &&)=delete
 
const FunctionInfogetFuncInfoFromOoxFuncName (const OUString &rFuncName) const
 Returns the function info for an OOXML function name, or 0 on error. More...
 
const FunctionInfogetFuncInfoFromBiff12FuncId (sal_uInt16 nFuncId) const
 Returns the function info for a BIFF12 function index, or 0 on error. More...
 
const FunctionInfogetFuncInfoFromMacroName (const OUString &rFuncName) const
 Returns the function info for a macro function referred by the EXTERN.CALL function, or 0 on error. More...
 
const FunctionInfoVectorgetFuncs () 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...
 

Detailed Description

Definition at line 37 of file ooxformulaparser.cxx.

Constructor & Destructor Documentation

◆ OOXMLFormulaParserImpl()

oox::xls::OOXMLFormulaParserImpl::OOXMLFormulaParserImpl ( const Reference< XMultiServiceFactory > &  rxModelFactory)
explicit

Definition at line 51 of file ooxformulaparser.cxx.

Member Function Documentation

◆ parseFormula()

Sequence< FormulaToken > oox::xls::OOXMLFormulaParserImpl::parseFormula ( const OUString &  rFormula,
const ScAddress rReferencePos 
)

◆ resolveBadFuncName()

const FunctionInfo * oox::xls::OOXMLFormulaParserImpl::resolveBadFuncName ( const OUString &  rTokenData) const
overrideprotectedvirtual

Derived classed may try to find a function info struct from the passed string extracted from an OPCODE_BAD token.

Parameters
rTokenDataThe 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.

Member Data Documentation

◆ maApiParser

ApiParserWrapper oox::xls::OOXMLFormulaParserImpl::maApiParser
private

Definition at line 48 of file ooxformulaparser.cxx.

Referenced by parseFormula().


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