List Info

Thread: Re: Extension - Display additional information on the left side of each table / para




Re: Extension - Display additional information on the left side of each table / para
user name
2007-11-05 01:45:57
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/Gu
llFOSS

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesw.openoffice.org
For additional commands, e-mail: dev-helpsw.openoffice.org


Re: Extension - Display additional information on the left side of each table / para
user name
2007-11-05 08:36:32
Hallo Frank,

> sounds a bit related to notes, did you already had a
look at
>
> http:
//wiki.services.openoffice.org/wiki/Notes2

yes, but just 10 minutes of reading. I'm going to explore
this project tomorrow.

> 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)?

No, it was my bad explanation. I mean on a page (white
background),
but on the left side (outside the gray rectangle, which
contains text
elements).

> 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?

This must be implemented as an extension. So UNO API only.
No touch
OpenOffice.org source code. To be more specific, this should
work with
2.2.x and 2.3.x versions.

The idea behind this extension is very simple ...

We have a special comparison tool inside content management
system.
This tool can compare ODT documents and display changes. We
would like
to improve it and we need to tag paragraphs / tables with
some
attribute (just call it key).

This key should be added automatically to all new paragraphs
/ tables.
This key should be stored within paragraphs / tables. So,
when you
move a table from page 1 to page 10, it should have same
key. Same for
paragraphs. This key shouldn't be visible / editable for
common users
- so we can't use table name for this purpose for example,
...

When you'll have this extension, all keys will be visible on
the left
side (left margin of a page) of each paragraph / table. When
I move a
table, this information should be still on left side of a
table. It
moves with a table.

With our extension, you should be able to show / hide these
keys and
edit them when they are visible.

Result is - I have a document with table on a page 1. I have
a new
revision of this document where our table was moved from
page 1 to
page 10 and content of cell A1 was modified. Our comparison
tool
should display information like - table XYZ was moved from
page 1 to
page 10 and content of cell A1 was modified. Same for
paragraphs.

This is still research, I'm just trying to figure out if
this is
possible and how much time it can take.

Best regards,

-- 
Robert Vojta

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribesw.openoffice.org
For additional commands, e-mail: dev-helpsw.openoffice.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )