diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2010-05-21 12:35:59 +0200 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2010-05-21 12:35:59 +0200 |
commit | f8a2c3db0dfc47b0014789398f10714e57c717cc (patch) | |
tree | 5a1f76c25275cca8918930ad8eccf41e1515aee5 /xmloff/source/text/txtparae.cxx | |
parent | f3f872cbb8a4264254b56204b1eaea9612fb19d9 (diff) | |
parent | 6714cd0988b8dfabd6b9264f4c5a3bce3b9451dc (diff) |
CWS-TOOLING: integrate CWS sw33bf03
Diffstat (limited to 'xmloff/source/text/txtparae.cxx')
-rw-r--r-- | xmloff/source/text/txtparae.cxx | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx index 61559549c6e7..140656fd4298 100644 --- a/xmloff/source/text/txtparae.cxx +++ b/xmloff/source/text/txtparae.cxx @@ -1998,7 +1998,18 @@ void XMLTextParagraphExport::exportParagraph( { const OUString& rIdentifier = GetExport().getInterfaceToIdentifierMapper().getIdentifier( xRef ); if( rIdentifier.getLength() ) - GetExport().AddAttribute( XML_NAMESPACE_TEXT, XML_ID, rIdentifier ); + { + // FIXME: this is just temporary until EditEngine + // paragraphs implement XMetadatable. + // then that must be used and not the mapper, because + // when both can be used we get two xml:id! + uno::Reference<rdf::XMetadatable> const xMeta(xRef, + uno::UNO_QUERY); + OSL_ENSURE(!xMeta.is(), "paragraph that implements " + "XMetadatable used in interfaceToIdentifierMapper?"); + GetExport().AddAttributeIdLegacy(XML_NAMESPACE_TEXT, + rIdentifier); + } } OUString sAutoStyle( sStyle ); |