summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJens Carl <j.carl43@gmx.de>2018-01-16 07:04:52 +0000
committerJens Carl <j.carl43@gmx.de>2018-01-16 11:23:53 +0100
commit4ea231ccdebe6bd7b189e7b856d9b3cfc0b04a6f (patch)
treeb6e01ccf6f6f78614ca95923ebdc30fd1e0386c8 /sc
parent28edb81dd83b72bd593445dab4625bb145def955 (diff)
Add ServiceProvider "com.sun.star.sheet.GlobalSheetSettings"
Change-Id: I31a93cd6a7b46f1746aee694668295fabe4fa8fd Reviewed-on: https://gerrit.libreoffice.org/47926 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/inc/servuno.hxx3
-rw-r--r--sc/source/ui/unoobj/servuno.cxx4
2 files changed, 6 insertions, 1 deletions
diff --git a/sc/inc/servuno.hxx b/sc/inc/servuno.hxx
index d718bf2cda4b..a53b81f3e3e4 100644
--- a/sc/inc/servuno.hxx
+++ b/sc/inc/servuno.hxx
@@ -33,7 +33,8 @@ public:
SHEET , URLFIELD , PAGEFIELD , PAGESFIELD , DATEFIELD , TIMEFIELD , TITLEFIELD , FILEFIELD ,
SHEETFIELD , CELLSTYLE , PAGESTYLE ,
// sheet
- AUTOFORMAT , AUTOFORMATS, CELLRANGES , FUNCTIONDESCRIPTIONS , RECENTFUNCTIONS ,
+ AUTOFORMAT , AUTOFORMATS, CELLRANGES , FUNCTIONDESCRIPTIONS , GLOBALSHEETSETTINGS ,
+ 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 bec6c090c3d6..e3ee59062ea7 100644
--- a/sc/source/ui/unoobj/servuno.cxx
+++ b/sc/source/ui/unoobj/servuno.cxx
@@ -266,6 +266,7 @@ const ProvNamesId_Type aProvNamesId[] =
{ "com.sun.star.sheet.TableAutoFormats", Type::AUTOFORMATS },
{ "com.sun.star.sheet.SheetCellRanges", Type::CELLRANGES },
{ "com.sun.star.sheet.FunctionDescriptions", Type::FUNCTIONDESCRIPTIONS },
+ { "com.sun.star.sheet.GlobalSheetSettings", Type::GLOBALSHEETSETTINGS },
{ "com.sun.star.sheet.RecentFunctions", Type::RECENTFUNCTIONS },
{ "com.sun.star.drawing.GradientTable", Type::GRADTAB },
{ "com.sun.star.drawing.HatchTable", Type::HATCHTAB },
@@ -436,6 +437,9 @@ uno::Reference<uno::XInterface> ScServiceProvider::MakeInstance(
case Type::FUNCTIONDESCRIPTIONS:
xRet.set(static_cast<sheet::XFunctionDescriptions*>(new ScFunctionListObj()));
break;
+ case Type::GLOBALSHEETSETTINGS:
+ xRet.set(static_cast<sheet::XGlobalSheetSettings*>(new ScSpreadsheetSettings()));
+ break;
case Type::RECENTFUNCTIONS:
xRet.set(static_cast<sheet::XRecentFunctions*>(new ScRecentFunctionsObj()));
break;