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

Provides access to API op-codes for all available formula tokens and to function info structs for all available sheet functions. More...

#include <formulabase.hxx>

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

Public Member Functions

 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 Types

typedef std::shared_ptr< OpCodeProviderImplOpCodeProviderImplRef
 

Private Attributes

OpCodeProviderImplRef mxOpCodeImpl
 

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

Provides access to API op-codes for all available formula tokens and to function info structs for all available sheet functions.

Definition at line 574 of file formulabase.hxx.

Member Typedef Documentation

◆ OpCodeProviderImplRef

Definition at line 598 of file formulabase.hxx.

Constructor & Destructor Documentation

◆ OpCodeProvider() [1/3]

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

◆ ~OpCodeProvider()

oox::xls::OpCodeProvider::~OpCodeProvider ( )
overridevirtual

Definition at line 1408 of file formulabase.cxx.

◆ OpCodeProvider() [2/3]

oox::xls::OpCodeProvider::OpCodeProvider ( OpCodeProvider const &  )
default

◆ OpCodeProvider() [3/3]

oox::xls::OpCodeProvider::OpCodeProvider ( OpCodeProvider &&  )
default

Member Function Documentation

◆ getFuncInfoFromApiToken()

const FunctionInfo * oox::xls::OpCodeProvider::getFuncInfoFromApiToken ( const ApiToken rToken) const

◆ getOoxParserMap()

Sequence< FormulaOpCodeMapEntry > oox::xls::OpCodeProvider::getOoxParserMap ( ) const

Returns the op-code map that is used by the OOXML formula parser.

Definition at line 1431 of file formulabase.cxx.

References comphelper::containerToSequence(), and mxOpCodeImpl.

Referenced by oox::xls::ApiParserWrapper::ApiParserWrapper(), and XclExpRoot::InitializeGlobals().

◆ getOpCodes()

const ApiOpCodes & oox::xls::OpCodeProvider::getOpCodes ( ) const

Returns the structure containing all token op-codes for operators and special tokens used by the Calc document and its formula parser.

Definition at line 1412 of file formulabase.cxx.

References mxOpCodeImpl.

◆ operator=() [1/2]

OpCodeProvider & oox::xls::OpCodeProvider::operator= ( OpCodeProvider &&  )
delete

◆ operator=() [2/2]

OpCodeProvider & oox::xls::OpCodeProvider::operator= ( OpCodeProvider const &  )
delete

Member Data Documentation

◆ mxOpCodeImpl

OpCodeProviderImplRef oox::xls::OpCodeProvider::mxOpCodeImpl
private

Definition at line 599 of file formulabase.hxx.

Referenced by getFuncInfoFromApiToken(), getOoxParserMap(), and getOpCodes().


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