LibreOffice Module scaddins (master) 1
Macros | Functions | Variables
datefunc.cxx File Reference
#include "datefunc.hxx"
#include <datefunc.hrc>
#include <strings.hrc>
#include <com/sun/star/util/Date.hpp>
#include <cppuhelper/factory.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/weak.hxx>
#include <rtl/ustrbuf.hxx>
#include <unotools/resmgr.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <algorithm>
#include <cmath>
#include "deffuncname.hxx"
Include dependency graph for datefunc.cxx:

Go to the source code of this file.

Macros

#define UNIQUE   false
 
#define STDPAR   false
 
#define INTPAR   true
 
#define FUNCDATA(FuncName, ParamCount, Category, Double, IntPar)    { "get" #FuncName, DATE_FUNCNAME_##FuncName, DATE_FUNCDESC_##FuncName, DATE_DEFFUNCNAME_##FuncName, ParamCount, Category, Double, IntPar }
 

Functions

static void InitScaFuncDataList (ScaFuncDataList &rList)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * scaddins_ScaDateAddIn_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.DateFunctions"
 
constexpr OUStringLiteral MY_IMPLNAME = u"com.sun.star.sheet.addin.DateFunctionsImpl"
 
const ScaFuncDataBase pFuncDataArr []
 
static const char * pLang [] = { "de", "en" }
 
static const char * pCoun [] = { "DE", "US" }
 
const sal_uInt32 nNumOfLoc = SAL_N_ELEMENTS( pLang )
 

Macro Definition Documentation

◆ FUNCDATA

#define FUNCDATA (   FuncName,
  ParamCount,
  Category,
  Double,
  IntPar 
)     { "get" #FuncName, DATE_FUNCNAME_##FuncName, DATE_FUNCDESC_##FuncName, DATE_DEFFUNCNAME_##FuncName, ParamCount, Category, Double, IntPar }

Definition at line 45 of file datefunc.cxx.

◆ INTPAR

#define INTPAR   true

Definition at line 43 of file datefunc.cxx.

◆ STDPAR

#define STDPAR   false

Definition at line 42 of file datefunc.cxx.

◆ UNIQUE

#define UNIQUE   false

Definition at line 40 of file datefunc.cxx.

Function Documentation

◆ InitScaFuncDataList()

static void InitScaFuncDataList ( ScaFuncDataList rList)
static

Definition at line 82 of file datefunc.cxx.

References nIndex, and pFuncDataArr.

Referenced by ScaDateAddIn::InitData().

◆ scaddins_ScaDateAddIn_get_implementation()

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

Definition at line 91 of file datefunc.cxx.

Variable Documentation

◆ ADDIN_SERVICE

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

Definition at line 36 of file datefunc.cxx.

Referenced by ScaDateAddIn::getSupportedServiceNames().

◆ MY_IMPLNAME

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

Definition at line 38 of file datefunc.cxx.

Referenced by ScaDateAddIn::getImplementationName().

◆ MY_SERVICE

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

◆ nNumOfLoc

const sal_uInt32 nNumOfLoc = SAL_N_ELEMENTS( pLang )

Definition at line 105 of file datefunc.cxx.

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

◆ pCoun

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

Definition at line 104 of file datefunc.cxx.

Referenced by ScaDateAddIn::InitDefLocales().

◆ pFuncDataArr

const ScaFuncDataBase pFuncDataArr[]
Initial value:
=
{
}
#define INTPAR
Definition: datefunc.cxx:43
#define FUNCDATA(FuncName, ParamCount, Category, Double, IntPar)
Definition: datefunc.cxx:45
#define UNIQUE
Definition: datefunc.cxx:40

Definition at line 48 of file datefunc.cxx.

Referenced by InitScaFuncDataList().

◆ pLang

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

Definition at line 103 of file datefunc.cxx.

Referenced by ScaDateAddIn::InitDefLocales().