diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-25 11:24:19 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-26 06:49:31 +0000 |
commit | fe1f1247fad782bdf43322532fdeb1ba9f03135a (patch) | |
tree | c8dfc79901c98bb69c3dd5e2a8ea5ab8cbbe6360 /vcl/source/edit | |
parent | 9c34797cc98030614b384b6ea0f233d59ae82253 (diff) |
loplugin:expandablemethods in vcl
Change-Id: I1876e203d3a3a5fa36d83a9b282ba49429c1da2a
Reviewed-on: https://gerrit.libreoffice.org/30261
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/edit')
-rw-r--r-- | vcl/source/edit/texteng.cxx | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx index 20969d26e8bd..f91e69d8252e 100644 --- a/vcl/source/edit/texteng.cxx +++ b/vcl/source/edit/texteng.cxx @@ -1519,7 +1519,7 @@ void TextEngine::FormatDoc() { const long nOldParaWidth = mnCurTextWidth >= 0 ? CalcTextWidth( nPara ) : -1; - ImpFormattingParagraph( nPara ); + Broadcast( TextHint( TEXT_HINT_FORMATPARA, nPara ) ); if ( CreateLines( nPara ) ) bGrow = true; @@ -1578,14 +1578,14 @@ void TextEngine::FormatDoc() if ( nDiff ) { mbFormatted = true; - ImpTextHeightChanged(); + Broadcast( TextHint( TEXT_HINT_TEXTHEIGHTCHANGED ) ); } } mbIsFormatting = false; mbFormatted = true; - ImpTextFormatted(); + Broadcast( TextHint( TEXT_HINT_TEXTFORMATTED ) ); } void TextEngine::CreateAndInsertEmptyLine( sal_uInt32 nPara ) @@ -2746,21 +2746,6 @@ void TextEngine::ImpCharsInserted( sal_uInt32 nPara, sal_Int32 nPos, sal_Int32 n Broadcast( TextHint( TEXT_HINT_PARACONTENTCHANGED, nPara ) ); } -void TextEngine::ImpFormattingParagraph( sal_uInt32 nPara ) -{ - Broadcast( TextHint( TEXT_HINT_FORMATPARA, nPara ) ); -} - -void TextEngine::ImpTextHeightChanged() -{ - Broadcast( TextHint( TEXT_HINT_TEXTHEIGHTCHANGED ) ); -} - -void TextEngine::ImpTextFormatted() -{ - Broadcast( TextHint( TEXT_HINT_TEXTFORMATTED ) ); -} - void TextEngine::Draw( OutputDevice* pDev, const Point& rPos ) { ImpPaint( pDev, rPos, nullptr ); |