summaryrefslogtreecommitdiff
path: root/sc/source/ui/app
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-02-16 11:52:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2017-02-16 15:56:59 +0000
commitf6ef4d216a145f77fec13aa5b6dcc5c68eb7d4fe (patch)
tree48f662440f67918d7798ae4759557fb01344e3e8 /sc/source/ui/app
parentfd4dda1da2227ae23a2c991319083c214909fcdc (diff)
fix indent
Change-Id: Idb9370250d59d0ef3fb9c73a0d09f27e31f623b7
Diffstat (limited to 'sc/source/ui/app')
-rw-r--r--sc/source/ui/app/scmod.cxx88
1 files changed, 45 insertions, 43 deletions
diff --git a/sc/source/ui/app/scmod.cxx b/sc/source/ui/app/scmod.cxx
index 23042c406f3b..46d42cabc492 100644
--- a/sc/source/ui/app/scmod.cxx
+++ b/sc/source/ui/app/scmod.cxx
@@ -2061,69 +2061,71 @@ VclPtr<SfxTabPage> ScModule::CreateTabPage( sal_uInt16 nId, vcl::Window* pParent
switch(nId)
{
case SID_SC_TP_LAYOUT:
- {
- ::CreateTabPage ScTpLayoutOptionsCreate = pFact->GetTabPageCreatorFunc( RID_SCPAGE_LAYOUT );
- if ( ScTpLayoutOptionsCreate )
- pRet = (*ScTpLayoutOptionsCreate) (pParent, &rSet);
- }
- break;
+ {
+ ::CreateTabPage ScTpLayoutOptionsCreate = pFact->GetTabPageCreatorFunc(RID_SCPAGE_LAYOUT);
+ if (ScTpLayoutOptionsCreate)
+ pRet = (*ScTpLayoutOptionsCreate)(pParent, &rSet);
+ break;
+ }
case SID_SC_TP_CONTENT:
- {
- ::CreateTabPage ScTpContentOptionsCreate = pFact->GetTabPageCreatorFunc(RID_SCPAGE_CONTENT);
- if ( ScTpContentOptionsCreate )
- pRet = (*ScTpContentOptionsCreate)(pParent, &rSet);
- }
- break;
- case SID_SC_TP_GRID: pRet = SvxGridTabPage::Create(pParent, rSet); break;
+ {
+ ::CreateTabPage ScTpContentOptionsCreate = pFact->GetTabPageCreatorFunc(RID_SCPAGE_CONTENT);
+ if (ScTpContentOptionsCreate)
+ pRet = (*ScTpContentOptionsCreate)(pParent, &rSet);
+ break;
+ }
+ case SID_SC_TP_GRID:
+ pRet = SvxGridTabPage::Create(pParent, rSet);
+ break;
case SID_SC_TP_USERLISTS:
- {
- ::CreateTabPage ScTpUserListsCreate = pFact->GetTabPageCreatorFunc( RID_SCPAGE_USERLISTS );
- if ( ScTpUserListsCreate )
- pRet = (*ScTpUserListsCreate)( pParent, &rSet);
- }
- break;
+ {
+ ::CreateTabPage ScTpUserListsCreate = pFact->GetTabPageCreatorFunc(RID_SCPAGE_USERLISTS );
+ if (ScTpUserListsCreate)
+ pRet = (*ScTpUserListsCreate)(pParent, &rSet);
+ break;
+ }
case SID_SC_TP_CALC:
- {
- ::CreateTabPage ScTpCalcOptionsCreate = pFact->GetTabPageCreatorFunc( RID_SCPAGE_CALC );
- if ( ScTpCalcOptionsCreate )
- pRet = (*ScTpCalcOptionsCreate)(pParent, &rSet);
- }
- break;
+ {
+ ::CreateTabPage ScTpCalcOptionsCreate = pFact->GetTabPageCreatorFunc(RID_SCPAGE_CALC);
+ if (ScTpCalcOptionsCreate)
+ pRet = (*ScTpCalcOptionsCreate)(pParent, &rSet);
+ break;
+ }
case SID_SC_TP_FORMULA:
{
::CreateTabPage ScTpFormulaOptionsCreate = pFact->GetTabPageCreatorFunc (RID_SCPAGE_FORMULA);
if (ScTpFormulaOptionsCreate)
pRet = (*ScTpFormulaOptionsCreate)(pParent, &rSet);
+ break;
}
- break;
case SID_SC_TP_COMPATIBILITY:
{
::CreateTabPage ScTpCompatOptionsCreate = pFact->GetTabPageCreatorFunc (RID_SCPAGE_COMPATIBILITY);
if (ScTpCompatOptionsCreate)
pRet = (*ScTpCompatOptionsCreate)(pParent, &rSet);
+ break;
}
- break;
case SID_SC_TP_CHANGES:
- {
- ::CreateTabPage ScRedlineOptionsTabPageCreate = pFact->GetTabPageCreatorFunc( RID_SCPAGE_OPREDLINE );
- if ( ScRedlineOptionsTabPageCreate )
- pRet =(*ScRedlineOptionsTabPageCreate)(pParent, &rSet);
- }
- break;
+ {
+ ::CreateTabPage ScRedlineOptionsTabPageCreate = pFact->GetTabPageCreatorFunc(RID_SCPAGE_OPREDLINE);
+ if (ScRedlineOptionsTabPageCreate)
+ pRet =(*ScRedlineOptionsTabPageCreate)(pParent, &rSet);
+ break;
+ }
case RID_SC_TP_PRINT:
- {
- ::CreateTabPage ScTpPrintOptionsCreate = pFact->GetTabPageCreatorFunc( RID_SCPAGE_PRINT );
- if ( ScTpPrintOptionsCreate )
- pRet = (*ScTpPrintOptionsCreate)( pParent, &rSet);
- }
+ {
+ ::CreateTabPage ScTpPrintOptionsCreate = pFact->GetTabPageCreatorFunc(RID_SCPAGE_PRINT);
+ if (ScTpPrintOptionsCreate)
+ pRet = (*ScTpPrintOptionsCreate)(pParent, &rSet);
break;
+ }
case RID_SC_TP_DEFAULTS:
- {
- ::CreateTabPage ScTpDefaultsOptionsCreate = pFact->GetTabPageCreatorFunc( RID_SCPAGE_DEFAULTS );
- if ( ScTpDefaultsOptionsCreate )
- pRet = (*ScTpDefaultsOptionsCreate)( pParent, &rSet);
- }
+ {
+ ::CreateTabPage ScTpDefaultsOptionsCreate = pFact->GetTabPageCreatorFunc(RID_SCPAGE_DEFAULTS);
+ if (ScTpDefaultsOptionsCreate)
+ pRet = (*ScTpDefaultsOptionsCreate)(pParent, &rSet);
break;
+ }
}
OSL_ENSURE( pRet, "ScModule::CreateTabPage(): no valid ID for TabPage!" );