LibreOffice Module sc (master) 1
Macros | Functions | Variables
addincol.cxx File Reference
#include <comphelper/processfactory.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <utility>
#include <vcl/svapp.hxx>
#include <vcl/settings.hxx>
#include <sfx2/objsh.hxx>
#include <unotools/charclass.hxx>
#include <sal/log.hxx>
#include <o3tl/string_view.hxx>
#include <osl/diagnose.h>
#include <com/sun/star/container/XContentEnumerationAccess.hpp>
#include <com/sun/star/frame/XModel.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XServiceName.hpp>
#include <com/sun/star/lang/XSingleServiceFactory.hpp>
#include <com/sun/star/lang/XSingleComponentFactory.hpp>
#include <com/sun/star/reflection/XIdlClass.hpp>
#include <com/sun/star/beans/XIntrospectionAccess.hpp>
#include <com/sun/star/beans/theIntrospection.hpp>
#include <com/sun/star/beans/MethodConcept.hpp>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/beans/PropertyValue.hpp>
#include <com/sun/star/table/XCellRange.hpp>
#include <com/sun/star/lang/Locale.hpp>
#include <com/sun/star/sheet/XCompatibilityNames.hpp>
#include <com/sun/star/sheet/NoConvergenceException.hpp>
#include <com/sun/star/sheet/XAddIn.hpp>
#include <com/sun/star/sheet/XVolatileResult.hpp>
#include <addincol.hxx>
#include <addinhelpid.hxx>
#include <scmatrix.hxx>
#include <formula/errorcodes.hxx>
#include <formula/funcvarargs.h>
#include <optutil.hxx>
#include <addincfg.hxx>
#include <scmod.hxx>
#include <rangeseq.hxx>
#include <funcdesc.hxx>
#include <svl/sharedstring.hxx>
#include <formulaopt.hxx>
#include <compiler.hxx>
#include <document.hxx>
#include <memory>
Include dependency graph for addincol.cxx:

Go to the source code of this file.

Macros

#define SC_CALLERPOS_NONE   (-1)
 
#define CFG_FUNCPROP_DISPLAYNAME   0
 
#define CFG_FUNCPROP_DESCRIPTION   1
 
#define CFG_FUNCPROP_CATEGORY   2
 
#define CFG_FUNCPROP_COUNT   3
 

Functions

static sal_uInt16 lcl_GetCategory (std::u16string_view rName)
 
static bool IsTypeName (std::u16string_view rName, const uno::Type &rType)
 
static bool lcl_ValidReturnType (const uno::Reference< reflection::XIdlClass > &xClass)
 
static ScAddInArgumentType lcl_GetArgType (const uno::Reference< reflection::XIdlClass > &xClass)
 
static void lcl_UpdateFunctionList (const ScFunctionList &rFunctionList, const ScUnoAddInFuncData &rFuncData, bool bEnglishFunctionNames)
 
static const ScAddInArgDesclcl_FindArgDesc (const ScUnoAddInFuncData &rFuncData, std::u16string_view rArgIntName)
 
template<typename T >
static sal_Int32 lcl_GetMaxColCount (const uno::Sequence< uno::Sequence< T > > *pRowSeq)
 

Variables

constexpr OUStringLiteral CFGPATH_ADDINS = u"Office.CalcAddIns/AddInInfo"
 
constexpr OUStringLiteral CFGSTR_ADDINFUNCTIONS = u"AddInFunctions"
 
constexpr OUStringLiteral CFGSTR_DISPLAYNAME = u"DisplayName"
 
constexpr OUStringLiteral CFGSTR_DESCRIPTION = u"Description"
 
constexpr OUStringLiteral CFGSTR_CATEGORY = u"Category"
 
constexpr OUStringLiteral CFGSTR_COMPATIBILITYNAME = u"CompatibilityName"
 
constexpr OUStringLiteral CFGSTR_PARAMETERS = u"Parameters"
 

Macro Definition Documentation

◆ CFG_FUNCPROP_CATEGORY

#define CFG_FUNCPROP_CATEGORY   2

Definition at line 347 of file addincol.cxx.

