Re: [api-dev] How to force laying out of document
Kent Gibson wrote: 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. This should be enough IMHO. It is also debatable if retrieving the LayoutSize property should be already enough to force a layout calculation before the call returns. Why waiting? Further calls to the same property will not redo the layout as Writer knows if layouting is necessary or not. Best regards, Mathias -- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [api-dev] How to force laying out of document
thanks for the info. --- Fernand Vanrie [EMAIL PROTECTED] wrote: Kent Gibson schreef: Our approach is basically model-controller-view. We have one model which we wrote in java and we can create two different views, one in OpenOffice and one in In Design. For performance we have tried a mixed macro and java solution, but I am not sure with all the marshalling and unmarshalling that it really helped much for performance. I tried the cursor idea, you actually gave me the idea (thanks). It is normally faster, but, I had a couple of problems with it. a) it doesn't work with tables in frames. If you take the first xText and the last xText then it only measures from the first to the next to last cell. b) it doesn't seem to work with thick borders c) sometimes the measurements were not pixel, perfect, I think it had to do with the fact that the last line was not measured or something like that. OpenOffice is great, and I reckon its strength is it api. I would of course love to see more features that can let user render high quality document on the fly. For example this LayoutHeight property. I have a question are OpenOffice pdf's Pdf-x format. I believe that is what print ready pdfs with all the correct image information are called. PFX-x or whatever standard, but for the final PDF-produktion we use a commercial Danish product cold Publi-PDF from GrafikHuset who uses Adobe or Ghostscript as engine. All Commercial Printers uses CMYK and no RGB. Most PDF-producing Software have a lot of problems to transform the RGB based files (OO, Word etc...) to CMYK- PDF When producing the images, whe makes a high resolution CMYK-EPS and a low resolutuionRGB-TIFF. We start with RGB-images to make the Layout in OO and only just before we make the PDF we change the GraphicURL's to the CMYK-EPS images whithout changing the GrahicInformation (Crop, sise...). OO now shows just boxes with the new GraphicURL but the poscript print-engine lives EPS unchanged ito CMYK and we can now produce perfect CMYK-PDF. under the PDF-x standards. regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ 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]
Re: [api-dev] How to force laying out of document
Kent Gibson schreef: 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. Can you tell more about your aproch ? The results are getting pretty good (which really shows off the ability of OO). But we are having some peformance problems. We had the same project for QUARk Express but we stoped this and now we do the previeuw and the whole layout in OO. Then making high resolution PDF's ready for our printers. 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. I had similar problems, but resolved with putting the frame on the page, filling it with te conttent and the using a textcursor to measuring its exact height. I never trayed this layoutsize but is upose our method is a bit faster :-) 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. s 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[api-dev] How to force laying out of document
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]