Re: [dev] Please Help: Getting the width / height sizes to create a RectangleShape to create a boundary box

2010-01-14 Thread Chris Fleischmann
Hello, I ended up solving my problem going about it the other way around adding the text to an auto expanding Textshape, then capturing the size that way. Thanks anyway... // get internal service factory of the document XMultiServiceFactory xWriterFactory_tmp =

[dev] Please Help: Getting the width / height sizes to create a RectangleShape to create a boundary box

2010-01-13 Thread Chris Fleischmann
Hello folks, just wondering if there is a more accurate way of converting pixels to 1/00mm in OpenOffice... Other than the 72 DPI type of calculation people use? Currently I do the following: if (fontDescriptor[i].Name.equalsIgnoreCase(Arial)) {

Re: [dev] Please Help: Getting the width / height sizes to create a RectangleShape to create a boundary box

2010-01-13 Thread Ariel Constenla-Haile
Hello Chris, On Wednesday 13 January 2010, 18:49, Chris Fleischmann wrote: Hello folks, just wondering if there is a more accurate way of converting pixels to 1/00mm in OpenOffice... Other than the 72 DPI type of calculation people use? Currently I do the following: if

Re: [dev] Please Help: Getting the width / height sizes to create a RectangleShape to create a boundary box

2010-01-13 Thread Chris Fleischmann
Thanks for the hints... I have since tried the following: // get internal service factory of the document XMultiServiceFactory xWriterFactory_tmp = (XMultiServiceFactory) UnoRuntime.queryInterface( XMultiServiceFactory.class, xWriterComponent_sdraw_dest);