// DelFootnote( rRange ); // FIXME: duplication of the method body of DelFootnote below
// is the current move from ContentArea into the special section?
SwNodeOffset nContentStt = rDoc.GetNodes().GetEndOfAutotext().GetIndex(); if( m_nMoveDestNode < nContentStt && rRg.aStart.GetIndex() > nContentStt )
{ // delete all footnotes since they are undesired there
SwPosition aPtPos( rRg.aEnd );
SwContentNode* pCNd = rRg.aEnd.GetNode().GetContentNode(); if( pCNd )
aPtPos.SetContent( pCNd->Len() );
SwPosition aMkPos( rRg.aStart );
// Block so that we can jump out of it do { // create index position and section based on the existing values
SwNodeIndex aIdx( rDoc.GetNodes(), m_nDestStartNode );
// #i17764# if redlines are to be moved, we may not remove them // before rDoc.Move gets a chance to handle them if( ! m_bMoveRedlines )
RemoveIdxFromRange( aPam, false );
// first delete all attributes at InsertPos constbool bSuccess = rDoc.getIDocumentContentOperations().MoveRange( aPam, aPos, m_bMoveRedlines
? SwMoveFlags::REDLINES
: SwMoveFlags::DEFAULT ); if (!bSuccess) break;
aPam.Exchange();
aPam.DeleteMark(); if( aPam.GetPointNode().IsContentNode() )
aPam.GetPointNode().GetContentNode()->ResetAllAttr(); // the Pam will be dropped now
}
SwTextNode* pTextNd = aIdx.GetNode().GetTextNode(); if( m_bJoinNext )
{
{
RemoveIdxRel( aIdx.GetIndex() + 1,
SwPosition( aIdx, pTextNd, pTextNd->GetText().getLength()) );
} // Are there any Pams in the next TextNode?
pTextNd->JoinNext();
}
void SwUndoMove::DelFootnote( const SwPaM& rRange )
{ // is the current move from ContentArea into the special section?
SwDoc& rDoc = rRange.GetDoc();
SwNodeOffset nContentStt = rDoc.GetNodes().GetEndOfAutotext().GetIndex(); if( m_nMoveDestNode < nContentStt &&
rRange.GetPoint()->GetNodeIndex() >= nContentStt )
{ // delete all footnotes since they are undesired there
DelContentIndex( *rRange.GetMark(), *rRange.GetPoint(),
DelContentType::Ftn );
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.