diff options
author | Michael Stahl <Michael.Stahl@cib.de> | 2018-10-08 12:57:44 +0200 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2018-11-10 19:42:23 +0100 |
commit | acce9c0be2aa2a02b492edda318eb276b7ebbde6 (patch) | |
tree | de2e9bcd636a839bc33bf40f18c17b2912a96079 /sw/source/core/txtnode | |
parent | 909effb81c3de40325a37d54b614852acb4837b5 (diff) |
sw_redlinehide_3: SwAccessibleHyperlink listen at SwFormatINetFormat
There is an annoying problem here: how does a SwAccessibleHyperlink
check whether its corresponding model hint still exists or not?
The existing check via the hint-position appears not ideal, and with the
MergedPara the obvious extension is to add a SwTextNode pointer (or
node index?) which would make it even less ideal...
Instead, do as a lot of classes in unocore do, and register as a
listener on the pool item.
There is another aspect there in how the SwAccessibleHyperTextData
map gets disposed quite eagerly when anything changes, but the
SwAccessibleHyperlink can live longer than this map.
Change-Id: I7d0780cf28794b4ef68cff5d640190694f67530e
Diffstat (limited to 'sw/source/core/txtnode')
-rw-r--r-- | sw/source/core/txtnode/fmtatr2.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/txtnode/fmtatr2.cxx b/sw/source/core/txtnode/fmtatr2.cxx index 826119d84ccd..534425993cdc 100644 --- a/sw/source/core/txtnode/fmtatr2.cxx +++ b/sw/source/core/txtnode/fmtatr2.cxx @@ -178,6 +178,7 @@ SwFormatINetFormat::SwFormatINetFormat( const OUString& rURL, const OUString& rT SwFormatINetFormat::SwFormatINetFormat( const SwFormatINetFormat& rAttr ) : SfxPoolItem( RES_TXTATR_INETFMT ) + , sw::BroadcasterMixin() , msURL( rAttr.GetValue() ) , msTargetFrame( rAttr.msTargetFrame ) , msINetFormatName( rAttr.msINetFormatName ) |