office-gobmx/include/svl
Justin Luth 09df48f87f tdf#161741 undo nits: NeedsClearRedo is private + prioritize TopLevel
moNeedsClearRedo is an implementation detail,
so there should not be public functions for it.

Plus, NeedsClearRedo can be called either against
the CurrentLevel stack or the TopLevel stack
(whatever that implies - there is no documentation...)
and since it is a delayed call that means that
multiple NeedsClearRedo attempts could be made,
theoretically against both stacks.

My initial implementation was "last one wins",
(which may very well prove to be the best one)
but whatever happens, it should be clearly intentional.
Based on my limited skill at code reading,
it sounds like CurrentLevel might be more of an implemention detail
or a temporary expansion of a ListUndoAction,
so I am guessing that any request for TopLevel clearing
should be given priority.

For Writer, it is always clearing the TopLevel stack
  sw/source/core/undo/docundo.cxx: ClearRedo()
    return SdrUndoManager::ImplClearRedo_NoLock(TopLevel);

Change-Id: I195aefb696599f018712135a2e015549d534791f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171984
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Reviewed-by: Justin Luth <jluth@mail.com>
2024-09-06 08:42:31 +02:00
..
adrparse.hxx
asiancfg.hxx
broadcast.hxx
cenumitm.hxx
cintitem.hxx
cjkoptions.hxx
converter.hxx
cryptosign.hxx
ctloptions.hxx
currencytable.hxx
documentlockfile.hxx
eitem.hxx
filenotation.hxx
flagitem.hxx
fstathelper.hxx
globalnameitem.hxx
grabbagitem.hxx tdf#158556 make SfxGrabBagItem hashable 2024-08-23 13:44:26 +02:00
gridprinter.hxx
hint.hxx use less dynamic_cast when broadcasting BulkDataHint 2024-09-04 20:03:40 +02:00
ilstitem.hxx
imageitm.hxx
IndexedStyleSheets.hxx
inethist.hxx use less dynamic_cast when broadcasting SfxHint 2024-09-03 21:41:08 +02:00
inettype.hxx
instrm.hxx
int64item.hxx
intitem.hxx tdf#158556 make SfxInt16Item hashable 2024-08-22 21:59:12 +02:00
itemiter.hxx
itempool.hxx
itemprop.hxx
itemset.hxx
languageoptions.hxx
lckbitem.hxx
legacyitem.hxx
listener.hxx
lngmisc.hxx
lockfilecommon.hxx
lstner.hxx tdf#158556 avoid dynamic_cast 2024-08-20 13:54:16 +02:00
macitem.hxx
memberid.h
metitem.hxx
msodocumentlockfile.hxx
nfengine.hxx
nfkeytab.hxx
nfsymbol.hxx
numformat.hxx
numuno.hxx
ondemand.hxx
outstrm.hxx
ownlist.hxx
PasswordHelper.hxx
pickerhistoryaccess.hxx
poolitem.hxx use less dynamic_cast when broadcasting SfxHint 2024-09-03 21:41:08 +02:00
ptitem.hxx
rectitem.hxx
rngitem.hxx
setitem.hxx
SfxBroadcaster.hxx tdf#158556 prevent lambda from allocating on heap 2024-08-27 17:24:44 +02:00
sharecontrolfile.hxx
sharedstring.hxx
sharedstringpool.hxx
sigstruct.hxx
slstitm.hxx
solar.hrc
srchdefs.hxx
srchitem.hxx
stritem.hxx make SfxStringItem hashable 2024-08-15 16:07:17 +02:00
style.hxx use less dynamic_cast when broadcasting SfxHint 2024-09-03 21:41:08 +02:00
stylepool.hxx tdf#158556 simplify StylePool API 2024-08-26 11:22:25 +02:00
stylesheetuser.hxx
svdde.hxx
svl.hrc
svldllapi.h
svlresid.hxx
typedwhich.hxx
undo.hxx tdf#161741 undo nits: NeedsClearRedo is private + prioritize TopLevel 2024-09-06 08:42:31 +02:00
urihelper.hxx
urlbmk.hxx
visitem.hxx
voiditem.hxx
whichranges.hxx
whiter.hxx
zforlist.hxx
zformat.hxx