Kaydet (Commit) e978a52f authored tarafından Jens Carl's avatar Jens Carl

Add ServiceProvider "com.sun.star.sheet.FunctionDescriptions"

Change-Id: Iff6761d00abf2de391ef3809b646dbaeab7fb96f
Reviewed-on: https://gerrit.libreoffice.org/45771Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst 102f257e
......@@ -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 ,
......
......@@ -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 )));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment