[Libreoffice-commits] core.git: sc/inc sc/source
Jens Carl
j.carl43 at gmx.de
Tue Dec 5 06:18:36 UTC 2017
sc/inc/servuno.hxx | 3 ++-
sc/source/ui/unoobj/servuno.cxx | 10 +++++++---
2 files changed, 9 insertions(+), 4 deletions(-)
New commits:
commit e978a52fc7321feaf5148daa5b5bde22689aec75
Author: Jens Carl <j.carl43 at gmx.de>
Date: Mon Dec 4 05:50:12 2017 +0000
Add ServiceProvider "com.sun.star.sheet.FunctionDescriptions"
Change-Id: Iff6761d00abf2de391ef3809b646dbaeab7fb96f
Reviewed-on: https://gerrit.libreoffice.org/45771
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Jens Carl <j.carl43 at gmx.de>
diff --git a/sc/inc/servuno.hxx b/sc/inc/servuno.hxx
index ec15219a8ca0..00c03b5a5320 100644
--- a/sc/inc/servuno.hxx
+++ b/sc/inc/servuno.hxx
@@ -31,7 +31,8 @@ public:
enum class Type
{
SHEET , URLFIELD , PAGEFIELD , PAGESFIELD , DATEFIELD , TIMEFIELD , TITLEFIELD , FILEFIELD ,
- SHEETFIELD , CELLSTYLE , PAGESTYLE , AUTOFORMAT , CELLRANGES , RECENTFUNCTIONS ,
+ SHEETFIELD , CELLSTYLE , PAGESTYLE , AUTOFORMAT , CELLRANGES , FUNCTIONDESCRIPTIONS ,
+ RECENTFUNCTIONS ,
// drawing layer tables
GRADTAB , HATCHTAB , BITMAPTAB , TRGRADTAB , MARKERTAB , DASHTAB , NUMRULES ,
diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx
index 69cd7273576a..1573bf7f8cb5 100644
--- a/sc/source/ui/unoobj/servuno.cxx
+++ b/sc/source/ui/unoobj/servuno.cxx
@@ -264,6 +264,7 @@ const ProvNamesId_Type aProvNamesId[] =
{ "com.sun.star.style.PageStyle", Type::PAGESTYLE },
{ "com.sun.star.sheet.TableAutoFormat", Type::AUTOFORMAT },
{ "com.sun.star.sheet.SheetCellRanges", Type::CELLRANGES },
+ { "com.sun.star.sheet.FunctionDescriptions", Type::FUNCTIONDESCRIPTIONS },
{ "com.sun.star.sheet.RecentFunctions", Type::RECENTFUNCTIONS },
{ "com.sun.star.drawing.GradientTable", Type::GRADTAB },
{ "com.sun.star.drawing.HatchTable", Type::HATCHTAB },
@@ -422,15 +423,18 @@ uno::Reference<uno::XInterface> ScServiceProvider::MakeInstance(
case Type::AUTOFORMAT:
xRet.set(static_cast<container::XIndexAccess*>(new ScAutoFormatObj( SC_AFMTOBJ_INVALID )));
break;
- case Type::RECENTFUNCTIONS:
- xRet.set(static_cast<sheet::XRecentFunctions*>(new ScRecentFunctionsObj()));
- break;
case Type::CELLRANGES:
// isn't inserted, rather filled
// -> DocShell must be set, but empty ranges
if (pDocShell)
xRet.set(static_cast<sheet::XSheetCellRanges*>(new ScCellRangesObj( pDocShell, ScRangeList() )));
break;
+ case Type::FUNCTIONDESCRIPTIONS:
+ xRet.set(static_cast<sheet::XFunctionDescriptions*>(new ScFunctionListObj()));
+ break;
+ case Type::RECENTFUNCTIONS:
+ xRet.set(static_cast<sheet::XRecentFunctions*>(new ScRecentFunctionsObj()));
+ break;
case Type::DOCDEFLTS:
if (pDocShell)
xRet.set(static_cast<beans::XPropertySet*>(new ScDocDefaultsObj( pDocShell )));
More information about the Libreoffice-commits
mailing list