odfmetadata4: #i109599#,#i109600#: set xml:id _after_ inserting section/index.
This commit is contained in:
parent
b164e350de
commit
9fb421ee4d
2 changed files with 6 additions and 7 deletions
|
@ -201,10 +201,6 @@ void XMLIndexTOCContext::StartElement(
|
|||
OUString::createFromAscii(aIndexServiceMap[eIndexType]));
|
||||
if( xIfc.is() )
|
||||
{
|
||||
|
||||
// xml:id for RDF metadata
|
||||
GetImport().SetXmlId(xIfc, sXmlId);
|
||||
|
||||
// get Property set
|
||||
Reference<XPropertySet> xPropSet(xIfc, UNO_QUERY);
|
||||
xTOCPropertySet = xPropSet;
|
||||
|
@ -246,6 +242,9 @@ void XMLIndexTOCContext::StartElement(
|
|||
return;
|
||||
}
|
||||
|
||||
// xml:id for RDF metadata
|
||||
GetImport().SetXmlId(xIfc, sXmlId);
|
||||
|
||||
// b) insert marker and move cursor
|
||||
rImport->InsertString(sMarker);
|
||||
rImport->GetCursor()->goLeft(2, sal_False);
|
||||
|
|
|
@ -161,9 +161,6 @@ void XMLSectionImportContext::StartElement(
|
|||
// save PropertySet (for CreateChildContext)
|
||||
xSectionPropertySet = xPropSet;
|
||||
|
||||
// xml:id for RDF metadata
|
||||
GetImport().SetXmlId(xIfc, sXmlId);
|
||||
|
||||
// name
|
||||
Reference<XNamed> xNamed(xPropSet, UNO_QUERY);
|
||||
xNamed->setName(sName);
|
||||
|
@ -253,6 +250,9 @@ void XMLSectionImportContext::StartElement(
|
|||
// finally, check for redlines that should start at
|
||||
// the section start node
|
||||
rHelper->RedlineAdjustStartNodeCursor(sal_True); // start ???
|
||||
|
||||
// xml:id for RDF metadata
|
||||
GetImport().SetXmlId(xIfc, sXmlId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue