sw_redlinehide: hyphenation

Desktop / LibreOffice - Michael Stahl [cib.de] - 8 June 2018 19:51 EDT

There's a loop over nodes, calling SwTextNode::Hyphenate() each time. Introduce a new class SwInterHyphInfoTextFrame that is used in the SwTextFrame functions, and SwTextNode::Hyphenate() converts between the 2 types.

Not sure if this will hyphenate a word that is split across nodes in the model, but perhaps this is good enough in practice.

e26b6a3a2e09 sw_redlinehide: hyphenation
sw/inc/splargs.hxx | 10 +++++-----
sw/source/core/doc/docedt.cxx | 2 ++
sw/source/core/inc/txtfrm.hxx | 29 +++++++++++++++++++++++++++-
sw/source/core/text/itrform2.hxx | 2 +-
sw/source/core/text/txthyph.cxx | 40 ++++++++++++++++++++-------------------
sw/source/core/txtnode/txtedt.cxx | 39 ++++++++++++++++++++++++++++++++------
6 files changed, 90 insertions(+), 32 deletions(-)

Upstream: cgit.freedesktop.org


  • Share