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 | |
parent | fix leaking 'Pictures' streams from basic dialogs in base (diff) | |
download | core-2bf1965f264474ae023e1c431f300fdb62e3e827.tar.gz core-2bf1965f264474ae023e1c431f300fdb62e3e827.zip |
unusedcode.easy: Outline cleanup
-rw-r--r-- | editeng/inc/editeng/outliner.hxx | 25 | ||||
-rw-r--r-- | editeng/source/outliner/outlin2.cxx | 104 | ||||
-rw-r--r-- | editeng/source/outliner/outliner.cxx | 34 | ||||
-rw-r--r-- | unusedcode.easy | 21 |
4 files changed, 0 insertions, 184 deletions
diff --git a/editeng/inc/editeng/outliner.hxx b/editeng/inc/editeng/outliner.hxx index 2cd13bee71f1..8fc3e576f3a4 100644 --- a/editeng/inc/editeng/outliner.hxx +++ b/editeng/inc/editeng/outliner.hxx @@ -710,7 +710,6 @@ public: sal_Bool IsVertical() const; void SetFixedCellHeight( sal_Bool bUseFixedCellHeight ); - sal_Bool IsFixedCellHeight() const; void SetDefaultHorizontalTextDirection( EEHorizontalTextDirection eHTextDir ); EEHorizontalTextDirection GetDefaultHorizontalTextDirection() const; @@ -719,13 +718,10 @@ public: LanguageType GetLanguage( sal_uInt16 nPara, sal_uInt16 nPos ) const; void SetAsianCompressionMode( sal_uInt16 nCompressionMode ); - sal_uInt16 GetAsianCompressionMode() const; void SetKernAsianPunctuation( sal_Bool bEnabled ); - sal_Bool IsKernAsianPunctuation() const; void SetAddExtLeading( sal_Bool b ); - sal_Bool IsAddExtLeading() const; size_t InsertView( OutlinerView* pView, size_t nIndex = size_t(-1) ); OutlinerView* RemoveView( OutlinerView* pView ); @@ -774,7 +770,6 @@ public: sal_Int16 GetDepth( sal_uLong nPara ) const; void SetDepth( Paragraph* pParagraph, sal_Int16 nNewDepth ); - void SetVisible( Paragraph* pPara, sal_Bool bVisible ); sal_Bool IsVisible( Paragraph* pPara ) const { return pPara->IsVisible(); } void EnableUndo( sal_Bool bEnable ); @@ -839,13 +834,11 @@ public: Link GetModifyHdl() const; void SetNotifyHdl( const Link& rLink ); - Link GetNotifyHdl() const; void SetStatusEventHdl( const Link& rLink ); Link GetStatusEventHdl() const; void Draw( OutputDevice* pOutDev, const Rectangle& rOutRect ); - void Draw( OutputDevice* pOutDev, const Rectangle& rOutRect, const Point& rStartDocPos ); void Draw( OutputDevice* pOutDev, const Point& rStartPos, short nOrientation = 0 ); const Size& GetPaperSize() const; @@ -857,7 +850,6 @@ public: void SetPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon ); void SetPolygon( const basegfx::B2DPolyPolygon& rPolyPolygon, const basegfx::B2DPolyPolygon* pLinePolyPolygon); void ClearPolygon(); - const PolyPolygon* GetPolygon(); const Size& GetMinAutoPaperSize() const; void SetMinAutoPaperSize( const Size& rSz ); @@ -866,13 +858,11 @@ public: void SetMaxAutoPaperSize( const Size& rSz ); void SetDefTab( sal_uInt16 nTab ); - sal_uInt16 GetDefTab() const; sal_Bool IsFlatMode() const; void SetFlatMode( sal_Bool bFlat ); void EnableAutoColor( sal_Bool b ); - sal_Bool IsAutoColorEnabled() const; void ForceAutoColor( sal_Bool b ); sal_Bool IsForceAutoColor() const; @@ -908,8 +898,6 @@ public: Size CalcTextSize(); Size CalcTextSizeNTP(); - Point GetDocPos( Paragraph* pPara ); - void SetStyleSheetPool( SfxStyleSheetPool* pSPool ); SfxStyleSheetPool* GetStyleSheetPool(); @@ -926,7 +914,6 @@ public: sal_Bool Collapse( Paragraph* ); void SetParaFlag( Paragraph* pPara, sal_uInt16 nFlag ); - void RemoveParaFlag( Paragraph* pPara, sal_uInt16 nFlag ); bool HasParaFlag( const Paragraph* pPara, sal_uInt16 nFlag ) const; // Returns an array containing the widths of the Bullet Indentations @@ -974,20 +961,15 @@ public: ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XSpellChecker1 > GetSpeller(); - ::com::sun::star::uno::Reference< - ::com::sun::star::linguistic2::XHyphenator > - GetHyphenator() const; void SetHyphenator( ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XHyphenator >& xHyph ); void SetForbiddenCharsTable( rtl::Reference<SvxForbiddenCharactersTable> xForbiddenChars ); - rtl::Reference<SvxForbiddenCharactersTable> GetForbiddenCharsTable() const; // Depricated void SetDefaultLanguage( LanguageType eLang ); LanguageType GetDefaultLanguage() const; - sal_Bool HasOnlineSpellErrors() const; void CompleteOnlineSpelling(); EESpellState HasSpellErrors(); @@ -1004,8 +986,6 @@ public: void SetRefDevice( OutputDevice* pRefDev ); OutputDevice* GetRefDevice() const; - sal_uInt16 GetFirstLineOffset( sal_uLong nParagraph ); - sal_uLong GetTextHeight() const; sal_uLong GetTextHeight( sal_uLong nParagraph ) const; Point GetDocPosTopLeft( sal_uLong nParagraph ); @@ -1018,8 +998,6 @@ public: void DoStretchChars( sal_uInt16 nX, sal_uInt16 nY ); void EraseVirtualDevice(); - void SetBigTextObjectStart( sal_uInt16 nStartAtPortionCount ); - sal_uInt16 GetBigTextObjectStart() const; sal_Bool ShouldCreateBigTextObject() const; const EditEngine& GetEditEngine() const { return *((EditEngine*)pEditEngine); } @@ -1036,15 +1014,12 @@ public: void PutSpellingToSentenceStart( EditView& rEditView ); // applies a changed sentence void ApplyChangedSentence(EditView& rEditView, const ::svx::SpellPortions& rNewPortions, bool bRecheck ); - void EndSpelling(); /** sets a link that is called at the beginning of a drag operation at an edit view */ void SetBeginDropHdl( const Link& rLink ); - Link GetBeginDropHdl() const; /** sets a link that is called at the end of a drag operation at an edit view */ void SetEndDropHdl( const Link& rLink ); - Link GetEndDropHdl() const; /** sets a link that is called before a drop or paste operation. */ void SetBeginPasteOrDropHdl( const Link& rLink ); 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 ); diff --git a/unusedcode.easy b/unusedcode.easy index 6b5984c78414..fcaa4ed84aa0 100644 --- a/unusedcode.easy +++ b/unusedcode.easy @@ -431,27 +431,6 @@ OpenStormBento::CUtList::GetCount() OpenStormBento::CUtList::GetIndex(OpenStormBento::CUtListElmt*) OpenStormBento::CUtList::GetIndex(int) OpenStormBento::CUtList::GetPrevOrNULL(OpenStormBento::CUtListElmt*) -Outliner::Draw(OutputDevice*, Rectangle const&, Point const&) -Outliner::EndSpelling() -Outliner::GetAsianCompressionMode() const -Outliner::GetBeginDropHdl() const -Outliner::GetBigTextObjectStart() const -Outliner::GetDefTab() const -Outliner::GetDocPos(Paragraph*) -Outliner::GetEndDropHdl() const -Outliner::GetFirstLineOffset(unsigned long) -Outliner::GetForbiddenCharsTable() const -Outliner::GetHyphenator() const -Outliner::GetNotifyHdl() const -Outliner::GetPolygon() -Outliner::HasOnlineSpellErrors() const -Outliner::IsAddExtLeading() const -Outliner::IsAutoColorEnabled() const -Outliner::IsFixedCellHeight() const -Outliner::IsKernAsianPunctuation() const -Outliner::RemoveParaFlag(Paragraph*, unsigned short) -Outliner::SetBigTextObjectStart(unsigned short) -Outliner::SetVisible(Paragraph*, unsigned char) OutlinerView::AdjustDepth(Paragraph*, short, unsigned char) OutlinerView::AdjustHeight(Paragraph*, long, unsigned char) OutlinerView::Collapse(Paragraph*) |