diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-27 09:32:52 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-11-28 08:27:56 +0100 |
commit | 3abf4b91dad8fa549457e74185c000e06ba5f019 (patch) | |
tree | 55a8c9e0f2f4e2143c431154f789e418003e4c13 /editeng/source | |
parent | b15b1a2a90fa4c239ff8a6a33e73ff50ea422abf (diff) |
loplugin:unusedmethods
Change-Id: Idbdf2d5d12fad894a3dfc3a86cae839502f42cf6
Reviewed-on: https://gerrit.libreoffice.org/64114
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source')
-rw-r--r-- | editeng/source/editeng/impedit.hxx | 2 | ||||
-rw-r--r-- | editeng/source/editeng/impedit2.cxx | 59 |
2 files changed, 0 insertions, 61 deletions
diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx index 418ef91f6814..2ef1ea099c60 100644 --- a/editeng/source/editeng/impedit.hxx +++ b/editeng/source/editeng/impedit.hxx @@ -861,8 +861,6 @@ public: bool IsInSelectionMode() { return bInSelection; } - void IndentBlock( EditView* pView, bool bRight ); - // For Undo/Redo void Undo( EditView* pView ); void Redo( EditView* pView ); diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx index 8dcf586d3a54..1c5fa806ef7d 100644 --- a/editeng/source/editeng/impedit2.cxx +++ b/editeng/source/editeng/impedit2.cxx @@ -4288,65 +4288,6 @@ void ImpEditEngine::SetValidPaperSize( const Size& rNewSz ) aPaperSize.setHeight( nMaxHeight ); } -void ImpEditEngine::IndentBlock( EditView* pEditView, bool bRight ) -{ - ESelection aESel( CreateESel( pEditView->pImpEditView->GetEditSelection() ) ); - aESel.Adjust(); - - // Only if more selected Paragraphs ... - if ( aESel.nEndPara > aESel.nStartPara ) - { - ESelection aNewSel = aESel; - aNewSel.nStartPos = 0; - aNewSel.nEndPos = EE_TEXTPOS_ALL; - - if ( aESel.nEndPos == 0 ) - { - aESel.nEndPara--; // then not this paragraph ... - aNewSel.nEndPos = 0; - } - - pEditView->pImpEditView->DrawSelectionXOR(); - pEditView->pImpEditView->SetEditSelection( - pEditView->pImpEditView->GetEditSelection().Max() ); - UndoActionStart( bRight ? EDITUNDO_INDENTBLOCK : EDITUNDO_UNINDENTBLOCK ); - - for ( sal_Int32 nPara = aESel.nStartPara; nPara <= aESel.nEndPara; nPara++ ) - { - ContentNode* pNode = GetEditDoc().GetObject( nPara ); - if ( bRight ) - { - // Insert Tabs - EditPaM aPaM( pNode, 0 ); - InsertTab( aPaM ); - } - else - { - // Remove Tabs - const EditCharAttrib* pFeature = pNode->GetCharAttribs().FindFeature( 0 ); - if ( pFeature && ( pFeature->GetStart() == 0 ) && - ( pFeature->GetItem()->Which() == EE_FEATURE_TAB ) ) - { - EditPaM aStartPaM( pNode, 0 ); - EditPaM aEndPaM( pNode, 1 ); - ImpDeleteSelection( EditSelection( aStartPaM, aEndPaM ) ); - } - } - } - - UndoActionEnd(); - UpdateSelections(); - FormatAndUpdate( pEditView ); - - ContentNode* pLastNode = GetEditDoc().GetObject( aNewSel.nEndPara ); - if ( pLastNode->Len() < aNewSel.nEndPos ) - aNewSel.nEndPos = pLastNode->Len(); - pEditView->pImpEditView->SetEditSelection( CreateSel( aNewSel ) ); - pEditView->pImpEditView->DrawSelectionXOR(); - pEditView->pImpEditView->ShowCursor( false, true ); - } -} - std::shared_ptr<SvxForbiddenCharactersTable> const & ImpEditEngine::GetForbiddenCharsTable() { return EditDLL::Get().GetGlobalData()->GetForbiddenCharsTable(); |