< Gendoc
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The needs
Integrating content from Papyrus tables or Sirius tables into Gendoc result documents as MS Word tables or LibreOffice tables is necessary
as described in bug 515404
The principle
Gendoc
tag already exists, so the solution proposed is to have a pivot generic Table object, offered by a dedicated Gendoc metamodel, in order to generate all kinds of table the same way.
Dedicated acceleo bundles already existing for Papyrus and Sirius have a new service to transform their table to the Gendoc generic table .
An overview of the Gendoc table very simple metamodel
User overview
Papyrus table generation (with manual configuration of the table columns in the template)
- From a Papyrus model containing this table:
- Gendoc template fragment :
- Result in the word document produced by Gendoc :
Sirius table generation (with manual configuration of the table columns in the template)
- From a Sirius model containing this table:
- Gendoc template fragment :
- Result in the word document produced by Gendoc :
Sample of an automated table generation from a Papyrus table
From a Papyrus model containing several tables on a package
the following gendoc fragment allows a full table generation.
Note : Automated mode also works with Sirius
