Hi Robert,

On 02.11.2007 14:15, Robert Vojta wrote:

I would like to write an extension, which is able to display some text
in rectangle on the left side of each table / paragraph.

sounds a bit related to notes, did you already had a look at

http://wiki.services.openoffice.org/wiki/Notes2

Left side of
each table / paragraph means place between page border and canvas
border. This text should be directly editable in this rectangle or
provide context menu to start own dialog for editing.

This extension should display rectangles / texts only and only if
there is a special user defined attribute stored inside Writer's
DocumentInfo.

The last condition is, that this information is not printable. IOW
only visible when editing document and stored within ODT only (other
formats like DOC, PDF, ... shouldn't contain this information).

I read Writer's chapter in the Developer's Guide, but I'm not still
sure what approach I should take. I was thinking about TextFrames,
intercepting Save, SaveAs, Print calls, etc. I would like to hear an
opinion from more experienced people. What approach should I take? Or
Notes?

I'm not sure if I understand you correctly. Do you mean that the rectangle should be located left to the page (on the gray background)? Writer frames and drawing objects cannot be outside of the page margins. So this would require changes to the Writer core code. Do you intend to implement this feature completely using the UNO API? Or are you prepared to touch some core code?

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