Hi Ian,

On 03/06/07 10:14, ianmcr wrote:

I translated the macro to C++ and the approach seems to work quite well. I
first iterate from the end to the start of the  document inserting pagebreak
markers (ie. pagebreak bookmarks) with paragraphs. Then I iterate forwards
checking the properties of the paragraph to find the start of a new page.
This works well for paragraphs. However, there is a problem with tables. If
a paragraph is a table and I insert a book mark is the bookmark a property
of the table "paragraph" or the table cell containing a paragraph?
This is an issue since a table can span the page break (ie. a table accross
mutiple pages.)

I don't think this bookmark solution is suitable for documents with tables. If there is a table with an automatic page break, each cell in the split line would have an automatic page break (if the line is allowed to split). In this case you would have to add the bookmark to the correct position inside each of these cells. I don't know if this is possible using the API, I guess it's not.

Best regards,

Frank

--
Frank Meies (fme) - OpenOffice.org Writer
OpenOffice.org Engineering at Sun: http://blogs.sun.com/GullFOSS

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

Reply via email to