LibreOffice Module scaddins (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ScaPricingAddIn Class Reference

#include <pricing.hxx>

Inheritance diagram for ScaPricingAddIn:
[legend]
Collaboration diagram for ScaPricingAddIn:
[legend]

Public Member Functions

 ScaPricingAddIn ()
 
virtual ~ScaPricingAddIn () override
 
OUString ScaResId (TranslateId aResId)
 
virtual OUString SAL_CALL getProgrammaticFuntionName (const OUString &aDisplayName) override
 
virtual OUString SAL_CALL getDisplayFunctionName (const OUString &aProgrammaticName) override
 
virtual OUString SAL_CALL getFunctionDescription (const OUString &aProgrammaticName) override
 
virtual OUString SAL_CALL getDisplayArgumentName (const OUString &aProgrammaticName, sal_Int32 nArgument) override
 
virtual OUString SAL_CALL getArgumentDescription (const OUString &aProgrammaticName, sal_Int32 nArgument) override
 
virtual OUString SAL_CALL getProgrammaticCategoryName (const OUString &aProgrammaticName) override
 
virtual OUString SAL_CALL getDisplayCategoryName (const OUString &aProgrammaticName) override
 
virtual css::uno::Sequence< css::sheet::LocalizedName > SAL_CALL getCompatibilityNames (const OUString &aProgrammaticName) override
 
virtual void SAL_CALL setLocale (const css::lang::Locale &eLocale) override
 
virtual css::lang::Locale SAL_CALL getLocale () override
 
virtual OUString SAL_CALL getServiceName () override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual double SAL_CALL getOptBarrier (double spot, double vol, double r, double rf, double T, double strike, double barrier_low, double barrier_up, double rebate, const OUString &put_call, const OUString &in_out, const OUString &continuous, const css::uno::Any &greek) override
 
virtual double SAL_CALL getOptTouch (double spot, double vol, double r, double rf, double T, double barrier_low, double barrier_up, const OUString &for_dom, const OUString &in_out, const OUString &barriercont, const css::uno::Any &greekstr) override
 
virtual double SAL_CALL getOptProbHit (double spot, double vol, double mu, double T, double barrier_low, double barrier_up) override
 
virtual double SAL_CALL getOptProbInMoney (double spot, double vol, double mu, double T, double barrier_low, double barrier_up, const css::uno::Any &strikeval, const css::uno::Any &put_call) override
 

Private Member Functions

void InitDefLocales ()
 
const css::lang::Locale & GetLocale (sal_uInt32 nIndex)
 
void InitData ()
 
OUString GetFuncDescrStr (const TranslateId *pResId, sal_uInt16 nStrIndex)
 

Private Attributes

css::lang::Locale aFuncLoc
 
std::unique_ptr< css::lang::Locale[]> pDefLocales
 
std::locale aResLocale
 
std::unique_ptr< sca::pricing::ScaFuncDataListpFuncDataList
 

Detailed Description

Definition at line 117 of file pricing.hxx.

Constructor & Destructor Documentation

◆ ScaPricingAddIn()

ScaPricingAddIn::ScaPricingAddIn ( )

Definition at line 91 of file pricing.cxx.

◆ ~ScaPricingAddIn()

ScaPricingAddIn::~ScaPricingAddIn ( )
overridevirtual

Definition at line 95 of file pricing.cxx.

Member Function Documentation

◆ getArgumentDescription()

OUString SAL_CALL ScaPricingAddIn::getArgumentDescription ( const OUString &  aProgrammaticName,
sal_Int32  nArgument 
)
overridevirtual

Definition at line 230 of file pricing.cxx.

◆ getCompatibilityNames()

uno::Sequence< sheet::LocalizedName > SAL_CALL ScaPricingAddIn::getCompatibilityNames ( const OUString &  aProgrammaticName)
overridevirtual

Definition at line 281 of file pricing.cxx.

References nCount, and nIndex.

◆ getDisplayArgumentName()

OUString SAL_CALL ScaPricingAddIn::getDisplayArgumentName ( const OUString &  aProgrammaticName,
sal_Int32  nArgument 
)
overridevirtual

Definition at line 211 of file pricing.cxx.

◆ getDisplayCategoryName()

OUString SAL_CALL ScaPricingAddIn::getDisplayCategoryName ( const OUString &  aProgrammaticName)
overridevirtual

Definition at line 274 of file pricing.cxx.

◆ getDisplayFunctionName()

OUString SAL_CALL ScaPricingAddIn::getDisplayFunctionName ( const OUString &  aProgrammaticName)
overridevirtual

Definition at line 179 of file pricing.cxx.

◆ GetFuncDescrStr()

OUString ScaPricingAddIn::GetFuncDescrStr ( const TranslateId pResId,
sal_uInt16  nStrIndex 
)
private
Exceptions
css::uno::RuntimeException

Definition at line 130 of file pricing.cxx.

◆ getFunctionDescription()

OUString SAL_CALL ScaPricingAddIn::getFunctionDescription ( const OUString &  aProgrammaticName)
overridevirtual

Definition at line 199 of file pricing.cxx.

◆ getImplementationName()

OUString SAL_CALL ScaPricingAddIn::getImplementationName ( )
overridevirtual

Definition at line 143 of file pricing.cxx.

References MY_IMPLNAME.

◆ getLocale()

lang::Locale SAL_CALL ScaPricingAddIn::getLocale ( )
overridevirtual

Definition at line 165 of file pricing.cxx.

◆ GetLocale()

const lang::Locale & ScaPricingAddIn::GetLocale ( sal_uInt32  nIndex)
private

Definition at line 114 of file pricing.cxx.

References nIndex, and nNumOfLoc.

◆ getOptBarrier()

double SAL_CALL ScaPricingAddIn::getOptBarrier ( double  spot,
double  vol,
double  r,
double  rf,
double  T,
double  strike,
double  barrier_low,
double  barrier_up,
double  rebate,
const OUString &  put_call,
const OUString &  in_out,
const OUString &  continuous,
const css::uno::Any &  greek 
)
overridevirtual

Definition at line 409 of file pricing.cxx.

References sca::pricing::bs::barrier(), and pc.

◆ getOptProbHit()

double SAL_CALL ScaPricingAddIn::getOptProbHit ( double  spot,
double  vol,
double  mu,
double  T,
double  barrier_low,
double  barrier_up 
)
overridevirtual

Definition at line 465 of file pricing.cxx.

References sca::pricing::bs::prob_hit().

◆ getOptProbInMoney()

double SAL_CALL ScaPricingAddIn::getOptProbInMoney ( double  spot,
double  vol,
double  mu,
double  T,
double  barrier_low,
double  barrier_up,
const css::uno::Any &  strikeval,
const css::uno::Any &  put_call 
)
overridevirtual

Definition at line 482 of file pricing.cxx.

References sca::pricing::bs::types::Call, pc, and sca::pricing::bs::prob_in_money().

◆ getOptTouch()

double SAL_CALL ScaPricingAddIn::getOptTouch ( double  spot,
double  vol,
double  r,
double  rf,
double  T,
double  barrier_low,
double  barrier_up,
const OUString &  for_dom,
const OUString &  in_out,
const OUString &  barriercont,
const css::uno::Any &  greekstr 
)
overridevirtual

Definition at line 437 of file pricing.cxx.

References sca::pricing::bs::touch().

◆ getProgrammaticCategoryName()

OUString SAL_CALL ScaPricingAddIn::getProgrammaticCategoryName ( const OUString &  aProgrammaticName)
overridevirtual

◆ getProgrammaticFuntionName()

OUString SAL_CALL ScaPricingAddIn::getProgrammaticFuntionName ( const OUString &  aDisplayName)
overridevirtual

Definition at line 172 of file pricing.cxx.

◆ getServiceName()

OUString SAL_CALL ScaPricingAddIn::getServiceName ( )
overridevirtual

Definition at line 136 of file pricing.cxx.

References MY_SERVICE.

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL ScaPricingAddIn::getSupportedServiceNames ( )
overridevirtual

Definition at line 153 of file pricing.cxx.

References ADDIN_SERVICE, and MY_SERVICE.

◆ InitData()

void ScaPricingAddIn::InitData ( )
private

Definition at line 122 of file pricing.cxx.

References Translate::Create(), and sca::pricing::InitScaFuncDataList().

◆ InitDefLocales()

void ScaPricingAddIn::InitDefLocales ( )
private

Definition at line 103 of file pricing.cxx.

References nIndex, nNumOfLoc, pCoun, and pLang.

◆ ScaResId()

OUString ScaPricingAddIn::ScaResId ( TranslateId  aResId)

Definition at line 504 of file pricing.cxx.

References Translate::get().

◆ setLocale()

void SAL_CALL ScaPricingAddIn::setLocale ( const css::lang::Locale &  eLocale)
overridevirtual

Definition at line 159 of file pricing.cxx.

◆ supportsService()

sal_Bool SAL_CALL ScaPricingAddIn::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 148 of file pricing.cxx.

References cppu::supportsService().

Member Data Documentation

◆ aFuncLoc

css::lang::Locale ScaPricingAddIn::aFuncLoc
private

Definition at line 125 of file pricing.hxx.

◆ aResLocale

std::locale ScaPricingAddIn::aResLocale
private

Definition at line 127 of file pricing.hxx.

◆ pDefLocales

std::unique_ptr<css::lang::Locale[]> ScaPricingAddIn::pDefLocales
private

Definition at line 126 of file pricing.hxx.

◆ pFuncDataList

std::unique_ptr<sca::pricing::ScaFuncDataList> ScaPricingAddIn::pFuncDataList
private

Definition at line 128 of file pricing.hxx.


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