diff options
author | Jens Carl <j.carl43@gmx.de> | 2018-01-03 22:36:45 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2018-01-04 06:38:14 +0100 |
commit | b0ab92eaa70dd6d6986b348525a901b75dfd7c69 (patch) | |
tree | 177f53bae346c04eeacc5332d48274db36491aa8 /sc | |
parent | 39f033e54858bc1c55ed82afe74199be05c08817 (diff) |
Add ServiceProvider "com.sun.star.sheet.TableAutoFormats"
Change-Id: If058d47116e0a287fc5b2155f5ae6b36cbd8fa47
Reviewed-on: https://gerrit.libreoffice.org/47359
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/inc/servuno.hxx | 7 | ||||
-rw-r--r-- | sc/source/ui/unoobj/servuno.cxx | 4 |
2 files changed, 8 insertions, 3 deletions
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 |