[Libreoffice-ux-advise] [Bug 138628] ClearDirectFormatting does not remove page break

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Dec 8 09:20:54 UTC 2020


https://bugs.documentfoundation.org/show_bug.cgi?id=138628

--- Comment #9 from Mike Kaganski <mikekaganski at hotmail.com> ---
Core pointers:

The entry points for "Clear DF" for Writer are:

SwAnnotationShell::Exec in sw/source/uibase/shells/annotsh.cxx
SwDrawTextShell::ExecDraw in sw/source/uibase/shells/drwtxtsh.cxx
SwTextShell::Execute in sw/source/uibase/shells/textsh1.cxx
(look for FN_FORMAT_RESET in all three)
The last one is relevant for text.

In SwTextShell::Execute, #i78856 and tdf#40496 are handled, excluding language
attributes and writing direction.
In SwDoc::ResetAttrs (sw/source/core/doc/docfmt.cxx), which does the actual
work, additional things are excluded (e.g., see "not including META here"
comment).

Lastly, lcl_RstAttr excludes more, e.g. RES_PAGEDESC and RES_BREAK that define
page break and its style, and also numbering rules.

Note that SwDoc::ResetAttrs is used not only in .uno:ResetAttributes, so handle
with care.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Libreoffice-ux-advise mailing list