Check if text in cell is wrapped or not

The Application Programming Interface and the OASIS Open Document Format

Check if text in cell is wrapped or not

Postby askell » Tue Apr 23, 2013 6:21 am

Hi All

I need to manually split text between cells using API, i.e. I want to know exact maximum number of characters of given text with given font which will fit the cell without wrapping (no red triangle).
I am currently using magic number, e.g. 31 character, but in this case if text contains wide characters, cell becomes overflowed and if there is no wide characters cell looks under-filling.

So is there any approach for this task except manually calculating string width using array of characters widths?

http://www.openoffice.org/api/docs/comm ... extWrapped is not solution because it only shows if wrapping is enabled or not for cell, but not if it actually wrapped

Thanks.
OpenOffice 3.3 on Windows 7
askell
 
Posts: 1
Joined: Tue Apr 23, 2013 6:11 am

Return to UNO API and ODF

Who is online

Users browsing this forum: No registered users and 3 guests