office-gobmx/sw/inc
Mike Kaganski a9ac0a7f6c tdf#144717: fix SwInsFootNoteDlg's next/prev button state check
Trying to move the current cursor, which may actually be a selection,
to find next/prev footnore, may try to expand the selection across a
table boundary (from outside to inside), which would fail. This was
incorrectly treated as "there's no next/prev footnote, the cursor is
unchanged" case, and the cursor wasn't restored.

Use a separate local cursor object for testing; and make it at least
somewhat useful, to detect the case when there's no more footnotes
in the document, so the prev/next buttons would get disabled.

Change-Id: I7db100dfdd290fe01b3eebe17f1dec2784315243
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176399
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2024-11-11 18:25:48 +01:00
..
pch move vcl::DeleteOnDeinit to tools 2024-10-22 08:01:19 +02:00
AccessibilityCheckStrings.hrc
accessibilityoptions.hxx
accmap.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-25 13:45:31 +02:00
acmplwrd.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-25 13:45:31 +02:00
anchoreddrawobject.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-25 13:45:31 +02:00
anchoredobject.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-25 13:45:31 +02:00
AnnotationWin.hxx loplugin:unusedmethods 2024-10-16 15:52:02 +02:00
app.hrc
authfld.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-25 13:45:31 +02:00
authratr.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-25 13:45:31 +02:00
autostyle_helper.hxx
bitmaps.hlst Resolves tdf148513 - Illustration for line break options 2024-10-24 10:04:17 +02:00
BorderCacheOwner.hxx
bparr.hxx
breakit.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-25 13:45:31 +02:00
calbck.hxx convert SwFindNearestNode to regular class 2024-09-04 09:49:08 +02:00
calc.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-25 13:45:31 +02:00
ccoll.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-25 13:45:31 +02:00
cellatr.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-25 13:45:31 +02:00
cellfml.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-25 13:45:31 +02:00
charatr.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-25 13:45:31 +02:00
charfmt.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-25 13:45:31 +02:00
charformats.hxx
checkit.hxx
chpfld.hxx tdf#143148 use pragma once instead of include guards 2024-11-02 09:03:43 +01:00
cmdid.h sw: add .uno:DeleteContentControl command 2024-11-07 08:27:11 +01:00
cnttab.hrc
colwd.hxx tdf#143148 use pragma once instead of include guards 2024-11-04 13:20:37 +01:00
comcore.hxx
contentindex.hxx SwContentIndex owner pointers 2024-08-12 13:08:42 +02:00
coreframestyle.hxx
crsrsh.hxx tdf#48459 sw inline heading: apply it on the selected words 2024-10-26 17:35:09 +02:00
crstate.hxx
cshtyp.hxx
dbfld.hxx
dbgoutsw.hxx
dbmgr.hxx
dbui.hrc
dcontact.hxx fix ubsan, partially revert 2024-09-10 08:03:48 +02:00
ddefld.hxx tdf#143148 use pragma once instead of include guards 2024-11-11 12:47:54 +01:00
deletelistener.hxx
dlelstnr.hxx
dobjfac.hxx
doc.hxx drop newly unused Broadcast argument 2024-10-22 09:16:52 +02:00
docary.hxx
docfac.hxx
docfunc.hxx
docsh.hxx loplugin:passstuffbyref in sw 2024-11-07 15:15:01 +01:00
docstat.hxx
docstyle.hxx set stylesheet parent at creation time 2024-10-22 08:01:03 +02:00
docufld.hxx Make tools::Time ctor taking sal_Int64 private 2024-10-21 10:30:58 +02:00
dpage.hxx
drawdoc.hxx
edglbldc.hxx
edimp.hxx
editsh.hxx tdf#162326 remove character formats and styles on style apply 2024-09-23 20:20:28 +02:00
EnhancedPDFExportHelper.hxx
error.hrc
expfld.hxx
extinput.hxx
fchrfmt.hxx
fesh.hxx
finalthreadmanager.hxx
fldbas.hxx
flddat.hxx
flddinf.hrc
flddropdown.hxx
fldref.hrc
fldupde.hxx
flyenum.hxx
flypos.hxx
fmtanchr.hxx
fmtautofmt.hxx
fmtclbl.hxx
fmtclds.hxx
fmtcnct.hxx
fmtcntnt.hxx
fmtcol.hxx
fmtcolfunc.hxx
fmteiro.hxx
fmtflcnt.hxx
fmtfld.hxx use less dynamic_cast when broadcasting SfxHint in sw 2024-09-03 21:41:19 +02:00
fmtfollowtextflow.hxx
fmtfordr.hxx
fmtfsize.hxx
fmtftn.hxx
fmtftntx.hxx
fmthdft.hxx sw doc model xml dump: show start node of headers 2024-09-06 09:44:00 +02:00
fmtinfmt.hxx
fmtline.hxx
fmtlsplt.hxx
fmtmeta.hxx
fmtornt.hxx
fmtpdsc.hxx tdf#158556 make SwFormatPageDesc hashable 2024-08-23 14:29:47 +02:00
fmtrfmrk.hxx
fmtrowsplt.hxx
fmtruby.hxx
fmtsrnd.hxx
fmturl.hxx
fmtwrapinfluenceonobjpos.hxx
format.hxx
formatcontentcontrol.hxx
formatflysplit.hxx
formatlinebreak.hxx
formatwraptextatflystart.hxx
frameformats.hxx
frmatr.hxx
frmfmt.hxx
ftnidx.hxx
ftninfo.hxx
globals.hrc
globdoc.hxx
GrammarContact.hxx
grfatr.hxx tdf#158556 make SwGammaGrf hashable 2024-08-23 16:45:52 +02:00
HandleAnchorNodeChg.hxx
helpids.h
hfspacingitem.hxx
hhcwrp.hxx
hintids.hxx convert SwFindNearestNode to regular class 2024-09-04 09:49:08 +02:00
hints.hxx convert SwFindNearestNode to regular class 2024-09-04 09:49:08 +02:00
htmltbl.hxx
IDocumentChartDataProviderAccess.hxx
IDocumentContentOperations.hxx
IDocumentDeviceAccess.hxx
IDocumentDrawModelAccess.hxx
IDocumentExternalData.hxx
IDocumentFieldsAccess.hxx cool#9992 lok doc sign: fix signature status after load 2024-09-17 10:55:35 +02:00
IDocumentLayoutAccess.hxx
IDocumentLinksAdministration.hxx
IDocumentListItems.hxx
IDocumentListsAccess.hxx
IDocumentMarkAccess.hxx speedup lcl_FillAnnotationStartArray 2024-08-12 13:18:40 +02:00
IDocumentOutlineNodes.hxx
IDocumentRedlineAccess.hxx
IDocumentSettingAccess.hxx tdf#161233 paint pictures completely also with contour wrap 2024-10-04 00:05:42 +02:00
IDocumentState.hxx
IDocumentStatistics.hxx
IDocumentStylePoolAccess.hxx
IDocumentTimerAccess.hxx
IDocumentUndoRedo.hxx
IMark.hxx loplugin:passstuffbyref in sw 2024-11-07 15:15:01 +01:00
init.hxx
inspectorproperties.hrc
iodetect.hxx
IShellCursorSupplier.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
istyleaccess.hxx
istype.hxx
itabenum.hxx
legacyitem.hxx
lineinfo.hxx
linkenum.hxx
list.hxx
mdiexp.hxx
mmaddressblockpage.hrc
modcfg.hxx
modeltoviewhelper.hxx
ndarr.hxx tdf#158556 move m_vIndices to SwNode 2024-08-15 18:49:12 +02:00
ndgrf.hxx
ndhints.hxx
ndindex.hxx tdf#158556 move m_vIndices to SwNode 2024-08-15 18:49:12 +02:00
ndnotxt.hxx
ndole.hxx
ndtxt.hxx
ndtyp.hxx
node.hxx convert SwFindNearestNode to regular class 2024-09-04 09:49:08 +02:00
nodeoffset.hxx
numrule.hxx
OnlineAccessibilityCheck.hxx
optload.hrc
outline.hrc
PageColumnPopup.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
pagedesc.hxx convert SwFindNearestNode to regular class 2024-09-04 09:49:08 +02:00
pageformatpanel.hrc
PageMarginPopup.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
PageOrientationPopup.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
pagepreviewlayout.hxx
PageSizePopup.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
pam.hxx SwContentIndex owner pointers 2024-08-12 13:08:42 +02:00
paratr.hxx convert SwFindNearestNode to regular class 2024-09-04 09:49:08 +02:00
pausethreadstarting.hxx
poolfmt.awk
poolfmt.hxx tdf#48459 sw inline heading: add Inline Heading frame style 2024-11-01 08:50:54 +01:00
postithelper.hxx allow creating rich content comments via .uno:InsertAnnotation args 2024-10-07 14:07:45 +02:00
PostItMgr.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
printdata.hxx
proofreadingiterator.hxx
prtopt.hxx
pvprtdat.hxx
rcid.hrc
rdfhelper.hxx loplugin:unusedmethods 2024-10-01 11:16:30 +02:00
redline.hxx SwRedlineHint is dead 2024-09-03 18:55:43 +02:00
reffld.hxx
ring.hxx
rubylist.hxx tdf#107184 sw: Added base text group feature to Asian Phonetic Guide 2024-09-12 05:04:53 +02:00
section.hxx convert SwFindNearestNode to regular class 2024-09-04 09:49:08 +02:00
shellid.hxx
shellio.hxx loplugin:passstuffbyref in sw 2024-11-07 15:15:01 +01:00
shellres.hxx
SidebarWindowsTypes.hxx
sortopt.hxx
splargs.hxx
strings.hrc tdf#48459 sw inline heading: add Inline Heading frame style 2024-11-01 08:50:54 +01:00
sw_primitivetypes2d.hxx
swabstdlg.hxx loplugin:unusedmethods 2024-10-01 11:16:30 +02:00
swacorr.hxx
SwAppletImpl.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
swatrset.hxx
swbaslnk.hxx
swcalwrp.hxx
SwCapConfigProp.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
SwCapObjType.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
swcli.hxx
swcrsr.hxx tdf#144717: fix SwInsFootNoteDlg's next/prev button state check 2024-11-11 18:25:48 +01:00
swdbdata.hxx
swddetbl.hxx
swdll.hxx
swdllapi.h
SwDocIdle.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
swerror.h
swevent.hxx
swfltopt.hxx
SwGetPoolIdFromName.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
swmodule.hxx We don't need to constantly fetch SvtCTLOptions::GetCTLTextNumerals 2024-10-03 16:59:50 +02:00
SwNodeNum.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
SwNumberTree.hxx
SwNumberTreeTypes.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
swrect.hxx
swregion.hxx
SwRewriter.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
swscanner.hxx
swserv.hxx simplify IMark hierarchy (6) 2024-08-04 22:40:48 +02:00
SwSmartTagMgr.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
SwStyleNameMapper.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
swtable.hxx return SwTableBoxFormat from SwTableBox::ClaimFrameFormat 2024-09-07 09:34:11 +02:00
swtblfmt.hxx fix asan build 2024-09-07 12:31:07 +02:00
swtypes.hxx tdf#162326 remove character formats and styles on style apply 2024-09-23 20:20:28 +02:00
swundo.hxx
SwUndoField.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
swunohelper.hxx
swurl.hxx
swwait.hxx
SwXMLSectionList.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
tabcol.hxx
tblafmt.hxx loplugin:passstuffbyref in sw 2024-11-07 15:15:01 +01:00
tblenum.hxx
tblsel.hxx
textboxhelper.hxx NFC prep for tdf#143899: move TextBoxIsFramePr into SwTextBoxHelper 2024-09-04 14:32:46 +02:00
textcontentcontrol.hxx
TextCursorHelper.hxx
textlinebreak.hxx
tgrditem.hxx
tox.hxx use less dynamic_cast when broadcasting SfxHint in sw 2024-09-03 21:41:19 +02:00
toxe.hxx
ToxLinkProcessor.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
ToxTabStopTokenHandler.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
ToxTextGenerator.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
ToxWhitespaceStripper.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
toxwrap.hxx
txatbase.hxx
txatritr.hxx
txtannotationfld.hxx simplify IMark hierarchy (10) 2024-08-07 12:05:42 +02:00
txtatr.hxx
txtflcnt.hxx
txtfld.hxx
txtftn.hxx
txtinet.hxx
txtrfmrk.hxx
txttxmrk.hxx
undobj.hxx
UndoParagraphSignature.hxx tdf#143148 Use #pragma once instead of include guards 2024-10-23 09:06:10 +02:00
unobaseclass.hxx
unobasestyle.hxx use more concrete UNO type in writerfilter 2024-08-04 16:58:39 +02:00
unochart.hxx
unocoll.hxx use more concrete UNO type in writerfilter 2024-08-12 10:50:54 +02:00
unocrsr.hxx use less dynamic_cast when broadcasting SfxHint in sw 2024-09-03 21:41:19 +02:00
unocrsrhelper.hxx simplify IMark hierarchy (6) 2024-08-04 22:40:48 +02:00
unodraw.hxx use more concrete UNO type in writerfilter 2024-08-09 17:31:02 +02:00
unofieldcoll.hxx UBSan CppunitTest_sw_writerfilter_misc needs the SwXTextFieldMasters now 2024-08-08 10:26:38 +02:00
unoframe.hxx loplugin:unusedmethods 2024-10-01 11:16:21 +02:00
unoidxcoll.hxx
unomap.hxx
unomid.h
unoparagraph.hxx
unoprnms.hxx tdf#36709 Add loext:text-indent supporting font-relative units 2024-11-02 01:09:52 +01:00
unoredline.hxx loplugin:unusedmethods 2024-10-01 11:16:21 +02:00
unoredlines.hxx
unosett.hxx use more concrete UNO type in writerfilter 2024-08-08 15:51:31 +02:00
unosrch.hxx
unostyle.hxx use more concrete UNO types in sw 2024-09-16 08:12:43 +02:00
unotbl.hxx loplugin:unusedmethods 2024-10-01 11:16:21 +02:00
unotext.hxx loplugin:unusedmethods 2024-10-01 11:16:21 +02:00
unotextbodyhf.hxx loplugin:unusedmethods 2024-10-01 11:16:21 +02:00
unotextcursor.hxx loplugin:unusedmethods 2024-10-16 15:52:02 +02:00
unotextrange.hxx loplugin:unusedmethods 2024-10-16 15:52:02 +02:00
unotxdoc.hxx use more concrete UNO types in sw 2024-09-16 08:12:43 +02:00
unoxstyle.hxx tdf#158556 avoid dynamic_cast 2024-08-20 13:54:16 +02:00
usrfld.hxx
utlui.hrc
view.hxx Related: tdf#162580 When upgrading from Find toolbar search to 2024-09-02 19:45:00 +02:00
viewopt.hxx Related tdf#74386 - Improvements for text boundaries options 2024-11-08 10:16:58 +01:00
viewsh.hxx tdf#153138 Add IgnoreTabsAndBlanksForLineCalculation compat opt to dialog 2024-10-31 14:46:30 +01:00
viscrs.hxx
wdocsh.hxx