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 (const OUString &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 575 of file formulabase.hxx.

Member Typedef Documentation

Definition at line 599 of file formulabase.hxx.

Constructor & Destructor Documentation

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

Definition at line 1403 of file formulabase.cxx.

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

Member Function Documentation

const FunctionInfo * oox::xls::OpCodeProvider::getFuncInfoFromApiToken ( const ApiToken rToken) const
Sequence< FormulaOpCodeMapEntry > oox::xls::OpCodeProvider::getOoxParserMap ( ) const

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

Definition at line 1426 of file formulabase.cxx.

References mxOpCodeImpl, and oox::ContainerHelper::vectorToSequence().

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

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 1407 of file formulabase.cxx.

References mxOpCodeImpl.

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

Member Data Documentation

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

Definition at line 600 of file formulabase.hxx.

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


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