diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-07-14 22:06:29 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-07-14 22:06:29 +0100 |
commit | a22ac2c218870033822120bf0b0d6cfde6ce799f (patch) | |
tree | 10d6bd7d7191bb93134a071198b6740a8c56cc1a /editeng | |
parent | 7f69bfe2d7b7082b430136815d1aca1fb158868c (diff) |
callcatcher: remove unused methods
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/inc/editeng/brshitem.hxx | 2 | ||||
-rw-r--r-- | editeng/inc/editeng/unonrule.hxx | 1 | ||||
-rw-r--r-- | editeng/source/items/frmitems.cxx | 32 | ||||
-rw-r--r-- | editeng/source/uno/unonrule.cxx | 38 |
4 files changed, 0 insertions, 73 deletions
diff --git a/editeng/inc/editeng/brshitem.hxx b/editeng/inc/editeng/brshitem.hxx index 32726d8de515..b3c314002999 100644 --- a/editeng/inc/editeng/brshitem.hxx +++ b/editeng/inc/editeng/brshitem.hxx @@ -116,7 +116,6 @@ public: SvxGraphicPosition GetGraphicPos() const { return eGraphicPos; } - void PurgeGraphic() const; void PurgeMedium() const; const Graphic* GetGraphic() const; @@ -134,7 +133,6 @@ public: static SvxGraphicPosition WallpaperStyle2GraphicPos( WallpaperStyle eStyle ); static WallpaperStyle GraphicPos2WallpaperStyle( SvxGraphicPosition ePos ); - CntWallpaperItem* CreateCntWallpaperItem() const; }; #endif // #ifndef _SVX_BRSHITEM_HXX diff --git a/editeng/inc/editeng/unonrule.hxx b/editeng/inc/editeng/unonrule.hxx index 34d3c99f719f..5a60957698bd 100644 --- a/editeng/inc/editeng/unonrule.hxx +++ b/editeng/inc/editeng/unonrule.hxx @@ -43,7 +43,6 @@ EDITENG_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexReplace > SvxCreateNumRule( const SvxNumRule* pRule ) throw(); EDITENG_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexReplace > SvxCreateNumRule() throw(); const SvxNumRule& SvxGetNumRule( ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexReplace > xRule ) throw( ::com::sun::star::lang::IllegalArgumentException ); -bool SvxGetNumRule( ::com::sun::star::uno::Reference< ::com::sun::star::container::XIndexReplace > xRule, SvxNumRule& rNumRule ); EDITENG_DLLPUBLIC ::com::sun::star::uno::Reference< ::com::sun::star::ucb::XAnyCompare > SvxCreateNumRuleCompare() throw(); class SvxUnoNumberingRules : public ::cppu::WeakAggImplHelper5< com::sun::star::container::XIndexReplace, com::sun::star::ucb::XAnyCompare, diff --git a/editeng/source/items/frmitems.cxx b/editeng/source/items/frmitems.cxx index 2e2b439878a7..4b711dc523bb 100644 --- a/editeng/source/items/frmitems.cxx +++ b/editeng/source/items/frmitems.cxx @@ -3849,19 +3849,6 @@ SvStream& SvxBrushItem::Store( SvStream& rStream , sal_uInt16 /*nItemVersion*/ ) } // ----------------------------------------------------------------------- -// cast away const, since const is to be understood as a logical const -// if GetGraphic() is called, the item should take care of getting a linked -// graphic. -// ----------------------------------------------------------------------- - -void SvxBrushItem::PurgeGraphic() const -{ - PurgeMedium(); - DELETEZ( pImpl->pGraphicObject ); - ((SvxBrushItem*)this)->bLoadAgain = sal_True; -} - -// ----------------------------------------------------------------------- void SvxBrushItem::PurgeMedium() const { @@ -4076,25 +4063,6 @@ SvxBrushItem::SvxBrushItem( const CntWallpaperItem& rItem, sal_uInt16 _nWhich ) } } -CntWallpaperItem* SvxBrushItem::CreateCntWallpaperItem() const -{ - CntWallpaperItem* pItem = new CntWallpaperItem( 0 ); - pItem->SetColor( aColor.GetColor() ); - pItem->SetStyle( (sal_uInt16)GraphicPos2WallpaperStyle( GetGraphicPos() ) ); - sal_Bool bLink = (pStrLink != 0); - if( bLink ) - { - String aURL = *pStrLink; - pItem->SetBitmapURL( aURL ); - } - if( pImpl->pGraphicObject ) - { - DBG_ERRORFILE( "Don't know what to do with a graphic" ); - } - - return pItem; -} - #ifdef _MSC_VER #pragma optimize ( "", on ) #endif diff --git a/editeng/source/uno/unonrule.cxx b/editeng/source/uno/unonrule.cxx index 8861b6ca125a..d3915e770d21 100644 --- a/editeng/source/uno/unonrule.cxx +++ b/editeng/source/uno/unonrule.cxx @@ -499,44 +499,6 @@ const SvxNumRule& SvxGetNumRule( Reference< XIndexReplace > xRule ) throw( Illeg return pRule->getNumRule(); } -bool SvxGetNumRule( Reference< XIndexReplace > xRule, SvxNumRule& rNumRule ) -{ - SvxUnoNumberingRules* pRule = SvxUnoNumberingRules::getImplementation( xRule ); - if( pRule ) - { - rNumRule = pRule->getNumRule(); - } - else if( xRule.is() ) - { - try - { - pRule = new SvxUnoNumberingRules( rNumRule ); - - Reference< XIndexReplace > xDestRule( pRule ); - - const sal_Int32 nCount = min( xRule->getCount(), xDestRule->getCount() ); - sal_Int32 nLevel; - for( nLevel = 0; nLevel < nCount; nLevel++ ) - { - xDestRule->replaceByIndex( nLevel, xRule->getByIndex( nLevel ) ); - } - - rNumRule = pRule->getNumRule(); - } - catch( Exception& ) - { - return false; - } - } - else - { - return false; - } - - return true; -} - -/////////////////////////////////////////////////////////////////////// com::sun::star::uno::Reference< com::sun::star::container::XIndexReplace > SvxCreateNumRule( const SvxNumRule* pRule ) throw() { DBG_ASSERT( pRule, "No default SvxNumRule!" ); |