// remove external link attributes (if any)
myRef->Label().ForgetAttribute(TDataStd_Comment::GetID());
myRef->Label().ForgetAttribute(TDataStd_AsciiString::GetID());
} else { // different document: store the document name (comment) and entry (string): external
// if these attributes exist, the link is external: keep reference to access the label
// remove external link attributes (if any)
myRef->Label().ForgetAttribute(TDataStd_Comment::GetID());
myRef->Label().ForgetAttribute(TDataStd_AsciiString::GetID());
} else { // different document: store the document name (comment) and entry (string): external
// if these attributes exist, the link is external: keep reference to access the label