summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2018-10-19 15:08:01 +0200
committerMichael Stahl <Michael.Stahl@cib.de>2018-11-15 15:10:00 +0100
commitccac1f179d0f6ed9c5ba5ac2d29070c4e62b7e1e (patch)
tree9ce02e933e3a0135446870b649a048c29326a3cc /sw/inc
parent26ce48bf407b0a027db70022bf95c0f98fe46c17 (diff)
sw_redlinehide_3: add flag to SwNodeNum
Disable the NumRule/DocumentListsItemManager manipulations on the second tree; only the "main" tree does that. Change-Id: I0da8ced53f8d55758e3c02fd24b9253bbf603b38
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/SwNodeNum.hxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/inc/SwNodeNum.hxx b/sw/inc/SwNodeNum.hxx
index d9e61b115b55..cb277b7e7880 100644
--- a/sw/inc/SwNodeNum.hxx
+++ b/sw/inc/SwNodeNum.hxx
@@ -30,7 +30,9 @@ class SW_DLLPUBLIC SwNodeNum : public SwNumberTreeNode
{
public:
- explicit SwNodeNum( SwTextNode* pTextNode );
+ explicit SwNodeNum( SwTextNode* pTextNode, bool isHiddenRedlines );
+ // note: this is only for creating phantom nodes and root nodes; these
+ // never have a text node
explicit SwNodeNum( SwNumRule* pNumRule );
virtual ~SwNodeNum() override;
@@ -79,8 +81,9 @@ protected:
// method called at a child after this child has been removed from the list tree
virtual void PostRemove() override;
private:
- SwTextNode * mpTextNode;
+ SwTextNode *const mpTextNode;
SwNumRule * mpNumRule;
+ bool m_isHiddenRedlines;
static void UnregisterMeAndChildrenDueToRootDelete( SwNodeNum& rNodeNum );