summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-03-16 15:31:37 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-03-16 22:51:33 +0000
commit98ca3a0d0f70a825dab6b84e37cbb5fd53870f4b (patch)
tree103036279be1437659d305449c6960cb650368e0
parentSome include clean up (diff)
downloadbinfilter-98ca3a0d0f70a825dab6b84e37cbb5fd53870f4b.tar.gz
binfilter-98ca3a0d0f70a825dab6b84e37cbb5fd53870f4b.zip
can remove AddFontItem[s]
-rw-r--r--binfilter/bf_sw/source/filter/writer/sw_writer.cxx38
-rw-r--r--binfilter/inc/bf_sw/shellio.hxx3
2 files changed, 0 insertions, 41 deletions
diff --git a/binfilter/bf_sw/source/filter/writer/sw_writer.cxx b/binfilter/bf_sw/source/filter/writer/sw_writer.cxx
index 53069ed29..2a2a86d21 100644
--- a/binfilter/bf_sw/source/filter/writer/sw_writer.cxx
+++ b/binfilter/bf_sw/source/filter/writer/sw_writer.cxx
@@ -190,44 +190,6 @@ namespace binfilter {
/*N*/ return nRet;
/*N*/ }
-/*N*/ void Writer::_AddFontItems( SfxItemPool& rPool, USHORT nW )
-/*N*/ {
-/*N*/ const SvxFontItem* pFont = (const SvxFontItem*)&rPool.GetDefaultItem( nW );
-/*N*/ _AddFontItem( rPool, *pFont );
-/*N*/
-/*N*/ if( 0 != ( pFont = (const SvxFontItem*)rPool.GetPoolDefaultItem( nW )) )
-/*N*/ _AddFontItem( rPool, *pFont );
-/*N*/
-/*N*/ USHORT nMaxItem = rPool.GetItemCount( nW );
-/*N*/ for( USHORT nGet = 0; nGet < nMaxItem; ++nGet )
-/*N*/ if( 0 != (pFont = (const SvxFontItem*)rPool.GetItem( nW, nGet )) )
-/*N*/ _AddFontItem( rPool, *pFont );
-/*N*/ }
-
-/*N*/ void Writer::_AddFontItem( SfxItemPool& rPool, const SvxFontItem& rFont )
-/*N*/ {
-/*N*/ const SvxFontItem* pItem;
-/*N*/ if( RES_CHRATR_FONT != rFont.Which() )
-/*N*/ {
-/*N*/ SvxFontItem aFont( rFont );
-/*N*/ aFont.SetWhich( RES_CHRATR_FONT );
-/*N*/ pItem = (SvxFontItem*)&rPool.Put( aFont );
-/*N*/ }
-/*N*/ else
-/*?*/ pItem = (SvxFontItem*)&rPool.Put( rFont );
-/*N*/
-/*N*/ if( 1 < pItem->GetRefCount() )
-/*N*/ rPool.Remove( *pItem );
-/*N*/ else
-/*N*/ {
-/*N*/ if( !pImpl->pFontRemoveLst )
-/*N*/ pImpl->pFontRemoveLst = new SvPtrarr( 0, 10 );
-/*N*/
-/*N*/ void* p = (void*)pItem;
-/*N*/ pImpl->pFontRemoveLst->Insert( p, pImpl->pFontRemoveLst->Count() );
-/*N*/ }
-/*N*/ }
-
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/binfilter/inc/bf_sw/shellio.hxx b/binfilter/inc/bf_sw/shellio.hxx
index 83703c543..62e1fc86b 100644
--- a/binfilter/inc/bf_sw/shellio.hxx
+++ b/binfilter/inc/bf_sw/shellio.hxx
@@ -109,9 +109,6 @@ class Writer : public SvRefBase
{
SwAsciiOptions aAscOpts;
- void _AddFontItem( SfxItemPool& rPool, const SvxFontItem& rFont );
- void _AddFontItems( SfxItemPool& rPool, USHORT nWhichId );
-
protected:
Writer_Impl* pImpl;