◆ CFG_FUNCPROP_COUNT

#define CFG_FUNCPROP_COUNT   3

Definition at line 348 of file addincol.cxx.

◆ CFG_FUNCPROP_DESCRIPTION

#define CFG_FUNCPROP_DESCRIPTION   1

Definition at line 346 of file addincol.cxx.

◆ CFG_FUNCPROP_DISPLAYNAME

#define CFG_FUNCPROP_DISPLAYNAME   0

Definition at line 345 of file addincol.cxx.

◆ SC_CALLERPOS_NONE

#define SC_CALLERPOS_NONE   (-1)

Definition at line 69 of file addincol.cxx.

Function Documentation

◆ IsTypeName()

static bool IsTypeName ( std::u16string_view  rName,
const uno::Type rType 
)
static

◆ lcl_FindArgDesc()

static const ScAddInArgDesc * lcl_FindArgDesc ( const ScUnoAddInFuncData rFuncData,
std::u16string_view  rArgIntName 
)
static

◆ lcl_GetArgType()

static ScAddInArgumentType lcl_GetArgType ( const uno::Reference< reflection::XIdlClass > &  xClass)
static

◆ lcl_GetCategory()

static sal_uInt16 lcl_GetCategory ( std::u16string_view  rName)
static

◆ lcl_GetMaxColCount()

template<typename T >
static sal_Int32 lcl_GetMaxColCount ( const uno::Sequence< uno::Sequence< T > > *  pRowSeq)
static

Definition at line 1548 of file addincol.cxx.

References a.

Referenced by ScUnoAddInCall::SetResult().

◆ lcl_UpdateFunctionList()

static void lcl_UpdateFunctionList ( const ScFunctionList rFunctionList,
const ScUnoAddInFuncData rFuncData,
bool  bEnglishFunctionNames 
)
static

◆ lcl_ValidReturnType()

static bool lcl_ValidReturnType ( const uno::Reference< reflection::XIdlClass > &  xClass)
static

Definition at line 675 of file addincol.cxx.

References IsTypeName(), and sName.

Referenced by ScUnoAddInCollection::ReadFromAddIn().

Variable Documentation

◆ CFGPATH_ADDINS

constexpr OUStringLiteral CFGPATH_ADDINS = u"Office.CalcAddIns/AddInInfo"
constexpr

Definition at line 342 of file addincol.cxx.

Referenced by ScUnoAddInCollection::ReadConfiguration().

◆ CFGSTR_ADDINFUNCTIONS

constexpr OUStringLiteral CFGSTR_ADDINFUNCTIONS = u"AddInFunctions"
constexpr

Definition at line 343 of file addincol.cxx.

Referenced by ScUnoAddInCollection::ReadConfiguration().

◆ CFGSTR_CATEGORY

constexpr OUStringLiteral CFGSTR_CATEGORY = u"Category"
constexpr

Definition at line 351 of file addincol.cxx.

Referenced by ScUnoAddInCollection::ReadConfiguration().

◆ CFGSTR_COMPATIBILITYNAME

constexpr OUStringLiteral CFGSTR_COMPATIBILITYNAME = u"CompatibilityName"
constexpr

Definition at line 354 of file addincol.cxx.

Referenced by ScUnoAddInCollection::ReadConfiguration().

◆ CFGSTR_DESCRIPTION

constexpr OUStringLiteral CFGSTR_DESCRIPTION = u"Description"
constexpr

Definition at line 350 of file addincol.cxx.

Referenced by ScUnoAddInCollection::ReadConfiguration().

◆ CFGSTR_DISPLAYNAME

constexpr OUStringLiteral CFGSTR_DISPLAYNAME = u"DisplayName"
constexpr

Definition at line 349 of file addincol.cxx.

Referenced by ScUnoAddInCollection::ReadConfiguration().

◆ CFGSTR_PARAMETERS

constexpr OUStringLiteral CFGSTR_PARAMETERS = u"Parameters"
constexpr

Definition at line 355 of file addincol.cxx.

Referenced by ScUnoAddInCollection::ReadConfiguration().