Hi Anton,

On Sat, May 25, 2013 at 04:37:04PM +0400, Антон Борисов wrote:
> Hello, according to draw application menu it's possible to insert
> table to draw document by gui,
> I need to do this in extension,
> so question is it's possible or not?
> 
> i found 
> http://wiki.openoffice.org/wiki/Documentation/DevGuide/Charts/Creating_a_Chart_OLE_Object_in_Draw_and_Impress
> , maybe it's possible to insert table same way ?
> 
> some links or examples would help

A table is a shape, in Draw/Impress. You have to insert the table as you
insert any other shape. But the API side of this is completely
undocumented, and rather bugged: last time I tried to inspect a table
shape with Bernard Marcelly's introspection tool, OpenOffice crashed,
I guess that the situation didn't change much since this thread from
2009
http://openoffice.2283327.n4.nabble.com/com-sun-star-drawing-TableShape-td2772795.html
(this thread has some sample code in Basic)

Some general and API-related known issues:

- [IDL] missing documentation for css.drawing.TableShape
  https://issues.apache.org/ooo/show_bug.cgi?id=98458

- Add Cell and Table styles in Styles and Formatting
  https://issues.apache.org/ooo/show_bug.cgi?id=98469

- Incorrect style family in Draw style families
  https://issues.apache.org/ooo/show_bug.cgi?id=98470

- Sub-object of Draw table style can crash OpenOffice
  https://issues.apache.org/ooo/show_bug.cgi?id=98480


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina

Attachment: pgpayPGdfIAFA.pgp
Description: PGP signature

Reply via email to