summaryrefslogtreecommitdiff
path: root/sw/inc/contentindex.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/inc/contentindex.hxx')
-rw-r--r--sw/inc/contentindex.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sw/inc/contentindex.hxx b/sw/inc/contentindex.hxx
index c05845b378c7..0e2abc582116 100644
--- a/sw/inc/contentindex.hxx
+++ b/sw/inc/contentindex.hxx
@@ -28,6 +28,7 @@
class SwContentNode;
class SwContentIndexReg;
struct SwPosition;
+class SwRangeRedline;
namespace sw::mark { class IMark; }
@@ -43,6 +44,9 @@ private:
SwContentIndex * m_pNext;
SwContentIndex * m_pPrev;
+ /// points to the SwRangeRedline (if any) that contains this SwIndex, via SwPosition and SwPaM
+ SwRangeRedline * m_pRangeRedline = nullptr;
+
/// Pointer to a mark that owns this position to allow fast lookup of marks of an SwContentIndexReg.
const sw::mark::IMark* m_pMark;
@@ -101,6 +105,9 @@ public:
const sw::mark::IMark* GetMark() const { return m_pMark; }
void SetMark(const sw::mark::IMark* pMark);
+
+ SwRangeRedline* GetRedline() const { return m_pRangeRedline; }
+ void SetRedline(SwRangeRedline* pRangeRedline) { m_pRangeRedline = pRangeRedline; }
};
SW_DLLPUBLIC std::ostream& operator <<(std::ostream& s, const SwContentIndex& index);