[Libreoffice-commits] core.git: sc/inc sc/source
Jens Carl
j.carl43 at gmx.de
Thu Jan 4 05:38:44 UTC 2018
sc/inc/servuno.hxx | 7 ++++---
sc/source/ui/unoobj/servuno.cxx | 4 ++++
2 files changed, 8 insertions(+), 3 deletions(-)
New commits:
commit b0ab92eaa70dd6d6986b348525a901b75dfd7c69
Author: Jens Carl <j.carl43 at gmx.de>
Date: Wed Jan 3 22:36:45 2018 +0000
Add ServiceProvider "com.sun.star.sheet.TableAutoFormats"
Change-Id: If058d47116e0a287fc5b2155f5ae6b36cbd8fa47
Reviewed-on: https://gerrit.libreoffice.org/47359
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 00c03b5a5320..d718bf2cda4b 100644
--- a/sc/inc/servuno.hxx
+++ b/sc/inc/servuno.hxx
@@ -31,9 +31,10 @@ public:
enum class Type
{
SHEET , URLFIELD , PAGEFIELD , PAGESFIELD , DATEFIELD , TIMEFIELD , TITLEFIELD , FILEFIELD ,
- SHEETFIELD , CELLSTYLE , PAGESTYLE , AUTOFORMAT , CELLRANGES , FUNCTIONDESCRIPTIONS ,
- RECENTFUNCTIONS ,
- // drawing layer tables
+ SHEETFIELD , CELLSTYLE , PAGESTYLE ,
+ // sheet
+ AUTOFORMAT , AUTOFORMATS, CELLRANGES , FUNCTIONDESCRIPTIONS , RECENTFUNCTIONS ,
+ // drawing layer tables
GRADTAB , HATCHTAB , BITMAPTAB , TRGRADTAB , MARKERTAB , DASHTAB , NUMRULES ,
DOCDEFLTS , DRAWDEFLTS ,
diff --git a/sc/source/ui/unoobj/servuno.cxx b/sc/source/ui/unoobj/servuno.cxx
index 1573bf7f8cb5..bec6c090c3d6 100644
--- a/sc/source/ui/unoobj/servuno.cxx
+++ b/sc/source/ui/unoobj/servuno.cxx
@@ -263,6 +263,7 @@ const ProvNamesId_Type aProvNamesId[] =
{ "com.sun.star.style.CellStyle", Type::CELLSTYLE },
{ "com.sun.star.style.PageStyle", Type::PAGESTYLE },
{ "com.sun.star.sheet.TableAutoFormat", Type::AUTOFORMAT },
+ { "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.RecentFunctions", Type::RECENTFUNCTIONS },
@@ -423,6 +424,9 @@ uno::Reference<uno::XInterface> ScServiceProvider::MakeInstance(
case Type::AUTOFORMAT:
xRet.set(static_cast<container::XIndexAccess*>(new ScAutoFormatObj( SC_AFMTOBJ_INVALID )));
break;
+ case Type::AUTOFORMATS:
+ xRet.set(static_cast<container::XIndexAccess*>(new ScAutoFormatsObj()));
+ break;
case Type::CELLRANGES:
// isn't inserted, rather filled
// -> DocShell must be set, but empty ranges
More information about the Libreoffice-commits
mailing list