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