diff options
author | Jaskaran Singh <jvsg1303@gmail.com> | 2016-09-28 10:53:37 +0530 |
---|---|---|
committer | Jaskaran singh <jvsg1303@gmail.com> | 2016-09-28 11:42:56 +0000 |
commit | 7b0aed617f1e57335837cf56ef2d222a96f8270d (patch) | |
tree | 663d7d33907cc0bdac4bfc4bac7c5baf6abb4759 /sc/source/core/data/stlpool.cxx | |
parent | 5345b1562066d61b9ed79f072f8a953c67f847ed (diff) |
Remove old cell styles from calc
Change-Id: Ic3f7aa6d247af8a422899549b7238c7fb6cf2406
Reviewed-on: https://gerrit.libreoffice.org/29338
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jaskaran singh <jvsg1303@gmail.com>
Diffstat (limited to 'sc/source/core/data/stlpool.cxx')
-rw-r--r-- | sc/source/core/data/stlpool.cxx | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/sc/source/core/data/stlpool.cxx b/sc/source/core/data/stlpool.cxx index 67a9067eaafe..1ef9c311f615 100644 --- a/sc/source/core/data/stlpool.cxx +++ b/sc/source/core/data/stlpool.cxx @@ -189,10 +189,6 @@ void ScStyleSheetPool::CopyStdStylesFrom( ScStyleSheetPool* pSrcPool ) // Copy Default styles CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_STANDARD), SfxStyleFamily::Para ); - CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_RESULT), SfxStyleFamily::Para ); - CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_RESULT1), SfxStyleFamily::Para ); - CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_HEADLINE), SfxStyleFamily::Para ); - CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_HEADLINE1), SfxStyleFamily::Para ); CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_STANDARD), SfxStyleFamily::Page ); CopyStyleFrom( pSrcPool, SCSTR(STR_STYLENAME_REPORT), SfxStyleFamily::Page ); } @@ -270,51 +266,6 @@ void ScStyleSheetPool::CreateStandardStyles() // if ( eCtl == LANGUAGE_THAI ) // pSet->Put( SvxFontHeightItem( 300, 100, ATTR_CTL_FONT_HEIGHT ) ); // 15 pt - // 2. Result - - pSheet = static_cast<ScStyleSheet*>( &Make( SCSTR( STR_STYLENAME_RESULT ), - SfxStyleFamily::Para, - SCSTYLEBIT_STANDARD ) ); - pSheet->SetParent( aStrStandard ); - pSheet->SetHelpId( aHelpFile, HID_SC_SHEET_CELL_ERG ); - pSet = &pSheet->GetItemSet(); - pSet->Put( SvxWeightItem( WEIGHT_BOLD, ATTR_FONT_WEIGHT ) ); - pSet->Put( SvxPostureItem( ITALIC_NORMAL, ATTR_FONT_POSTURE ) ); - pSet->Put( SvxUnderlineItem( LINESTYLE_SINGLE, ATTR_FONT_UNDERLINE ) ); - - // 3. Result1 - - pSheet = static_cast<ScStyleSheet*>( &Make( SCSTR( STR_STYLENAME_RESULT1 ), - SfxStyleFamily::Para, - SCSTYLEBIT_STANDARD ) ); - - pSheet->SetParent( SCSTR( STR_STYLENAME_RESULT ) ); - pSheet->SetHelpId( aHelpFile, HID_SC_SHEET_CELL_ERG1 ); - - // 4. headline - - pSheet = static_cast<ScStyleSheet*>( &Make( SCSTR( STR_STYLENAME_HEADLINE ), - SfxStyleFamily::Para, - SCSTYLEBIT_STANDARD ) ); - - pSheet->SetParent( aStrStandard ); - pSheet->SetHelpId( aHelpFile, HID_SC_SHEET_CELL_UEB ); - pSet = &pSheet->GetItemSet(); - pSet->Put( SvxFontHeightItem( 320, 100, ATTR_FONT_HEIGHT ) ); // 16pt - pSet->Put( SvxWeightItem( WEIGHT_BOLD, ATTR_FONT_WEIGHT ) ); - pSet->Put( SvxPostureItem( ITALIC_NORMAL, ATTR_FONT_POSTURE ) ); - pSet->Put( SvxHorJustifyItem( SVX_HOR_JUSTIFY_CENTER, ATTR_HOR_JUSTIFY ) ); - - // 5. Ueberschrift1 - - pSheet = static_cast<ScStyleSheet*>( &Make( SCSTR( STR_STYLENAME_HEADLINE1 ), - SfxStyleFamily::Para, - SCSTYLEBIT_STANDARD ) ); - - pSheet->SetParent( SCSTR( STR_STYLENAME_HEADLINE ) ); - pSheet->SetHelpId( aHelpFile, HID_SC_SHEET_CELL_UEB1 ); - pSet = &pSheet->GetItemSet(); - pSet->Put( SfxInt32Item( ATTR_ROTATE_VALUE, 9000 ) ); // Page format template: |