// use the annotation mark's name as the annotation name, if // - the annotation field has an empty annotation name or // - the annotation mark's name differs (on mark creation a name clash had been detected)
// For parent-child relation of comments, we rely on the name of parent comments. // Changing the name here breaks the relation which established while copying them. // Instead of changing the name of the field, now we change the name of the annotation mark - hoping to prevent name clashes still (see above comment). if (!pPostItField->GetName().isEmpty())
SetName( pPostItField->GetName() ); elseif (pPostItField->GetName() != GetName() || pPostItField->GetName().isEmpty()) const_cast<SwPostItField*>(pPostItField)->SetName( GetName() );
if (io_rDoc.GetIDocumentUndoRedo().DoesUndo())
{
io_rDoc.GetIDocumentUndoRedo().AppendUndo( std::make_unique<SwUndoInsBookmark>(*this) );
}
io_rDoc.getIDocumentState().SetModified();
}
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.