diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-09 10:26:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-11-09 10:34:31 +0000 |
commit | 30e39e4793bbfe59a53b41422b5d86a03cfe31d3 (patch) | |
tree | 989d282b0ef9b180e56a69a946d69aba17c92ead /editeng/source/outliner | |
parent | 0e0e3ea312dc09de6726318c3579671fec7de7ee (diff) |
loplugin:expandablemethods in drawinglayer..editeng
Change-Id: Ic7fe13651e18b4eec90ef3fd8d7aab81197e0f39
Reviewed-on: https://gerrit.libreoffice.org/30707
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source/outliner')
-rw-r--r-- | editeng/source/outliner/outlin2.cxx | 5 | ||||
-rw-r--r-- | editeng/source/outliner/outliner.cxx | 11 |
2 files changed, 2 insertions, 14 deletions
diff --git a/editeng/source/outliner/outlin2.cxx b/editeng/source/outliner/outlin2.cxx index 927b947b3d2a..3248ba34f51e 100644 --- a/editeng/source/outliner/outlin2.cxx +++ b/editeng/source/outliner/outlin2.cxx @@ -551,11 +551,6 @@ EEHorizontalTextDirection Outliner::GetDefaultHorizontalTextDirection() const return pEditEngine->GetDefaultHorizontalTextDirection(); } -SvtScriptType Outliner::GetScriptType( const ESelection& rSelection ) const -{ - return pEditEngine->GetScriptType( rSelection ); -} - LanguageType Outliner::GetLanguage( sal_Int32 nPara, sal_Int32 nPos ) const { return pEditEngine->GetLanguage( nPara, nPos ); diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx index e9ff45b7d053..ccd8b9a99e48 100644 --- a/editeng/source/outliner/outliner.cxx +++ b/editeng/source/outliner/outliner.cxx @@ -168,7 +168,7 @@ void Outliner::ParagraphDeleted( sal_Int32 nPara ) if( !pEditEngine->IsInUndo() ) { - ParagraphRemovingHdl(pPara); + aParaRemovingHdl.Call( { this, pPara } ); } pParaList->Remove( nPara ); @@ -820,7 +820,7 @@ vcl::Font Outliner::ImpCalcBulletFont( sal_Int32 nPara ) const if ( !pEditEngine->IsFlatMode() ) { ESelection aSel( nPara, 0, nPara, 0 ); - aStdFont = EditEngine::CreateFontFromItemSet( pEditEngine->GetAttribs( aSel ), GetScriptType( aSel ) ); + aStdFont = EditEngine::CreateFontFromItemSet( pEditEngine->GetAttribs( aSel ), pEditEngine->GetScriptType( aSel ) ); } else { @@ -1344,13 +1344,6 @@ void Outliner::ParagraphInsertedHdl(Paragraph* pPara) } -void Outliner::ParagraphRemovingHdl(Paragraph* pPara) -{ - if( !IsInUndo() ) - aParaRemovingHdl.Call( { this, pPara } ); -} - - void Outliner::DepthChangedHdl(Paragraph* pPara, ParaFlag nPrevFlags) { if( !IsInUndo() ) |