From b4685908844ed4891a29d5b024db8dfb493d4933 Mon Sep 17 00:00:00 2001 From: Olivier Hallot Date: Wed, 5 Jan 2022 18:09:42 -0300 Subject: Calling Calc Add-in function for Dates and Pricing Inform respective UNO services Change-Id: I97f6b3a957f398074213239da79564f310e2db82 Reviewed-on: https://gerrit.libreoffice.org/c/help/+/128028 Tested-by: Jenkins Reviewed-by: Olivier Hallot --- source/text/sbasic/shared/calc_functions.xhp | 132 +++++++++++++++++++++++++-- 1 file changed, 125 insertions(+), 7 deletions(-) (limited to 'source/text/sbasic/shared/calc_functions.xhp') diff --git a/source/text/sbasic/shared/calc_functions.xhp b/source/text/sbasic/shared/calc_functions.xhp index a1ebc1ada0..7ac1210880 100644 --- a/source/text/sbasic/shared/calc_functions.xhp +++ b/source/text/sbasic/shared/calc_functions.xhp @@ -70,7 +70,7 @@

Calling Add-In Calc Functions in BASIC

- The Calc Add-In functions are in service com.sun.star.sheet.addin.Analysis. + The Calc Add-In functions are in the UNO services com.sun.star.sheet.addin.Analysis, com.sun.star.sheet.addin.DateFunctions and com.sun.star.sheet.addin.PricingFunctions. REM Example calling Add-in function SQRTPI @@ -88,19 +88,20 @@ Sub AssignAddInFormulaToCell REM Add an Add-In formula to cell A1. Function name is the UNO service name. oCell = ThisComponent.Sheets.getByIndex(0).getCellRangeByName("A1") - oCell.Formula = "=com.sun.star.sheet.addin.Analysis.getBin2Dec(B1)" + oCell.Formula = "=com.sun.star.sheet.addin.Analysis.getBin2Dec(B1)" REM Cell A1 displays the localized function name End Sub -

Add-In Functions UNO service Names

-The table below presents a list of all Calc Add-In functions and their respective UNO service names. +
+

UNO Service Names for Analysis Add-In Functions

+The table below presents a list of all Calc Analysis Add-In functions and their respective UNO service names. - Calc Function name + Calc Function name - UNO service name + UNO service name @@ -912,7 +913,124 @@
-
+
+
+

UNO Service Names for Date Add-In Functions

+The table below presents a list of all Calc Date Add-In functions and their respective UNO service names. + + + + Calc Function name + + + UNO service name + + + + + DAYSINMONTH + + + com.sun.star.sheet.addin.DateFunctions.getDaysInMonth + + + + + DAYSINYEAR + + + com.sun.star.sheet.addin.DateFunctions.getDaysInMonth + + + + + MONTHS + + + com.sun.star.sheet.addin.DateFunctions.getDiffMonths + + + + + WEEKS + + + com.sun.star.sheet.addin.DateFunctions.getDiffWeeks + + + + + YEARS + + + com.sun.star.sheet.addin.DateFunctions.getDiffYears + + + + + ROT13 + + + com.sun.star.sheet.addin.DateFunctions.getRot13 + + + + + WEEKSINYEAR + + + com.sun.star.sheet.addin.DateFunctions.getWeeksInYear + + +
+
+
+

UNO Service Names for Pricing Add-In Functions

+The table below presents a list of all Calc Pricing Add-In functions and their respective UNO service names. + + + + Calc Function name + + + UNO service name + + + + + OPT_BARRIER + + + com.sun.star.sheet.addin.PrincingFunctions.getOptBarrier + + + + + OPT_PROB_HIT + + + com.sun.star.sheet.addin.PrincingFunctions.getOptProbHit + + + + + OPT_PROB_INMONEY + + + com.sun.star.sheet.addin.PrincingFunctions.getOptProbInMoney + + + + + OPT_TOUCH + + + com.sun.star.sheet.addin.PrincingFunctions.getOptTouch + + +
+
+
-- cgit