xDocProps->setAuthor(xSourceDocProps->getAuthor());
xDocProps->setGenerator(xSourceDocProps->getGenerator());
xDocProps->setCreationDate(xSourceDocProps->getCreationDate());
xDocProps->setTitle(xSourceDocProps->getTitle());
xDocProps->setSubject(xSourceDocProps->getSubject());
xDocProps->setDescription(xSourceDocProps->getDescription());
xDocProps->setKeywords(xSourceDocProps->getKeywords());
xDocProps->setLanguage(xSourceDocProps->getLanguage()); // Note: These below originally weren't copied for mailmerge, but I don't see why not.
xDocProps->setModifiedBy(xSourceDocProps->getModifiedBy());
xDocProps->setModificationDate(xSourceDocProps->getModificationDate());
xDocProps->setPrintedBy(xSourceDocProps->getPrintedBy());
xDocProps->setPrintDate(xSourceDocProps->getPrintDate());
xDocProps->setTemplateName(xSourceDocProps->getTemplateName());
xDocProps->setTemplateURL(xSourceDocProps->getTemplateURL());
xDocProps->setTemplateDate(xSourceDocProps->getTemplateDate());
xDocProps->setAutoloadURL(xSourceDocProps->getAutoloadURL());
xDocProps->setAutoloadSecs(xSourceDocProps->getAutoloadSecs());
xDocProps->setDefaultTarget(xSourceDocProps->getDefaultTarget());
xDocProps->setDocumentStatistics(xSourceDocProps->getDocumentStatistics());
xDocProps->setEditingCycles(xSourceDocProps->getEditingCycles());
xDocProps->setEditingDuration(xSourceDocProps->getEditingDuration());
if( mailMerge ) // Note: Not sure this is needed.
{ // Manually set the creation date, otherwise author field isn't filled // during MM, as it's set when saving the document the first time.
xDocProps->setCreationDate( xSourceDocProps->getModificationDate() );
}
// tdf#53023 - remove the last empty paragraph (check SwXMLTextBlockParContext dtor) if (mbInsOnlyTextGlssry)
{
SwPaM aPaM(*pGDoc->GetNodes()[pGDoc->GetNodes().GetEndOfContent().GetIndex() - 1]);
pGDoc->getIDocumentContentOperations().DelFullPara(aPaM);
}
// Update all fixed fields, with the right DocInfo. // FIXME: UGLY: Because we cannot limit the range in which to do // field updates, we must update the fixed fields at the glossary // entry document. // To be able to do this, we copy the document properties of the // target document to the glossary document // OSL_ENSURE(GetDocShell(), "no SwDocShell"); // may be clipboard!
OSL_ENSURE(pGDoc->GetDocShell(), "no SwDocShell at glossary"); if (GetDocShell() && pGDoc->GetDocShell())
pGDoc->ReplaceDocumentProperties( *this );
pGDoc->getIDocumentFieldsAccess().SetFixFields(nullptr);
// till the nodes array's end
aCpyPam.GetPoint()->Assign( pGDoc->GetNodes().GetEndOfContent().GetIndex()-SwNodeOffset(1) );
pContentNd = aCpyPam.GetPointContentNode(); if (pContentNd)
aCpyPam.GetPoint()->SetContent( pContentNd->Len() );
if( pBoxSttNd && SwNodeOffset(2) == pBoxSttNd->EndOfSectionIndex() -
pBoxSttNd->GetIndex() &&
aCpyPam.GetPoint()->GetNode() != aCpyPam.GetMark()->GetNode() )
{ // We copy more than one Node to the current Box. // However, we have to remove the BoxAttributes then.
ClearBoxNumAttrs( rInsPos.GetNode() );
}
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.