office-gobmx/sw/inc
Michael Stahl 2b47fae7e3 tdf#88214 sw: text formatting: adapt empty line at end of para to Word
For an empty line at the end of an empty paragraph, Writer already uses
any existing text attribute in the paragraph, see for example
testEmptyTrailingSpans.

For an empty line at the end of a non-empty paragraph, Writer text
formatting uses only paragraph attributes, ignoring any text attributes,
whereas the UI will display the attributes from the text attributes
(such as font height) if you move the cursor there.

Word uses text attributes also in this case, so adapt the inconsistent
Writer behaviour: text formatting now uses text attributes too.

Apparently this can be achieved by calling SeekAndChgBefore() instead of
SeekAndChg().

Add another compat flag "ApplyTextAttrToEmptyLineAtEndOfParagraph" to
preserve the formatting of existing ODF documents.

Adapt test document fdo74110.docx, it has a line break with "Angsana
New" font.

Change-Id: I0863d3077e419404194b47110e4ad2bdda3d11c4
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165887
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@allotropia.de>
2024-04-09 14:10:19 +02:00
..
pch
AccessibilityCheckStrings.hrc
accessibilityoptions.hxx
accmap.hxx sw a11y: Return MapMode instead of using out param 2024-01-26 22:12:22 +01:00
acmplwrd.hxx
anchoreddrawobject.hxx Let SwAnchoredObject::GetFrameFormat return pointer, and drop HasFrameFormat 2024-01-14 14:44:22 +01:00
anchoredobject.hxx make more symbols private in writer 2024-03-05 18:33:33 +01:00
AnnotationWin.hxx
app.hrc
authfld.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
authratr.hxx
autostyle_helper.hxx
bitmaps.hlst Resolves tdf#158531 - Connector lines for Keep Ratio setting 2024-02-12 12:56:05 +01:00
BorderCacheOwner.hxx
bparr.hxx tdf#158556 speed up SwNodes::RemoveNode 2024-03-22 08:00:40 +01:00
breakit.hxx
calbck.hxx make more symbols private in writer 2024-03-05 18:33:33 +01:00
calc.hxx
ccoll.hxx
cellatr.hxx
cellfml.hxx
charatr.hxx
charfmt.hxx
charformats.hxx
checkit.hxx
chpfld.hxx
cmdid.h tdf#126464 Remove "Numbering on/off" UNO command 2024-03-06 11:21:49 +01:00
cnttab.hrc
colwd.hxx convert table width dialog to async 2024-01-30 17:08:22 +01:00
comcore.hxx
contentindex.hxx
crsrsh.hxx tdf#109272 sw: add form filling testcase 2024-03-27 18:03:19 +01:00
crstate.hxx
cshtyp.hxx
dbfld.hxx
dbgoutsw.hxx
dbmgr.hxx make more symbols private in writer 2024-03-05 18:33:33 +01:00
dbui.hrc
dcontact.hxx
ddefld.hxx
deletelistener.hxx
dlelstnr.hxx
dobjfac.hxx
doc.hxx tdf#158556 speedup docx load 2024-03-21 08:39:46 +01:00
docary.hxx sw: document SwTextFormatColls 2024-04-09 10:25:17 +02:00
docfac.hxx
docfunc.hxx
docsh.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
docstat.hxx
docstyle.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
docufld.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
dpage.hxx
drawdoc.hxx
edglbldc.hxx Generalize search algorithms in sorted_vector 2024-02-17 10:07:38 +01:00
edimp.hxx
editsh.hxx UBSan RTTI fixes 2024-02-22 06:59:23 +01:00
EnhancedPDFExportHelper.hxx
error.hrc
expfld.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
extinput.hxx
fchrfmt.hxx
fesh.hxx loplugin:unusedmethods 2024-04-04 19:58:14 +02:00
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 reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
fmtcolfunc.hxx
fmteiro.hxx sw: document SwFormatEditInReadonly 2024-02-27 09:11:01 +01:00
fmtflcnt.hxx
fmtfld.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
fmtfollowtextflow.hxx
fmtfordr.hxx sw: document SwFormatFillOrder 2024-03-26 13:47:07 +01:00
fmtfsize.hxx
fmtftn.hxx
fmtftntx.hxx
fmthdft.hxx
fmtinfmt.hxx
fmtline.hxx
fmtlsplt.hxx
fmtmeta.hxx
fmtornt.hxx
fmtpdsc.hxx
fmtrfmrk.hxx
fmtrowsplt.hxx
fmtruby.hxx
fmtsrnd.hxx
fmturl.hxx
fmtwrapinfluenceonobjpos.hxx
format.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
formatcontentcontrol.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
formatflysplit.hxx
formatlinebreak.hxx
formatwraptextatflystart.hxx
frameformats.hxx
frmatr.hxx
frmfmt.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
ftnidx.hxx
ftninfo.hxx
globals.hrc
globdoc.hxx
GrammarContact.hxx
grfatr.hxx
HandleAnchorNodeChg.hxx
helpids.h
hfspacingitem.hxx
hhcwrp.hxx
hintids.hxx ITEM: ItemPool Rework (I) 2024-02-12 10:35:33 +01:00
hints.hxx sw: extend the SwFormatChg documentation a little 2024-03-12 09:24:57 +01:00
htmltbl.hxx
IDocumentChartDataProviderAccess.hxx
IDocumentContentOperations.hxx
IDocumentDeviceAccess.hxx
IDocumentDrawModelAccess.hxx
IDocumentExternalData.hxx
IDocumentFieldsAccess.hxx
IDocumentLayoutAccess.hxx
IDocumentLinksAdministration.hxx
IDocumentListItems.hxx
IDocumentListsAccess.hxx
IDocumentMarkAccess.hxx tdf#158279 TOC links lost when converting .doc to HTML 2024-02-07 18:45:10 +01:00
IDocumentOutlineNodes.hxx
IDocumentRedlineAccess.hxx
IDocumentSettingAccess.hxx tdf#88214 sw: text formatting: adapt empty line at end of para to Word 2024-04-09 14:10:19 +02:00
IDocumentState.hxx
IDocumentStatistics.hxx
IDocumentStylePoolAccess.hxx
IDocumentTimerAccess.hxx
IDocumentUndoRedo.hxx
IMark.hxx
init.hxx ITEM: ItemPool Rework (I) 2024-02-12 10:35:33 +01:00
inspectorproperties.hrc tdf#158885 cui offapi sw xmloff: fix hyphenation at stem boundary 2024-03-20 13:04:09 +01:00
iodetect.hxx
IShellCursorSupplier.hxx
istyleaccess.hxx
istype.hxx
itabenum.hxx
legacyitem.hxx
lineinfo.hxx
linkenum.hxx
list.hxx
mdiexp.hxx
mmaddressblockpage.hrc
modcfg.hxx
modeltoviewhelper.hxx
ndarr.hxx make more symbols private in writer 2024-03-05 18:33:33 +01:00
ndgrf.hxx make more symbols private in writer 2024-03-05 18:33:33 +01:00
ndhints.hxx
ndindex.hxx try to use more reliable mechanism in AddLinkTarget 2024-03-26 15:35:40 +01:00
ndnotxt.hxx make more symbols private in writer 2024-03-05 18:33:33 +01:00
ndole.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
ndtxt.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
ndtyp.hxx
node.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
nodeoffset.hxx
numrule.hxx make more symbols private in writer 2024-03-05 18:33:33 +01:00
OnlineAccessibilityCheck.hxx
optload.hrc
outline.hrc
PageColumnPopup.hxx
pagedesc.hxx tdf#147731 sw: fix memory leak in SwDoc::CopyPageDesc() 2024-02-24 09:44:41 +01:00
pageformatpanel.hrc
PageMarginPopup.hxx
PageOrientationPopup.hxx
pagepreviewlayout.hxx
PageSizePopup.hxx
pam.hxx
paratr.hxx
pausethreadstarting.hxx
poolfmt.awk
poolfmt.hxx
postithelper.hxx
PostItMgr.hxx tdf#159145 Allow changing width of comment column on right border 2024-01-22 12:19:47 +01:00
printdata.hxx
proofreadingiterator.hxx
prtopt.hxx
pvprtdat.hxx
rcid.hrc
rdfhelper.hxx
redline.hxx tdf#157664 Drop operator != where respective operator == is defined 2024-03-11 05:39:23 +01:00
reffld.hxx make more symbols private in writer 2024-03-05 18:33:33 +01:00
ring.hxx fix some typos in sw::Ring 2024-03-21 21:08:29 +01:00
rubylist.hxx
section.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
shellid.hxx
shellio.hxx Use weak reference to SfxObjectShell in SfxEventHint to avoid use-after-free 2024-03-11 04:43:28 +01:00
shellres.hxx
SidebarWindowsTypes.hxx
sortopt.hxx
splargs.hxx
strings.hrc tdf#159662 Add table alignment and left/right spacing to sidebar in Writer 2024-02-12 18:17:18 +01:00
sw_primitivetypes2d.hxx
swabstdlg.hxx make date-form-field dialog async 2024-01-31 17:22:19 +01:00
swacorr.hxx
SwAppletImpl.hxx
swatrset.hxx
swbaslnk.hxx
swcalwrp.hxx
SwCapConfigProp.hxx
SwCapObjType.hxx
swcli.hxx
swcrsr.hxx sw: document SwCursor 2024-03-19 09:55:14 +01:00
swdbdata.hxx
swddetbl.hxx
swdll.hxx
swdllapi.h
SwDocIdle.hxx
swerror.h
swevent.hxx tdf#157664 Drop operator != where respective operator == is defined 2024-03-11 05:39:23 +01:00
swfltopt.hxx
SwGetPoolIdFromName.hxx
swmodule.hxx make more symbols private in writer 2024-03-05 18:33:33 +01:00
SwNodeNum.hxx
SwNumberTree.hxx
SwNumberTreeTypes.hxx
swrect.hxx make more symbols private in writer 2024-03-05 18:33:33 +01:00
swregion.hxx
SwRewriter.hxx
swscanner.hxx
swserv.hxx
SwSmartTagMgr.hxx
SwStyleNameMapper.hxx
swtable.hxx sw doc model xml dump: show SwTableLine::m_aBoxes 2024-04-05 09:22:15 +02:00
swtblfmt.hxx
swtypes.hxx
swundo.hxx
SwUndoField.hxx
swunohelper.hxx
swurl.hxx
swwait.hxx
SwXMLSectionList.hxx
tabcol.hxx
tblafmt.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
tblenum.hxx
tblsel.hxx
textboxhelper.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
textcontentcontrol.hxx
TextCursorHelper.hxx
textlinebreak.hxx
tgrditem.hxx
tox.hxx loplugin:unusedfields 2024-03-16 19:58:41 +01:00
toxe.hxx
ToxLinkProcessor.hxx
ToxTabStopTokenHandler.hxx
ToxTextGenerator.hxx
ToxWhitespaceStripper.hxx
toxwrap.hxx
txatbase.hxx
txatritr.hxx
txtannotationfld.hxx
txtatr.hxx
txtflcnt.hxx
txtfld.hxx
txtftn.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
txtinet.hxx
txtrfmrk.hxx
txttxmrk.hxx
undobj.hxx sw: for Undo, add FLY_AT_PAGE in GetFlysAnchoredAt() 2024-03-04 11:23:44 +01:00
UndoParagraphSignature.hxx
unobaseclass.hxx
unochart.hxx
unocoll.hxx hide more symbols 2024-02-19 09:09:06 +01:00
unocrsr.hxx
unocrsrhelper.hxx
unodraw.hxx
unofieldcoll.hxx
unoframe.hxx
unoidxcoll.hxx
unomap.hxx
unomid.h
unoparagraph.hxx
unoprnms.hxx tdf#158885 cui offapi sw xmloff: fix hyphenation at stem boundary 2024-03-20 13:04:09 +01:00
unoredline.hxx
unoredlines.hxx
unosett.hxx
unosrch.hxx
unostyle.hxx
unotbl.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
unotext.hxx
unotextbodyhf.hxx
unotextcursor.hxx
unotextrange.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
unotxdoc.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
usrfld.hxx tdf#160301 import DOCVARIABLE fields as user fields 2024-04-04 19:47:54 +02:00
utlui.hrc
view.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
viewopt.hxx make more symbols private in writer 2024-03-05 18:33:33 +01:00
viewsh.hxx make more symbols private in writer 2024-03-05 18:33:33 +01:00
viscrs.hxx reduce symbol visibility in sw 2024-03-13 10:45:51 +01:00
wdocsh.hxx