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

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

Add the type and functionality to make instance of ServiceProvider
"com.sun.star.sheet.RecentFunctions". The ServiceProvider is needed
to test XRecentFunctions UNOAPI and a fix for #i84761.

Change-Id: Icbaf0c57f8bbada5adb11381ea50b34b8b263c2f
Reviewed-on: https://gerrit.libreoffice.org/45636Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst 5daa3649
......@@ -31,7 +31,7 @@ public:
enum class Type
{
SHEET , URLFIELD , PAGEFIELD , PAGESFIELD , DATEFIELD , TIMEFIELD , TITLEFIELD , FILEFIELD ,
SHEETFIELD , CELLSTYLE , PAGESTYLE , AUTOFORMAT , CELLRANGES ,
SHEETFIELD , CELLSTYLE , PAGESTYLE , AUTOFORMAT , CELLRANGES , RECENTFUNCTIONS ,
// drawing layer tables
GRADTAB , HATCHTAB , BITMAPTAB , TRGRADTAB , MARKERTAB , DASHTAB , NUMRULES ,
......
......@@ -30,6 +30,7 @@
#include <servuno.hxx>
#include <unonames.hxx>
#include <appluno.hxx>
#include <cellsuno.hxx>
#include <fielduno.hxx>
#include <styleuno.hxx>
......@@ -263,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.RecentFunctions", Type::RECENTFUNCTIONS },
{ "com.sun.star.drawing.GradientTable", Type::GRADTAB },
{ "com.sun.star.drawing.HatchTable", Type::HATCHTAB },
{ "com.sun.star.drawing.BitmapTable", Type::BITMAPTAB },
......@@ -420,6 +422,9 @@ 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
......
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