diff options
author | RĂ¼diger Timm <rt@openoffice.org> | 2004-09-17 18:31:16 +0000 |
---|---|---|
committer | RĂ¼diger Timm <rt@openoffice.org> | 2004-09-17 18:31:16 +0000 |
commit | 3b6b0ff916deefbb5397b0a21efae57a823a007e (patch) | |
tree | ff62b9afdff458675d3b01ff79b57b4ec48fdb9f /xmloff | |
parent | 2476f0b94ea1504f3445cf383761e8fcd310e1ba (diff) |
INTEGRATION: CWS cheffsache01 (1.10.52); FILE MERGED
2004/09/14 16:41:36 cl 1.10.52.1: #i33768# add display-name after import
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/draw/XMLShapeStyleContext.cxx | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/xmloff/source/draw/XMLShapeStyleContext.cxx b/xmloff/source/draw/XMLShapeStyleContext.cxx index d142f6b995..6808d750bf 100644 --- a/xmloff/source/draw/XMLShapeStyleContext.cxx +++ b/xmloff/source/draw/XMLShapeStyleContext.cxx @@ -2,9 +2,9 @@ * * $RCSfile: XMLShapeStyleContext.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: rt $ $Date: 2004-07-13 08:08:23 $ + * last change: $Author: rt $ $Date: 2004-09-17 19:31:16 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -146,6 +146,16 @@ void XMLShapeStyleContext::SetAttribute( sal_uInt16 nPrefixKey, const ::rtl::OUS else { XMLPropStyleContext::SetAttribute( nPrefixKey, rLocalName, rValue ); + + if( (XML_NAMESPACE_STYLE == nPrefixKey) && + ( IsXMLToken( rLocalName, ::xmloff::token::XML_NAME ) || IsXMLToken( rLocalName, ::xmloff::token::XML_DISPLAY_NAME ) ) ) + { + if( GetName().getLength() && GetDisplayName().getLength() && GetName() != GetDisplayName() ) + { + const_cast< SvXMLImport&>( GetImport() ). + AddStyleDisplayName( GetFamily(), GetName(), GetDisplayName() ); + } + } } } |