OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Problems with Transparent Frames inside tables

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
kentgibson
Power User
Power User


Joined: 24 Jan 2006
Posts: 85

PostPosted: Tue Mar 28, 2006 11:36 pm    Post subject: Problems with Transparent Frames inside tables Reply with quote

Has anyone had any problems programmatically generating transparent frames inside tables?

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:

Code:

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.
[/code]
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group