summaryrefslogtreecommitdiff
path: root/sw/source/core/txtnode
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-10-05 18:50:53 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-11-10 19:39:26 +0100
commit909effb81c3de40325a37d54b614852acb4837b5 (patch)
tree33ece66f6591e2538025feef6e7cbc11a2d7cf36 /sw/source/core/txtnode
parente6c3b5d1b53ee758e86e1c15926891450691333c (diff)
sw_redlinehide_3: stop SwAccessibleParagraph listening at SwTextNode
The SwAccessibleParagraph is a client of SwTextNode, just so that it can dispose its mpParaChangeTrackInfo on any and all editing operations. This won't work with merged paragraphs, but on the other hand it's not necessary with merged paragraphs because the initChangeTrackTextMarkupLists() does nothing if IsHideRedlines(). However there is the problem that the node and the frame might become mis-matched if the frame is "moved around", so to avoid problems due to that, listen on the SwTextFrame instead of the node, and have the SwTextFrame relay any events it gets. Though the frame is only SwClient, this is now possible thanks to the SfxBroadcaster on the SwFrame class, so convert to SfxListener; also the Accessible lifetime is tied to SwTextFrame anyway. In UnHideRedlines(), send a dummy event too so that toggling Show/Hide disposes the mpParaChangeTrackInfo too, which previously happened as a side effect of moving the redlines around in the nodes-array. Change-Id: I4e5a7107cb55d408266ee42463f9fa2a4a8b721b
Diffstat (limited to 'sw/source/core/txtnode')
0 files changed, 0 insertions, 0 deletions