We are using OpenOffice as a preview for Adobe In
Design. We have a model and we first render it using
OpenOffice as a preview and then later we can model it
in In Design.

The results are getting pretty good (which really
shows off the ability of OO). But we are having some
peformance problems.

One of our biggest problems right now is reliance on a
property called LayoutSize (which is new since 2.0.3).

We use this property to find out how big a frame with
automatic height is after it has content.

The problem as tl
(http://www.openoffice.org/issues/show_bug.cgi?id=63211)
explains "this value will only be usefull if the
document is already layouted." 

Which means in real terms that I sometimes have to
sleep for 2-3 seconds (or more) so that I can find out
how big the frame really is.

Is there anyway I can force the laying out of the
document. I have tried using the XRefreshable
interface and xTextDocument.reformat() and  but that
still does not seem to really do the trick.

I guess that a page is really layed out when content
reaches the end of the page. But in order to avoid
automatic page breaks and other problems with text
flow, I use a really long page and when I am finished
set the page size to something sensible, which means
that the content never gets to the end of the page.

Any help would be grand. Also if anyone has any tips
or tricks on how to avoid performance traps using the
api that would also be nice.

thanks,

kent

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to