sw_redlinehide: add an indirect iteration mode to SwIterator

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

There are lots of existing loops over SwTextFrames of SwTextNodes, and these need to keep finding the frames if there's a WriterMultiListener in between.

Add a template parameter to SwIterator that can be used to make the iteration transparent, i.e. return the client of the WriterMultiListener instead of the ListenerEntry itself.

75e0f0e6c1ef sw_redlinehide: add an indirect iteration mode to SwIterator
sw/inc/calbck.hxx | 106 ++++++++++++++++++++++++++++++++++++-----
sw/source/core/attr/calbck.cxx | 58 +++++++---------------
2 files changed, 112 insertions(+), 52 deletions(-)

Upstream: cgit.freedesktop.org


  • Share