Hi Kurt,

Kurt Forrester wrote:
Cor,

Thanks for your response. I have looked all over the openoffice wiki's
and mail groups and have had no luck hence my posting here. Without
wanting to cross post I will continue using this thread (I do not know
how to move a thread on a forum -> api dev). I however don't think your
suggestion has addressed the issue that I am having. I wish to add a
caption to a table not format the leading row of the table. The caption
is a auto numbered field that increments relative to the preceding
tables in a document. Normally I can achieve this using the context menu
whilst in a table (menu item -> Caption...). I have implemented the code
as suggested by yourself and it does not fix the problem I am having.
Below is an example of what I am trying to achieve (Table X.Y to be
placed above the table). If you or anybody else has any further
suggestions I would be greatly appreciative.

Kind Regards,

Kurt

Table X.Y :  This is the text associated with the caption
--------------------------------------------------------
|             A1                 |              B1               |
--------------------------------------------------------
|             A2                 |              B2               |
--------------------------------------------------------


The intrinsic function of context menu -> Caption is nothing else than inserting a paragraph before/behind the table as specified in the caption dialog. There exists no relation between this paragraph and the table says, that the paragraph is the caption for a certain table.

Thus, I think it will be no problem for you to insert such a paragraph into the text document. The only special thing about this paragraph is that it contains a number range field for tables.

Best regards, Oliver.

--
=======================================================================
Sun Microsystems GmbH    Oliver-Rainer Wittmann
Nagelsweg 55             Software Engineer - OpenOffice.org/StarOffice
20097 Hamburg
Germany                  Fax:   (+49 40) 23 646 955
http://www.sun.de        mailto:[email protected]
-----------------------------------------------------------------------
Sitz der Gesellschaft:
Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Amtsgericht Muenchen: HRB 161028
Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer
Vorsitzender des Aufsichtsrates: Martin Haering

=======================================================================
Oliver-Rainer Wittmann (od) - 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