diff options
Diffstat (limited to 'editeng/source')
-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 |
4 files changed, 0 insertions, 196 deletions
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; |