incubator-ooo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jianlizhao <jianlizh...@hotmail.com>
Subject Custom Attributes on Shapes ( Writer)?
Date Sun, 03 Jun 2012 10:33:09 GMT
Hello my friend:

User Defined Attributes in OpenOffice.org as below:

userAttrs = oShape.getPropertyValue( "UserDefinedAttributes" )
myAttr = uno.createUnoStruct( "com.sun.star.xml.AttributeData" )
myAttr.Type = "CDATA"
myAttr.Value = "test"
userAttrs.insertByName( "url", myAttr )
oShape.UserDefinedAttributes = myAttr

my question is
1) myAttr.Value maybe a url.  example:  c:\mystyle.zip 
  or  c:\mystyle.css.
2) If the first one was established。
   What is the file extension type?


Look forward  your reply.
Best Regards!



Mime
View raw message