diff options
author | Adam Co <rattles2013@gmail.com> | 2014-01-13 17:58:25 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-01-13 16:40:46 +0000 |
commit | 4a68f12691d4fd77652d824ccb4147e8ce643182 (patch) | |
tree | c27b37a5013d61441e3548fbbc6fac3f6158953b /sw/source/core/doc/docfmt.cxx | |
parent | dbd42432c7b8f8149080bb13b103b35f2532eee8 (diff) |
Renamed 'SwRedline' to 'SwRangeRedline'
This is in preparation to adding more types of 'SwRedlines'.
Change-Id: Id61217ed3c4622f7689427ea9f30e364f6bb65d1
Reviewed-on: https://gerrit.libreoffice.org/7410
Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw/source/core/doc/docfmt.cxx')
-rw-r--r-- | sw/source/core/doc/docfmt.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/core/doc/docfmt.cxx b/sw/source/core/doc/docfmt.cxx index 2a09e5987978..e8cc62021f73 100644 --- a/sw/source/core/doc/docfmt.cxx +++ b/sw/source/core/doc/docfmt.cxx @@ -637,7 +637,7 @@ static bool lcl_InsAttr( pUndo->SaveRedlineData( aPam, sal_True ); if( pDoc->IsRedlineOn() ) - pDoc->AppendRedline( new SwRedline( nsRedlineType_t::REDLINE_INSERT, aPam ), true); + pDoc->AppendRedline( new SwRangeRedline( nsRedlineType_t::REDLINE_INSERT, aPam ), true); else pDoc->SplitRedline( aPam ); } @@ -680,7 +680,7 @@ static bool lcl_InsAttr( if( pDoc->IsRedlineOn() ) pDoc->AppendRedline( - new SwRedline( + new SwRangeRedline( bTxtIns ? nsRedlineType_t::REDLINE_INSERT : nsRedlineType_t::REDLINE_FORMAT, aPam ), true); else if( bTxtIns ) @@ -856,7 +856,7 @@ static bool lcl_InsAttr( if( pUndo ) pUndo->SaveRedlineData( aPam, sal_False ); - pDoc->AppendRedline( new SwRedline( nsRedlineType_t::REDLINE_FORMAT, aPam ), true); + pDoc->AppendRedline( new SwRangeRedline( nsRedlineType_t::REDLINE_FORMAT, aPam ), true); } } if( pOtherSet && pOtherSet->Count() ) @@ -873,7 +873,7 @@ static bool lcl_InsAttr( { if( pUndo ) pUndo->SaveRedlineData( rRg, sal_False ); - pDoc->AppendRedline( new SwRedline( nsRedlineType_t::REDLINE_FORMAT, rRg ), true); + pDoc->AppendRedline( new SwRangeRedline( nsRedlineType_t::REDLINE_FORMAT, rRg ), true); } /* now if range */ @@ -2427,7 +2427,7 @@ void SwDoc::SetTxtFmtCollByAutoFmt( const SwPosition& rPos, sal_uInt16 nPoolId, { // create the redline object const SwTxtFmtColl& rColl = *pTNd->GetTxtColl(); - SwRedline* pRedl = new SwRedline( nsRedlineType_t::REDLINE_FMTCOLL, aPam ); + SwRangeRedline* pRedl = new SwRangeRedline( nsRedlineType_t::REDLINE_FMTCOLL, aPam ); pRedl->SetMark(); // Only those items that are not set by the Set again in the Node @@ -2471,7 +2471,7 @@ void SwDoc::SetFmtItemByAutoFmt( const SwPaM& rPam, const SfxItemSet& rSet ) if (mbIsAutoFmtRedline) { // create the redline object - SwRedline* pRedl = new SwRedline( nsRedlineType_t::REDLINE_FORMAT, rPam ); + SwRangeRedline* pRedl = new SwRangeRedline( nsRedlineType_t::REDLINE_FORMAT, rPam ); if( !pRedl->HasMark() ) pRedl->SetMark(); |