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-unsubscribe xml.openoffice.org
For additional commands, e-mail: dev-help xml.openoffice.org
|