LibreOffice Module scaddins (master) 1
Functions | Variables
pricing.cxx File Reference
#include "pricing.hxx"
#include "black_scholes.hxx"
#include <pricing.hrc>
#include <strings.hrc>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/weak.hxx>
#include <algorithm>
#include <cmath>
#include <string_view>
#include <unotools/resmgr.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <o3tl/string_view.hxx>
Include dependency graph for pricing.cxx:

Go to the source code of this file.

Functions

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * scaddins_ScaPricingAddIn_get_implementation (css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
 

Variables

constexpr OUStringLiteral ADDIN_SERVICE = u"com.sun.star.sheet.AddIn"
 
constexpr OUStringLiteral MY_SERVICE = u"com.sun.star.sheet.addin.PricingFunctions"
 
constexpr OUStringLiteral MY_IMPLNAME = u"com.sun.star.sheet.addin.PricingFunctionsImpl"
 
const ScaFuncDataBase pFuncDataArr []
 
static const char * pLang [] = { "en" }
 
static const char * pCoun [] = { "US" }
 
const sal_uInt32 nNumOfLoc = SAL_N_ELEMENTS( pLang )
 

Function Documentation

◆ scaddins_ScaPricingAddIn_get_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * scaddins_ScaPricingAddIn_get_implementation ( css::uno::XComponentContext *  ,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 84 of file pricing.cxx.

Variable Documentation

◆ ADDIN_SERVICE

constexpr OUStringLiteral ADDIN_SERVICE = u"com.sun.star.sheet.AddIn"
constexpr

Definition at line 44 of file pricing.cxx.

Referenced by ScaPricingAddIn::getSupportedServiceNames().

◆ MY_IMPLNAME

constexpr OUStringLiteral MY_IMPLNAME = u"com.sun.star.sheet.addin.PricingFunctionsImpl"
constexpr

Definition at line 46 of file pricing.cxx.

Referenced by ScaPricingAddIn::getImplementationName().

◆ MY_SERVICE

constexpr OUStringLiteral MY_SERVICE = u"com.sun.star.sheet.addin.PricingFunctions"
constexpr

◆ nNumOfLoc

const sal_uInt32 nNumOfLoc = SAL_N_ELEMENTS( pLang )

Definition at line 101 of file pricing.cxx.

Referenced by ScaPricingAddIn::GetLocale(), and ScaPricingAddIn::InitDefLocales().

◆ pCoun

const char* pCoun[] = { "US" }
static

Definition at line 100 of file pricing.cxx.

Referenced by ScaPricingAddIn::InitDefLocales().

◆ pFuncDataArr

const ScaFuncDataBase pFuncDataArr[]
Initial value:
=
{
{ "getOptBarrier", PRICING_FUNCNAME_OptBarrier, PRICING_FUNCDESC_OptBarrier, "OPT_BARRIER", 13, ScaCategory::Finance, false, false },
{ "getOptTouch", PRICING_FUNCNAME_OptTouch, PRICING_FUNCDESC_OptTouch, "OPT_TOUCH", 11, ScaCategory::Finance, false, false },
{ "getOptProbHit", PRICING_FUNCNAME_OptProbHit, PRICING_FUNCDESC_OptProbHit, "OPT_PROB_HIT", 6, ScaCategory::Finance, false, false },
{ "getOptProbInMoney", PRICING_FUNCNAME_OptProbInMoney, PRICING_FUNCDESC_OptProbInMoney, "OPT_PROB_INMONEY", 8, ScaCategory::Finance, false, false },
}

Definition at line 48 of file pricing.cxx.

Referenced by sca::pricing::InitScaFuncDataList().

◆ pLang

const char* pLang[] = { "en" }
static

Definition at line 99 of file pricing.cxx.

Referenced by ScaPricingAddIn::InitDefLocales().