summaryrefslogtreecommitdiff
path: root/sd/source/ui/func
diff options
context:
space:
mode:
authorNoel Grandin <noelgrandin@gmail.com>2021-09-01 18:26:29 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2021-09-02 19:08:49 +0200
commitc1c679deca078209bc3008ccd9ccc0a8715929a1 (patch)
tree6f5a1a1207636b4b7f1b0575f36cbf579f7c85af /sd/source/ui/func
parent58da51715425d781b5b8b9b9e412c98daf80b601 (diff)
rename UpdateMode -> UpdateLayout in editeng class
... because "update" is such a generic term I keep forgetting what we are turning on and off Also return the previous value from SetUpdateLayout to make the save/restore code more compact. Change-Id: Iae1764c837a92e58c9b17521f130e8fc80311d22 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/121479 Tested-by: Noel Grandin <noel.grandin@collabora.co.uk> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/func')
-rw-r--r--sd/source/ui/func/fubullet.cxx8
-rw-r--r--sd/source/ui/func/fuexpand.cxx2
-rw-r--r--sd/source/ui/func/fusumry.cxx2
3 files changed, 6 insertions, 6 deletions
diff --git a/sd/source/ui/func/fubullet.cxx b/sd/source/ui/func/fubullet.cxx
index 661b0cb69452..98c346bc8b85 100644
--- a/sd/source/ui/func/fubullet.cxx
+++ b/sd/source/ui/func/fubullet.cxx
@@ -123,7 +123,7 @@ void FuBullet::InsertFormattingMark( sal_Unicode cMark )
// prevent flickering
pOV->HideCursor();
- pOL->SetUpdateMode(false);
+ pOL->SetUpdateLayout(false);
// remove old selected text
pOV->InsertText( "" );
@@ -145,7 +145,7 @@ void FuBullet::InsertFormattingMark( sal_Unicode cMark )
rUndoMgr.LeaveListAction();
// restart repainting
- pOL->SetUpdateMode(true);
+ pOL->SetUpdateLayout(true);
pOV->ShowCursor();
}
@@ -230,7 +230,7 @@ void FuBullet::InsertSpecialCharacter( SfxRequest const & rReq )
// prevent flicker
pOV->HideCursor();
- pOL->SetUpdateMode(false);
+ pOL->SetUpdateLayout(false);
/* remember old attributes:
To do that, remove selected area before (it has to go anyway).
@@ -272,7 +272,7 @@ void FuBullet::InsertSpecialCharacter( SfxRequest const & rReq )
rUndoMgr.LeaveListAction();
// show it again
- pOL->SetUpdateMode(true);
+ pOL->SetUpdateLayout(true);
pOV->ShowCursor();
}
diff --git a/sd/source/ui/func/fuexpand.cxx b/sd/source/ui/func/fuexpand.cxx
index 7b499db91786..73c574395b74 100644
--- a/sd/source/ui/func/fuexpand.cxx
+++ b/sd/source/ui/func/fuexpand.cxx
@@ -88,7 +88,7 @@ void FuExpandPage::DoExecute( SfxRequest& )
return;
SdOutliner aOutliner( mpDoc, OutlinerMode::OutlineObject );
- aOutliner.SetUpdateMode(false);
+ aOutliner.SetUpdateLayout(false);
aOutliner.EnableUndo(false);
if (mpDocSh)
diff --git a/sd/source/ui/func/fusumry.cxx b/sd/source/ui/func/fusumry.cxx
index 8122b43fe67b..522c30897dc7 100644
--- a/sd/source/ui/func/fusumry.cxx
+++ b/sd/source/ui/func/fusumry.cxx
@@ -160,7 +160,7 @@ void FuSummaryPage::DoExecute( SfxRequest& )
pNotesPage->setHeaderFooterSettings(pActualNotesPage->getHeaderFooterSettings());
pOutl.reset(new SdOutliner( mpDoc, OutlinerMode::OutlineObject ));
- pOutl->SetUpdateMode(false);
+ pOutl->SetUpdateLayout(false);
pOutl->EnableUndo(false);
if (mpDocSh)