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

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

Change-Id: If058d47116e0a287fc5b2155f5ae6b36cbd8fa47
Reviewed-on: https://gerrit.libreoffice.org/47359Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJens Carl <j.carl43@gmx.de>
üst 39f033e5
......@@ -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 ,
......
......@@ -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
......
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