diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-10 00:39:30 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-11 09:04:34 +0100 |
commit | 76090283e1de05c5431847cf464852bb6a45b857 (patch) | |
tree | 75e7faa797dac9b3fdd402db024d1fd06eabffe1 | |
parent | 1afc5e750c7e78fe39ba7fc5a97774a7813323ea (diff) |
callcatcher: unused lcl_CreateBulletItem
-rw-r--r-- | editeng/source/editeng/editobj.cxx | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/editeng/source/editeng/editobj.cxx b/editeng/source/editeng/editobj.cxx index ccb61a837c49..fa75702b3d25 100644 --- a/editeng/source/editeng/editobj.cxx +++ b/editeng/source/editeng/editobj.cxx @@ -59,87 +59,6 @@ DBG_NAME( XEditAttribute ) //-------------------------------------------------------------- -sal_Bool lcl_CreateBulletItem( const SvxNumBulletItem& rNumBullet, sal_uInt16 nLevel, SvxBulletItem& rBullet ) -{ - const SvxNumberFormat* pFmt = rNumBullet.GetNumRule()->Get( nLevel ); - if ( pFmt ) - { - rBullet.SetWidth( (-pFmt->GetFirstLineOffset()) + pFmt->GetCharTextDistance() ); - rBullet.SetSymbol( pFmt->GetBulletChar() ); - rBullet.SetPrevText( pFmt->GetPrefix() ); - rBullet.SetFollowText( pFmt->GetSuffix() ); - rBullet.SetStart( pFmt->GetStart() ); - rBullet.SetScale( pFmt->GetBulletRelSize() ); - - Font aBulletFont( rBullet.GetFont() ); - if ( pFmt->GetBulletFont() ) - aBulletFont = *pFmt->GetBulletFont(); - aBulletFont.SetColor( pFmt->GetBulletColor() ); - rBullet.SetFont( aBulletFont ); - - if ( pFmt->GetBrush() && pFmt->GetBrush()->GetGraphic() ) - { - Bitmap aBmp( pFmt->GetBrush()->GetGraphic()->GetBitmap() ); - aBmp.SetPrefSize( pFmt->GetGraphicSize() ); - aBmp.SetPrefMapMode( MAP_100TH_MM ); - rBullet.SetBitmap( aBmp ); - } - - switch ( pFmt->GetNumberingType() ) - { - case SVX_NUM_CHARS_UPPER_LETTER: - case SVX_NUM_CHARS_UPPER_LETTER_N: - rBullet.SetStyle( BS_ABC_BIG ); - break; - case SVX_NUM_CHARS_LOWER_LETTER: - case SVX_NUM_CHARS_LOWER_LETTER_N: - rBullet.SetStyle( BS_ABC_SMALL ); - break; - case SVX_NUM_ROMAN_UPPER: - rBullet.SetStyle( BS_ROMAN_BIG ); - break; - case SVX_NUM_ROMAN_LOWER: - rBullet.SetStyle( BS_ROMAN_SMALL ); - break; - case SVX_NUM_ARABIC: - rBullet.SetStyle( BS_123 ); - break; - case SVX_NUM_NUMBER_NONE: - rBullet.SetStyle( BS_NONE ); - break; - case SVX_NUM_CHAR_SPECIAL: - rBullet.SetStyle( BS_BULLET ); - break; - case SVX_NUM_PAGEDESC: - OSL_FAIL( "Unknown: SVX_NUM_PAGEDESC" ); - rBullet.SetStyle( BS_BULLET ); - break; - case SVX_NUM_BITMAP: - rBullet.SetStyle( BS_BMP ); - break; - default: - OSL_FAIL( "Unknown NumType" ); - } - - switch ( pFmt->GetNumAdjust() ) - { - case SVX_ADJUST_LEFT: - rBullet.SetJustification( BJ_VCENTER|BJ_HLEFT ); - break; - case SVX_ADJUST_RIGHT: - rBullet.SetJustification( BJ_VCENTER|BJ_HRIGHT ); - break; - case SVX_ADJUST_CENTER: - rBullet.SetJustification( BJ_VCENTER|BJ_HCENTER ); - break; - default: - OSL_FAIL( "Unknown or invalid NumAdjust" ); - } - } - return pFmt ? sal_True : sal_False; -} - - XEditAttribute* MakeXEditAttribute( SfxItemPool& rPool, const SfxPoolItem& rItem, sal_uInt16 nStart, sal_uInt16 nEnd ) { // Create thw new attribute in the pool |