LibreOffice Module sc (master) 1
|
A wrapper around the FormulaParser service provided by the Calc document. More...
#include <formulabase.hxx>
Public Member Functions | |
ApiParserWrapper (const css::uno::Reference< css::lang::XMultiServiceFactory > &rxModelFactory, const OpCodeProvider &rOpCodeProv) | |
PropertySet & | getParserProperties () |
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 | |
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... | |
Public 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... | |
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 FunctionInfoVector & | getFuncs () const |
Returns the list of all function infos. More... | |
A wrapper around the FormulaParser service provided by the Calc document.
Definition at line 605 of file formulabase.hxx.
|
explicit |
Definition at line 1438 of file formulabase.cxx.
References Exception, oox::xls::OpCodeProvider::getOoxParserMap(), maParserProps, mxParser, oox::PropertySet::set(), and oox::PropertySet::setProperty().
|
inline |
Returns read/write access to the formula parser property set.
Definition at line 613 of file formulabase.hxx.
References maParserProps.
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().
|
private |
Definition at line 623 of file formulabase.hxx.
Referenced by ApiParserWrapper(), and getParserProperties().
|
private |
Definition at line 622 of file formulabase.hxx.
Referenced by ApiParserWrapper(), and parseFormula().