List Info

Thread: using com.sun.star.xml.AttributeContainer...




using com.sun.star.xml.AttributeContainer...
user name
2007-09-05 04:52:42
I am trying to use a ReplaceDescriptor to change
CharacterProperties
for a certain type of text in a OO document.

The ReplaceDescriptor lets you specify replace attributes as
property values...

For e.g. :

 Dim ReplAttributes(0) As New
com.sun.star.beans.PropertyValue
  ReplAttributes(0).Name = "CharWeight"
  ReplAttributes(0).Value
=com.sun.star.awt.FontWeight.NORMAL

I am unable to do something like this :

  ReplAttributes(0).Name =
"TextUserDefinedAttributes"
  ReplAttributes(0).Value = AttributeContainerValue

because I cannot seem to find a way to instantiate an
Attribute container ?

Something like :

Dim obj
obj =
createUnoService("com.sun.star.xml.AttributeContainer&q
uot;)

Always yields null object....

How do i set TextUserDefinedAttributes using a
replaceDescriptor ?

thanks

ashok

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribexml.openoffice.org
For additional commands, e-mail: dev-helpxml.openoffice.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )