summaryrefslogtreecommitdiff
path: root/sw/inc/hints.hxx
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-09-03 12:18:25 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-09-19 10:18:29 +0200
commit905541a6f1930604dd103ddfd107fcd3801d80ca (patch)
treecaa50729da3dfbf7013d3662946325f550cbe225 /sw/inc/hints.hxx
parentaa8caf09eb31c708d72d471d3c4c62e97e57235a (diff)
sw_redlinehide_2: handle delete-without-redline inside of redline
The problem is that the SwInsText/SwDelText do not transfer the "deleted-ness" of the text from one node to the other in the SwTextFrame, so add a new hint that is sent after SwInsText & before SwDelText to move the info that is in the extents vector. Change-Id: I32d8dbe52a18556d8dc2c50a47246a6600fdb355
Diffstat (limited to 'sw/inc/hints.hxx')
-rw-r--r--sw/inc/hints.hxx13
1 files changed, 13 insertions, 0 deletions
diff --git a/sw/inc/hints.hxx b/sw/inc/hints.hxx
index bee0ebb1c21a..bdf2eceaa8a6 100644
--- a/sw/inc/hints.hxx
+++ b/sw/inc/hints.hxx
@@ -31,6 +31,7 @@ class SwNodes;
class SwPageFrame;
class SwFrame;
class SwHistory;
+class SwTextNode;
// Base class for all Message-Hints:
// "Overhead" of SfxPoolItem is handled here
@@ -95,6 +96,18 @@ public:
namespace sw {
+/// text is moved into pDestNode
+class MoveText : public SfxHint
+{
+public:
+ SwTextNode * pDestNode;
+ sal_Int32 nDestStart;
+ sal_Int32 nSourceStart;
+ sal_Int32 nLen;
+
+ MoveText(SwTextNode *pD, sal_Int32 nD, sal_Int32 nS, sal_Int32 nL);
+};
+
/// new delete redline is created
class RedlineDelText : public SfxHint
{