Kaydet (Commit) 66b563cf authored tarafından Michael Stahl's avatar Michael Stahl

sw_redlinehide_2: check merge flag in various MakeFrames

Change-Id: I2d54ae4069c0c6813059f90a1003387512ee9ba1
üst e6c28812
...@@ -1048,6 +1048,11 @@ void SwSectionNode::MakeFramesForAdjacentContentNode(const SwNodeIndex & rIdx) ...@@ -1048,6 +1048,11 @@ void SwSectionNode::MakeFramesForAdjacentContentNode(const SwNodeIndex & rIdx)
while( nullptr != (pFrame = aNode2Layout.NextFrame()) ) while( nullptr != (pFrame = aNode2Layout.NextFrame()) )
{ {
OSL_ENSURE( pFrame->IsSctFrame(), "Depend of Section not a Section." ); OSL_ENSURE( pFrame->IsSctFrame(), "Depend of Section not a Section." );
if (pFrame->getRootFrame()->IsHideRedlines()
&& !rIdx.GetNode().IsCreateFrameWhenHidingRedlines())
{
continue;
}
SwFrame *pNew = rIdx.GetNode().GetContentNode()->MakeFrame( pFrame ); SwFrame *pNew = rIdx.GetNode().GetContentNode()->MakeFrame( pFrame );
SwSectionNode* pS = rIdx.GetNode().FindSectionNode(); SwSectionNode* pS = rIdx.GetNode().FindSectionNode();
......
...@@ -2381,6 +2381,11 @@ void SwTableNode::MakeFramesForAdjacentContentNode(const SwNodeIndex & rIdx) ...@@ -2381,6 +2381,11 @@ void SwTableNode::MakeFramesForAdjacentContentNode(const SwNodeIndex & rIdx)
while( nullptr != (pFrame = aNode2Layout.NextFrame()) ) while( nullptr != (pFrame = aNode2Layout.NextFrame()) )
{ {
if (pFrame->getRootFrame()->IsHideRedlines()
&& !pNode->IsCreateFrameWhenHidingRedlines())
{
continue;
}
SwFrame *pNew = pNode->MakeFrame( pFrame ); SwFrame *pNew = pNode->MakeFrame( pFrame );
// Will the Node receive Frames before or after? // Will the Node receive Frames before or after?
if ( bBefore ) if ( bBefore )
...@@ -2408,6 +2413,11 @@ void SwTableNode::MakeOwnFrames(SwNodeIndex* pIdxBehind) ...@@ -2408,6 +2413,11 @@ void SwTableNode::MakeOwnFrames(SwNodeIndex* pIdxBehind)
SwNode2Layout aNode2Layout( *pNd, GetIndex() ); SwNode2Layout aNode2Layout( *pNd, GetIndex() );
while( nullptr != (pUpper = aNode2Layout.UpperFrame( pFrame, *this )) ) while( nullptr != (pUpper = aNode2Layout.UpperFrame( pFrame, *this )) )
{ {
if (pUpper->getRootFrame()->IsHideRedlines()
&& !IsCreateFrameWhenHidingRedlines())
{
continue;
}
SwTabFrame* pNew = MakeFrame( pUpper ); SwTabFrame* pNew = MakeFrame( pUpper );
pNew->Paste( pUpper, pFrame ); pNew->Paste( pUpper, pFrame );
// #i27138# // #i27138#
......
...@@ -1290,6 +1290,11 @@ void SwContentNode::MakeFramesForAdjacentContentNode(SwContentNode& rNode) ...@@ -1290,6 +1290,11 @@ void SwContentNode::MakeFramesForAdjacentContentNode(SwContentNode& rNode)
while( nullptr != (pUpper = aNode2Layout.UpperFrame( pFrame, rNode )) ) while( nullptr != (pUpper = aNode2Layout.UpperFrame( pFrame, rNode )) )
{ {
if (pUpper->getRootFrame()->IsHideRedlines()
&& !rNode.IsCreateFrameWhenHidingRedlines())
{
continue;
}
SwFrame *pNew = rNode.MakeFrame( pUpper ); SwFrame *pNew = rNode.MakeFrame( pUpper );
pNew->Paste( pUpper, pFrame ); pNew->Paste( pUpper, pFrame );
// #i27138# // #i27138#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment