Center the text in a table cell
Posted: Tue Oct 20, 2015 11:17 am
Hello,
I develop a c++ project that manages OpenOffice 4.1.1 documents. I want to center the text in a table cell. I use for this the following instruction
There is no problem with the "BackColor" property but the "Alignment" property return an error. By default the first row has a center alignment and the others rows have a left alignment.
Could you tell me please the correct property to make a center alignment for all rows and if it's where i find the list the table property name and values
Thank you
I develop a c++ project that manages OpenOffice 4.1.1 documents. I want to center the text in a table cell. I use for this the following instruction
Code: Select all
Reference<XPropertySet> xTableProps (rTable,UNO_QUERY);
Any prop;
prop <<= (long)0x0000FF; // color blue
xTableProps->setPropertyValue(OUString::createFromAscii("BackColor"),prop);
Any prop;
prop <<= (sal_Int32)1;
xTableProps->setPropertyValue(OUString::createFromAscii("Alignment"),prop);
Could you tell me please the correct property to make a center alignment for all rows and if it's where i find the list the table property name and values
Thank you