Niklas Nebel wrote:
Joerg Barfurth wrote:

try:
    userAttrs = cell.getPropertyValue( "UserDefinedAttributes" )


OK. So userAttrs is a XNameContainer. Does this container accept any kind of item you can put into any Any?


The user-defined attributes object supports the service com.sun.star.xml.AttributeContainer, which means the elements must be of type com.sun.star.xml.AttributeData.


Yes, that's it, I got an answer to this question from Danny Brewer on OOoForums, see http://www.oooforum.org/forum/viewtopic.phtml?t=19807&highlight=


The code looks like this:
try:
        userAttrs = cell.getPropertyValue( "UserDefinedAttributes" )
        myAttr = uno.createUnoStruct( "com.sun.star.xml.AttributeData" )
        myAttr.Type = "CDATA"
        myAttr.Value = "MyURL"
        userAttrs.insertByName( "url", myAttr )
except UnoException, e:

Regards,

--
Darragh Sherwin
PWB Implementations Manager
http://www.propylon.com/solutions/parliament/index.html
+353-1-4927456
+353-87-1204654

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to