diff options
author | Joseph Powers <jpowers27@cox.net> | 2011-08-22 07:40:04 -0700 |
---|---|---|
committer | Joseph Powers <jpowers27@cox.net> | 2011-08-22 08:02:01 -0700 |
commit | 2bf1965f264474ae023e1c431f300fdb62e3e827 (patch) | |
tree | d10d12e7b6f4e3cc95d66938dea838f95f14a20f /editeng/source | |
parent | 117281ba12e703fcd04ca87309dfd4a31432d1c5 (diff) |
unusedcode.easy: Outline cleanup
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/outliner/outlin2.cxx | 104 | ||||
-rw-r--r-- | editeng/source/outliner/outliner.cxx | 34 |
2 files changed, 0 insertions, 138 deletions
diff --git a/editeng/source/outliner/outlin2.cxx b/editeng/source/outliner/outlin2.cxx index a3ba981e7e57..2898eecf7dc9 100644 --- a/editeng/source/outliner/outlin2.cxx +++ b/editeng/source/outliner/outlin2.cxx @@ -158,12 +158,6 @@ void Outliner::SetNotifyHdl( const Link& rLink ) } -Link Outliner::GetNotifyHdl() const -{ - DBG_CHKTHIS(Outliner,0); - return pEditEngine->aOutlinerNotifyHdl; -} - void Outliner::SetStatusEventHdl( const Link& rLink ) { DBG_CHKTHIS(Outliner,0); @@ -182,12 +176,6 @@ void Outliner::SetDefTab( sal_uInt16 nTab ) pEditEngine->SetDefTab( nTab ); } -sal_uInt16 Outliner::GetDefTab() const -{ - DBG_CHKTHIS(Outliner,0); - return pEditEngine->GetDefTab(); -} - sal_Bool Outliner::IsFlatMode() const { DBG_CHKTHIS(Outliner,0); @@ -230,13 +218,6 @@ void Outliner::Draw( OutputDevice* pOutDev, const Rectangle& rOutRect ) pEditEngine->Draw( pOutDev, rOutRect ); } -void Outliner::Draw( OutputDevice* pOutDev, const Rectangle& rOutRect, const Point& rStartDocPos ) -{ - DBG_CHKTHIS(Outliner,0); - pEditEngine->Draw( pOutDev, rOutRect, rStartDocPos ); -} - - void Outliner::Draw( OutputDevice* pOutDev, const Point& rStartPos, short nOrientation ) { DBG_CHKTHIS(Outliner,0); @@ -273,12 +254,6 @@ void Outliner::ClearPolygon() pEditEngine->ClearPolygon(); } -const PolyPolygon* Outliner::GetPolygon() -{ - DBG_CHKTHIS( Outliner, 0 ); - return pEditEngine->GetPolygon(); -} - const Size& Outliner::GetMinAutoPaperSize() const { DBG_CHKTHIS(Outliner,0); @@ -333,12 +308,6 @@ Size Outliner::CalcTextSizeNTP() return Size(pEditEngine->CalcTextWidth(),pEditEngine->GetTextHeightNTP()); } -Point Outliner::GetDocPos( Paragraph* pPara ) -{ - DBG_CHKTHIS(Outliner,0); - return pEditEngine->GetDocPosTopLeft( (sal_uInt16)pParaList->GetAbsPos( pPara ) ); -} - void Outliner::SetStyleSheetPool( SfxStyleSheetPool* pSPool ) { DBG_CHKTHIS(Outliner,0); @@ -381,36 +350,18 @@ void Outliner::SetAsianCompressionMode( sal_uInt16 n ) pEditEngine->SetAsianCompressionMode( n ); } -sal_uInt16 Outliner::GetAsianCompressionMode() const -{ - DBG_CHKTHIS(Outliner,0); - return pEditEngine->GetAsianCompressionMode(); -} - void Outliner::SetKernAsianPunctuation( sal_Bool b ) { DBG_CHKTHIS(Outliner,0); pEditEngine->SetKernAsianPunctuation( b ); } -sal_Bool Outliner::IsKernAsianPunctuation() const -{ - DBG_CHKTHIS(Outliner,0); - return pEditEngine->IsKernAsianPunctuation(); -} - void Outliner::SetAddExtLeading( sal_Bool bExtLeading ) { DBG_CHKTHIS(Outliner,0); pEditEngine->SetAddExtLeading( bExtLeading ); } -sal_Bool Outliner::IsAddExtLeading() const -{ - DBG_CHKTHIS(Outliner,0); - return pEditEngine->IsAddExtLeading(); -} - void Outliner::UndoActionStart( sal_uInt16 nId ) { DBG_CHKTHIS(Outliner,0); @@ -489,12 +440,6 @@ LanguageType Outliner::GetDefaultLanguage() const return pEditEngine->GetDefaultLanguage(); } -sal_Bool Outliner::HasOnlineSpellErrors() const -{ - DBG_CHKTHIS(Outliner,0); - return pEditEngine->HasOnlineSpellErrors(); -} - void Outliner::CompleteOnlineSpelling() { DBG_CHKTHIS(Outliner,0); @@ -543,19 +488,6 @@ void Outliner::SetForbiddenCharsTable( rtl::Reference<SvxForbiddenCharactersTabl pEditEngine->SetForbiddenCharsTable( xForbiddenChars ); } -rtl::Reference<SvxForbiddenCharactersTable> Outliner::GetForbiddenCharsTable() const -{ - DBG_CHKTHIS(Outliner,0); - return pEditEngine->GetForbiddenCharsTable(); -} - - -Reference< XHyphenator > Outliner::GetHyphenator() const -{ - DBG_CHKTHIS(Outliner,0); - return pEditEngine->GetHyphenator(); -} - void Outliner::SetHyphenator( Reference< XHyphenator >& xHyph ) { DBG_CHKTHIS(Outliner,0); @@ -568,12 +500,6 @@ OutputDevice* Outliner::GetRefDevice() const return pEditEngine->GetRefDevice(); } -sal_uInt16 Outliner::GetFirstLineOffset( sal_uLong nParagraph ) -{ - DBG_CHKTHIS(Outliner,0); - return pEditEngine->GetFirstLineOffset( (sal_uInt16)nParagraph ); -} - sal_uLong Outliner::GetTextHeight( sal_uLong nParagraph ) const { DBG_CHKTHIS(Outliner,0); @@ -695,18 +621,6 @@ void Outliner::EraseVirtualDevice() pEditEngine->EraseVirtualDevice(); } -void Outliner::SetBigTextObjectStart( sal_uInt16 nStartAtPortionCount ) -{ - DBG_CHKTHIS(Outliner,0); - pEditEngine->SetBigTextObjectStart( nStartAtPortionCount ); -} - -sal_uInt16 Outliner::GetBigTextObjectStart() const -{ - DBG_CHKTHIS(Outliner,0); - return pEditEngine->GetBigTextObjectStart(); -} - sal_Bool Outliner::ShouldCreateBigTextObject() const { DBG_CHKTHIS(Outliner,0); @@ -731,13 +645,6 @@ void Outliner::SetFixedCellHeight( sal_Bool bUseFixedCellHeight ) pEditEngine->SetFixedCellHeight( bUseFixedCellHeight ); } -sal_Bool Outliner::IsFixedCellHeight() const -{ - DBG_CHKTHIS(Outliner,0); - return pEditEngine->IsFixedCellHeight(); -} - - void Outliner::SetDefaultHorizontalTextDirection( EEHorizontalTextDirection eHTextDir ) { DBG_CHKTHIS(Outliner,0); @@ -773,12 +680,6 @@ void Outliner::EnableAutoColor( sal_Bool b ) pEditEngine->EnableAutoColor( b ); } -sal_Bool Outliner::IsAutoColorEnabled() const -{ - DBG_CHKTHIS(Outliner,0); - return pEditEngine->IsAutoColorEnabled(); -} - void Outliner::ForceAutoColor( sal_Bool b ) { DBG_CHKTHIS(Outliner,0); @@ -796,11 +697,6 @@ void Outliner::StartSpelling(EditView& rEditView, sal_Bool bMultipleDoc) pEditEngine->StartSpelling(rEditView, bMultipleDoc); } -void Outliner::EndSpelling() -{ - pEditEngine->EndSpelling(); -} - bool Outliner::SpellSentence(EditView& rEditView, ::svx::SpellPortions& rToFill, bool bIsGrammarChecking ) { return pEditEngine->SpellSentence(rEditView, rToFill, bIsGrammarChecking ); diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index ce01a1f3d955..253f72ddfeb5 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -704,19 +704,6 @@ void Outliner::SetStyleSheet( sal_uLong nPara, SfxStyleSheet* pStyle ) } } -void Outliner::SetVisible( Paragraph* pPara, sal_Bool bVisible ) -{ - DBG_CHKTHIS(Outliner,0); - DBG_ASSERT( pPara, "SetVisible: pPara = NULL" ); - - if (pPara) - { - pPara->bVisible = bVisible; - sal_uLong nPara = pParaList->GetAbsPos( pPara ); - pEditEngine->ShowParagraph( (sal_uInt16)nPara, bVisible ); - } -} - void Outliner::ImplCheckNumBulletItem( sal_uInt16 nPara ) { Paragraph* pPara = pParaList->GetParagraph( nPara ); @@ -2101,22 +2088,12 @@ void Outliner::SetBeginDropHdl( const Link& rLink ) pEditEngine->SetBeginDropHdl( rLink ); } -Link Outliner::GetBeginDropHdl() const -{ - return pEditEngine->GetBeginDropHdl(); -} - /** sets a link that is called at the end of a drag operation at an edit view */ void Outliner::SetEndDropHdl( const Link& rLink ) { pEditEngine->SetEndDropHdl( rLink ); } -Link Outliner::GetEndDropHdl() const -{ - return pEditEngine->GetEndDropHdl(); -} - /** sets a link that is called before a drop or paste operation. */ void Outliner::SetBeginPasteOrDropHdl( const Link& rLink ) { @@ -2140,17 +2117,6 @@ void Outliner::SetParaFlag( Paragraph* pPara, sal_uInt16 nFlag ) } } -void Outliner::RemoveParaFlag( Paragraph* pPara, sal_uInt16 nFlag ) -{ - if( pPara && pPara->HasFlag( nFlag ) ) - { - if( IsUndoEnabled() && !IsInUndo() ) - InsertUndo( new OutlinerUndoChangeParaFlags( this, (sal_uInt16)GetAbsPos( pPara ), pPara->nFlags, pPara->nFlags & ~nFlag ) ); - - pPara->RemoveFlag( nFlag ); - } -} - bool Outliner::HasParaFlag( const Paragraph* pPara, sal_uInt16 nFlag ) const { return pPara && pPara->HasFlag( nFlag ); |