pullmyfinger Newbie

Joined: 29 Jun 2010 Posts: 2
|
Posted: Tue Jun 29, 2010 7:21 am Post subject: star.text.CellProperties vs star.table.CellProperties |
|
|
I'm somewhat of a beginner so please be patient.
I have trying to set the horizonal alignment of a cell that belongs to an XTextTable.
I have the following code:
XCell xCell = xTable.getCellByName(sCellName);
XPropertySet xCellProps = (XPropertySet)UnoRuntime.queryInterface(XPropertySet.class, xCell);
However, I run into a couple of problems.
getCellByName is supposed to return a com.sun.star.table.XCell object, and yes, sure enough I have a star.table.XCell object
However, when I run my function that lists all of the services this XCell supports, I find that it only supports star.text.CellProperties, instead of star.table.CellProperties.
I also iterated through the available propertyset for my XCell object, and it confirms it, since the property "BackColor" is available, but the property "CellBackColor" is not available.
So my question is: Where did I do wrong that my XCell is somehow only supporting star.text.CellProperties. Did i query the wrong interface?
And how can i get access to the CellProperties that belong to the star.table.CellProperties object?
Thanks for your help. |
|