summaryrefslogtreecommitdiffstats
path: root/sw/source/ui/shells
diff options
context:
space:
mode:
authorAdam Co <rattles2013@gmail.com>2014-01-13 17:58:25 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-01-13 16:40:46 +0000
commit4a68f12691d4fd77652d824ccb4147e8ce643182 (patch)
treec27b37a5013d61441e3548fbbc6fac3f6158953b /sw/source/ui/shells
parentfdo#69613: Code changes for TOC with flag '\x' should get preserved after RT. (diff)
downloadcore-4a68f12691d4fd77652d824ccb4147e8ce643182.tar.gz
core-4a68f12691d4fd77652d824ccb4147e8ce643182.zip
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/ui/shells')
-rw-r--r--sw/source/ui/shells/textfld.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/sw/source/ui/shells/textfld.cxx b/sw/source/ui/shells/textfld.cxx
index ca167c05f8d0..c19ba32b57b5 100644
--- a/sw/source/ui/shells/textfld.cxx
+++ b/sw/source/ui/shells/textfld.cxx
@@ -398,18 +398,18 @@ void SwTextShell::ExecField(SfxRequest &rReq)
/* this code can be used once we want redline comments in the margin, all other stuff can
then be deleted
String sComment;
- const SwRedline *pRedline = rSh.GetCurrRedline();
+ const SwRangeRedline *pRedline = rSh.GetCurrRedline();
if (pRedline)
{
sComment = pRedline->GetComment();
if ( !sComment.Len() )
GetView().GetDocShell()->Broadcast(SwRedlineHint(pRedline,SWREDLINE_INSERTED));
- const_cast<SwRedline*>(pRedline)->Broadcast(SwRedlineHint(pRedline,SWREDLINE_FOCUS,&GetView()));
+ const_cast<SwRangeRedline*>(pRedline)->Broadcast(SwRedlineHint(pRedline,SWREDLINE_FOCUS,&GetView()));
}
*/
- const SwRedline *pRedline = rSh.GetCurrRedline();
+ const SwRangeRedline *pRedline = rSh.GetCurrRedline();
if (pRedline)
{
@@ -433,7 +433,7 @@ void SwTextShell::ExecField(SfxRequest &rReq)
rSh.StartAction();
rSh.Push();
- const SwRedline *pActRed = rSh.SelPrevRedline();
+ const SwRangeRedline *pActRed = rSh.SelPrevRedline();
if (pActRed == pRedline)
{ // New cursor is at the beginning of the current redlines.
@@ -829,7 +829,7 @@ IMPL_LINK( SwTextShell, RedlineNextHdl, AbstractSvxPostItDialog *, pBtn )
// Insert or change a comment.
pSh->SetRedlineComment(pDlg->GetNote());
- const SwRedline *pRedline = pSh->GetCurrRedline();
+ const SwRangeRedline *pRedline = pSh->GetCurrRedline();
if (pRedline)
{
@@ -838,7 +838,7 @@ IMPL_LINK( SwTextShell, RedlineNextHdl, AbstractSvxPostItDialog *, pBtn )
pSh->SwapPam(); // Move the cursor behind the Redline.
pSh->Push();
- const SwRedline *pActRed = pSh->SelNextRedline();
+ const SwRangeRedline *pActRed = pSh->SelNextRedline();
pSh->Pop(pActRed != 0);
sal_Bool bEnable = sal_False;
@@ -882,13 +882,13 @@ IMPL_LINK( SwTextShell, RedlinePrevHdl, AbstractSvxPostItDialog *, pBtn )
// Insert or change a comment.
pSh->SetRedlineComment(pDlg->GetNote());
- const SwRedline *pRedline = pSh->GetCurrRedline();
+ const SwRangeRedline *pRedline = pSh->GetCurrRedline();
if (pRedline)
{
// Traveling only if more than one field.
pSh->Push();
- const SwRedline *pActRed = pSh->SelPrevRedline();
+ const SwRangeRedline *pActRed = pSh->SelPrevRedline();
pSh->Pop(pActRed != 0);
sal_Bool bEnable = sal_False;