Hallo all,

I'm trying to control TextTable from my Java extension and I can't
find how to control table width. According to IDL reference and
Developer's Guide, there's a property called Width and HoriOrient. My
goal is to set table width and center this table. So, I tried all
possible combinations with HoriOrient, Width, LeftMargin and
RightMargin.

It seems that no combination works correctly. Table has Width set to
17000 and alignment is Automatic. Interesting is, that
getPropertyValue() returns 16000 Width (I set it with
setPropertyValue()) even if real Width of this table is 17000.

Just to control that I use XPropertySet correctly, I set table
background to some color and it works perfectly.

I guess, that there is an order in which I have to set these
properties? This is new table, so, do I have to call
insertTextContent() before I try to set table width / alignment? Or do
I have to call insertTextContent() and get table object from XText()?
I'm asking these questions, because I discovered that some things
doesn't work if I don't call insertTextContent() with my new table.
For example getColumns(). When I create new instance of TextTable,
initialize it and call getColumns(), uno.RuntimeException is raised.
But when I create new instance of TextTable, initialize it, insert it
in to TextDocument (insertTextContent()) and call getColumns(), it
works.

Best regards,
Robert

-- 
Robert Vojta

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to