diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-09-30 09:08:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-30 09:09:27 +0100 |
commit | acc5c0734cf1d403c2ae9e70010e216563718e25 (patch) | |
tree | b8bf66a45dbcd00d56fc425a38fb37468be6cd36 /editeng | |
parent | 11cc59815a3eb72fe1d2a50ad4e27d8716cc5642 (diff) |
callcatcher: remove newly unused code
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/inc/editeng/editview.hxx | 7 | ||||
-rw-r--r-- | editeng/inc/editeng/outliner.hxx | 5 | ||||
-rw-r--r-- | editeng/source/editeng/editview.cxx | 52 | ||||
-rw-r--r-- | editeng/source/outliner/outlvw.cxx | 97 | ||||
-rw-r--r-- | editeng/source/outliner/paralist.cxx | 44 | ||||
-rw-r--r-- | editeng/source/outliner/paralist.hxx | 3 |
6 files changed, 0 insertions, 208 deletions
diff --git a/editeng/inc/editeng/editview.hxx b/editeng/inc/editeng/editview.hxx index 09ad527f4a43..288d865a8acc 100644 --- a/editeng/inc/editeng/editview.hxx +++ b/editeng/inc/editeng/editview.hxx @@ -157,14 +157,10 @@ public: void Paste(); void PasteSpecial(); - void EnablePaste( sal_Bool bEnable ); - sal_Bool IsPasteEnabled() const; - void Undo(); void Redo(); // especially for Oliver Specht - sal_uInt16 GetParagraph( const Point& rMousePosPixel ); Point GetWindowPosTopLeft( sal_uInt16 nParagraph ); void MoveParagraphs( Range aParagraphs, sal_uInt16 nNewPos ); void MoveParagraphs( long nDiff ); @@ -196,7 +192,6 @@ public: void ForceUpdate(); SfxStyleSheet* GetStyleSheet() const; - void SetStyleSheet( SfxStyleSheet* pStyle ); void SetAnchorMode( EVAnchorMode eMode ); EVAnchorMode GetAnchorMode() const; @@ -217,7 +212,6 @@ public: sal_Bool IsCursorAtWrongSpelledWord( sal_Bool bMarkIfWrong = sal_False ); sal_Bool IsWrongSpelledWordAtPos( const Point& rPosPixel, sal_Bool bMarkIfWrong = sal_False ); - void SpellIgnoreWord(); void ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack = 0 ); void InsertField( const SvxFieldItem& rFld ); @@ -227,7 +221,6 @@ public: const SvxFieldItem* GetFieldAtSelection() const; - String GetWordUnderMousePointer() const; String GetWordUnderMousePointer( Rectangle& rWordRect ) const; void SetInvalidateMore( sal_uInt16 nPixel ); diff --git a/editeng/inc/editeng/outliner.hxx b/editeng/inc/editeng/outliner.hxx index 23dfe65181da..319b6738b65f 100644 --- a/editeng/inc/editeng/outliner.hxx +++ b/editeng/inc/editeng/outliner.hxx @@ -238,11 +238,6 @@ private: EDITENG_DLLPRIVATE void ImpHideDDCursor(); EDITENG_DLLPRIVATE void ImpPaintDDCursor(); - EDITENG_DLLPRIVATE void ImpScrollLeft(); - EDITENG_DLLPRIVATE void ImpScrollRight(); - EDITENG_DLLPRIVATE void ImpScrollUp(); - EDITENG_DLLPRIVATE void ImpScrollDown(); - EDITENG_DLLPRIVATE Pointer ImpGetMousePointer( MouseTarget eTarget ); EDITENG_DLLPRIVATE sal_uInt16 ImpInitPaste( sal_uLong& rStart ); EDITENG_DLLPRIVATE void ImpPasted( sal_uLong nStart, sal_uLong nPrevParaCount, sal_uInt16 nSize); diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx index 57efd1e5f70d..c0a64d18a0e2 100644 --- a/editeng/source/editeng/editview.cxx +++ b/editeng/source/editeng/editview.cxx @@ -632,20 +632,6 @@ void EditView::PasteSpecial() pImpEditView->Paste(aClipBoard, sal_True ); } -void EditView::EnablePaste( sal_Bool bEnable ) -{ - DBG_CHKTHIS( EditView, 0 ); - DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 ); - pImpEditView->EnablePaste( bEnable ); -} - -sal_Bool EditView::IsPasteEnabled() const -{ - DBG_CHKTHIS( EditView, 0 ); - DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 ); - return pImpEditView->IsPasteEnabled(); -} - Point EditView::GetWindowPosTopLeft( sal_uInt16 nParagraph ) { DBG_CHKTHIS( EditView, 0 ); @@ -654,17 +640,6 @@ Point EditView::GetWindowPosTopLeft( sal_uInt16 nParagraph ) return pImpEditView->GetWindowPos( aDocPos ); } -sal_uInt16 EditView::GetParagraph( const Point& rMousePosPixel ) -{ - DBG_CHKTHIS( EditView, 0 ); - DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 ); - Point aMousePos( rMousePosPixel ); - aMousePos = GetWindow()->PixelToLogic( aMousePos ); - Point aDocPos( pImpEditView->GetDocPos( aMousePos ) ); - sal_uInt16 nParagraph = PIMPEE->GetParaPortions().FindParagraph( aDocPos.Y() ); - return nParagraph; -} - EESelectionMode EditView::GetSelectionMode() const { DBG_CHKTHIS( EditView, 0 ); @@ -801,17 +776,6 @@ void EditView::ForceUpdate() PIMPEE->SetUpdateMode( sal_True, this, sal_True ); } -void EditView::SetStyleSheet( SfxStyleSheet* pStyle ) -{ - DBG_CHKTHIS( EditView, 0 ); - DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 ); - - EditSelection aSel( pImpEditView->GetEditSelection() ); - PIMPEE->UndoActionStart( EDITUNDO_STYLESHEET ); - PIMPEE->SetStyleSheet( aSel, pStyle ); - PIMPEE->UndoActionEnd( EDITUNDO_STYLESHEET ); -} - SfxStyleSheet* EditView::GetStyleSheet() const { DBG_CHKTHIS( EditView, 0 ); @@ -1262,13 +1226,6 @@ void EditView::ExecuteSpellPopup( const Point& rPosPixel, Link* pCallBack ) } } -void EditView::SpellIgnoreWord() -{ - DBG_CHKTHIS( EditView, 0 ); - DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 ); - pImpEditView->SpellIgnoreOrAddWord( sal_False ); -} - sal_Bool EditView::SelectCurrentWord( sal_Int16 nWordType ) { DBG_CHKTHIS( EditView, 0 ); @@ -1347,15 +1304,6 @@ const SvxFieldItem* EditView::GetFieldAtSelection() const return 0; } -XubString EditView::GetWordUnderMousePointer() const -{ - DBG_CHKTHIS( EditView, 0 ); - DBG_CHKOBJ( pImpEditView->pEditEngine, EditEngine, 0 ); - - Rectangle aRect; - return GetWordUnderMousePointer( aRect ); -} - XubString EditView::GetWordUnderMousePointer( Rectangle& rWordRect ) const { DBG_CHKTHIS( EditView, 0 ); diff --git a/editeng/source/outliner/outlvw.cxx b/editeng/source/outliner/outlvw.cxx index 2c87222b5675..529c58368320 100644 --- a/editeng/source/outliner/outlvw.cxx +++ b/editeng/source/outliner/outlvw.cxx @@ -693,103 +693,6 @@ Rectangle OutlinerView::GetVisArea() const return pEditView->GetVisArea(); } -void OutlinerView::ImpScrollLeft() -{ - DBG_CHKTHIS(OutlinerView,0); - Rectangle aVisArea( pEditView->GetVisArea() ); - long nMaxScrollOffs = aVisArea.Left(); - if ( !nMaxScrollOffs ) - return; - long nScrollOffsRef = (aVisArea.GetWidth() * OL_SCROLL_HOROFFSET) / 100; - if ( !nScrollOffsRef ) - nScrollOffsRef = 1; - if ( nScrollOffsRef > nMaxScrollOffs ) - nScrollOffsRef = nMaxScrollOffs; - - ImpHideDDCursor(); - Scroll( -nScrollOffsRef, 0 ); - - EditStatus aScrollStat; - aScrollStat.GetStatusWord() = EE_STAT_HSCROLL; - pOwner->pEditEngine->GetStatusEventHdl().Call( &aScrollStat ); -} - - -void OutlinerView::ImpScrollRight() -{ - DBG_CHKTHIS(OutlinerView,0); - Rectangle aVisArea( pEditView->GetVisArea() ); - long nMaxScrollOffs = pOwner->pEditEngine->GetPaperSize().Width() - - aVisArea.Right(); - if ( !nMaxScrollOffs ) - return; - long nScrollOffsRef = (aVisArea.GetWidth() * OL_SCROLL_HOROFFSET) / 100; - if ( !nScrollOffsRef ) - nScrollOffsRef = 1; - if ( nScrollOffsRef > nMaxScrollOffs ) - nScrollOffsRef = nMaxScrollOffs; - - ImpHideDDCursor(); - Scroll( nScrollOffsRef, 0 ); - - EditStatus aScrollStat; - aScrollStat.GetStatusWord() = EE_STAT_HSCROLL; - pOwner->pEditEngine->GetStatusEventHdl().Call( &aScrollStat ); -} - - -void OutlinerView::ImpScrollDown() -{ - DBG_CHKTHIS(OutlinerView,0); - Rectangle aVisArea( pEditView->GetVisArea() ); - Size aDocSize( 0, (long)pOwner->pEditEngine->GetTextHeight() ); - - long nMaxScrollOffs = aDocSize.Height(); - nMaxScrollOffs -= aVisArea.Top(); - nMaxScrollOffs -= aVisArea.GetHeight(); - if ( !nMaxScrollOffs ) - return; - - long nScrollOffsRef = (aVisArea.GetHeight() * OL_SCROLL_VEROFFSET) / 100; - - if ( nScrollOffsRef > nMaxScrollOffs ) - nScrollOffsRef = nMaxScrollOffs; - if ( !nScrollOffsRef ) - nScrollOffsRef = 1; - - ImpHideDDCursor(); - Scroll( 0, -nScrollOffsRef ); - - EditStatus aScrollStat; - aScrollStat.GetStatusWord() = EE_STAT_VSCROLL; - pOwner->pEditEngine->GetStatusEventHdl().Call( &aScrollStat ); -} - - -void OutlinerView::ImpScrollUp() -{ - DBG_CHKTHIS(OutlinerView,0); - Rectangle aVisArea( pEditView->GetVisArea() ); - long nMaxScrollOffs = aVisArea.Top(); - if ( !nMaxScrollOffs ) - return; - long nScrollOffsRef = (aVisArea.GetHeight() * OL_SCROLL_VEROFFSET) / 100; - - - if ( nScrollOffsRef > nMaxScrollOffs ) - nScrollOffsRef = nMaxScrollOffs; - if ( !nScrollOffsRef ) - nScrollOffsRef = 1; - - ImpHideDDCursor(); - Scroll( 0, nScrollOffsRef ); - - EditStatus aScrollStat; - aScrollStat.GetStatusWord() = EE_STAT_VSCROLL; - pOwner->pEditEngine->GetStatusEventHdl().Call( &aScrollStat ); -} - - void OutlinerView::Expand() { DBG_CHKTHIS( OutlinerView, 0 ); diff --git a/editeng/source/outliner/paralist.cxx b/editeng/source/outliner/paralist.cxx index c09e0f22d90f..37effdf1c9ef 100644 --- a/editeng/source/outliner/paralist.cxx +++ b/editeng/source/outliner/paralist.cxx @@ -180,34 +180,6 @@ void ParagraphList::MoveParagraphs( sal_uLong nStart, sal_uLong nDest, sal_uLong } } -Paragraph* ParagraphList::NextVisible( Paragraph* pPara ) const -{ - std::vector<Paragraph*>::const_iterator iter = std::find(maEntries.begin(), - maEntries.end(), - pPara); - for (; iter != maEntries.end(); ++iter) - { - if ((*iter)->IsVisible()) - break; - } - - return iter != maEntries.end() ? *iter : NULL; -} - -Paragraph* ParagraphList::PrevVisible( Paragraph* pPara ) const -{ - std::vector<Paragraph*>::const_reverse_iterator iter = std::find(maEntries.rbegin(), - maEntries.rend(), - pPara); - for (; iter != maEntries.rend(); ++iter) - { - if ((*iter)->IsVisible()) - break; - } - - return iter != maEntries.rend() ? *iter : NULL; -} - Paragraph* ParagraphList::LastVisible() const { std::vector<Paragraph*>::const_reverse_iterator iter; @@ -314,20 +286,4 @@ sal_uLong ParagraphList::GetAbsPos( Paragraph* pParent ) const return ~0; } -sal_uLong ParagraphList::GetVisPos( Paragraph* pPara ) const -{ - sal_uLong nVisPos = 0; - std::vector<Paragraph*>::const_iterator iter; - for (iter = maEntries.begin(); iter != maEntries.end(); ++iter, ++nVisPos) - { - if (*iter == pPara) - break; - - if ((*iter)->IsVisible()) - ++nVisPos; - } - - return nVisPos; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/editeng/source/outliner/paralist.hxx b/editeng/source/outliner/paralist.hxx index 29398c24239e..d57455168863 100644 --- a/editeng/source/outliner/paralist.hxx +++ b/editeng/source/outliner/paralist.hxx @@ -51,15 +51,12 @@ public: } sal_uLong GetAbsPos( Paragraph* pParent ) const; - sal_uLong GetVisPos( Paragraph* pParagraph ) const; void Append( Paragraph *pPara); void Insert( Paragraph* pPara, sal_uLong nAbsPos); void Remove( sal_uLong nPara ); void MoveParagraphs( sal_uLong nStart, sal_uLong nDest, sal_uLong nCount ); - Paragraph* NextVisible( Paragraph* ) const; - Paragraph* PrevVisible( Paragraph* ) const; Paragraph* LastVisible() const; Paragraph* GetParent( Paragraph* pParagraph /*, sal_uInt16& rRelPos */ ) const; |