Hi-ya,
I have a table and inside it I have textframes, but
for some reason they are not coming out transparent. I
know this works with the ui, plus I remember that the
same code worked when the frames were in text
sections. Could this be a bug? Am I doing something
wrong?
Here is basically what I am doing:
Object writerShape = documentFactory.createInstance(
"com.sun.star.text.TextFrame" );
XTextContent xTextContentShape = ( XTextContent )
UnoRuntime.queryInterface( XTextContent.class,
writerShape );
XPropertySet xTextContentPropertySet = ( XPropertySet
) UnoRuntime.queryInterface( XPropertySet.class,
xTextContentShape );
// no effect
xTextContentPropertySet.setPropertyValue(
"BackTransparent", Boolean.TRUE );
// no effect
xTextContentPropertySet.setPropertyValue(
"Opaque",
Boolean.FALSE );
// no effect
//xTextContentPropertySet.setPropertyValue(
"BackColor", new Integer( 0xffffffff ) );
// UnknownPropertyException
//xTextContentPropertySet.setPropertyValue(
"Transparency", new Short( ( short ) 100 ) );
In the ui you can set a 100% transparent color. That
is what I am trying to do with the backcolor, but
nothing I try seems to work.
thanks and kind regards.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection
around
http://mail.yahoo.com
------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribe api.openoffice.org
For additional commands, e-mail: dev-help api.openoffice.org
|