LibreOffice Module sc (master) 1
Public Member Functions | Private Attributes | List of all members
oox::xls::ApiParserWrapper Class Reference

A wrapper around the FormulaParser service provided by the Calc document. More...

#include <formulabase.hxx>

Inheritance diagram for oox::xls::ApiParserWrapper:
[legend]
Collaboration diagram for oox::xls::ApiParserWrapper:
[legend]

Public Member Functions

 ApiParserWrapper (const css::uno::Reference< css::lang::XMultiServiceFactory > &rxModelFactory, const OpCodeProvider &rOpCodeProv)
 
PropertySetgetParserProperties ()
 Returns read/write access to the formula parser property set. More...
 
ApiTokenSequence parseFormula (const OUString &rFormula, const ScAddress &rRefPos)
 Calls the XFormulaParser::parseFormula() function of the API parser. More...
 
- Public 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...
 
- Public 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...
 

Private Attributes

css::uno::Reference< css::sheet::XFormulaParser > mxParser
 
PropertySet maParserProps
 

Additional Inherited Members

- Static Public 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...
 
- Protected Member Functions inherited from oox::xls::FunctionProvider
const FunctionInfoVectorgetFuncs () const
 Returns the list of all function infos. More...
 

Detailed Description

A wrapper around the FormulaParser service provided by the Calc document.

Definition at line 605 of file formulabase.hxx.

Constructor & Destructor Documentation

◆ ApiParserWrapper()

oox::xls::ApiParserWrapper::ApiParserWrapper ( const css::uno::Reference< css::lang::XMultiServiceFactory > &  rxModelFactory,
const OpCodeProvider rOpCodeProv 
)
explicit

Member Function Documentation

◆ getParserProperties()

PropertySet & oox::xls::ApiParserWrapper::getParserProperties ( )
inline

Returns read/write access to the formula parser property set.

Definition at line 613 of file formulabase.hxx.

References maParserProps.

◆ parseFormula()

ApiTokenSequence oox::xls::ApiParserWrapper::parseFormula ( const OUString &  rFormula,
const ScAddress rRefPos 
)

Calls the XFormulaParser::parseFormula() function of the API parser.

Definition at line 1457 of file formulabase.cxx.

References ScAddress::Col(), Exception, mxParser, ScAddress::Row(), and ScAddress::Tab().

Referenced by oox::xls::OOXMLFormulaParserImpl::parseFormula().

Member Data Documentation

◆ maParserProps

PropertySet oox::xls::ApiParserWrapper::maParserProps
private

Definition at line 623 of file formulabase.hxx.

Referenced by ApiParserWrapper(), and getParserProperties().

◆ mxParser

css::uno::Reference< css::sheet::XFormulaParser > oox::xls::ApiParserWrapper::mxParser
private

Definition at line 622 of file formulabase.hxx.

Referenced by ApiParserWrapper(), and parseFormula().


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