Hi Robert, On 11/08/07 14:54, Robert Vojta wrote:
a) create / store tag task I can store them as user defined attributes. Tested with tables and it works. I have to test paragraphs too. I can intercept calls and catch insert table call. Tested with tables and it works. I have to test paragraphs too.
I guess this should work for paragraphs as well. You should also consider the case that a paragraph/table is copied to the document from the clipboard. But I think that after each of these operations you have to iterate over the document text and assign the tags to each untagged paragraph/table.
b) visualize tag task I'm looking for a way, how to easily visualize these tags. Visualization means - display and possibility to modify it.
As you already assumed, paragraph anchored frames or notes at position 0 of a paragraph are the way to go. Both of them are attached to the document content. Unfortunately you cannot assign a note or frame to a table, so you have to use the first paragraph in the first cell for this.
If the rectangles should always be visible for each paragraph/table, I guess you will tend to run out of space in the margin. The notes2 cws currently implements a new approach to visualize notes. For this Max developed a layout algorithm that assures, that the notes are positioned in a reasonable way. So I think notes are the better choice.
Using either of these two options, you have to take care to automatically insert the notes/frames after loading the document, remove them before storing/printing/pdffing the document and keeping the list of notes/frames up to date after operations that change the document content (insert/delete).
Hope this helps, 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]
