Commit f1e5737f authored by Jean-Paul Smets's avatar Jean-Paul Smets

This patch make thes inclusion of subcontent much more generic. It may break existing templates.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@17339 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ec2edfa3
This diff is collapsed.
...@@ -14,16 +14,21 @@ OOo Template ...@@ -14,16 +14,21 @@ OOo Template
- <office:include> - <office:include>
Allow you to include another document in the current template (as an OLE attachment) Allow you to include another document in the current template (as an OLE attachment)
You must specify at least the path (can be either a single name or a path name using "/") You must specify at least the path (can be either a single name or a path name using "/").
and the type of the document (generally calc or writer), the default is zope's content-type. The type of document must be specified in the embedded document itself as
The size is always specified in centimeters (with attached "cm" suffix or not). a MIME type. Size parameters are defined, as in any ODF file,
You can specify the style (defined in the sylesheet) with the "style" option. within the <draw:frame> tag which encloses the <office:include> tag.
You can also pass "x" and "y" attributes for positioning, it's mainly useful for draw documents.
TODO: make sure it is useful or useless to pass x, y params (as before)
Example: Example:
<office:include type="calc" width="10.100cm" height="16.000cm" path="agenda" /> <draw:frame draw:style-name='gr1' svg:height='18.686cm' svg:width='27.367cm' draw:layer='layout'
<office:include width="15" height="20" path="/reports/my_report" /> svg:x='0cm' svg:y='0cm'
<office:include path="foo" /> tal:attributes="svg:height height | string:18.686cm;
svg:width width | string:27.367cm">
<office:include path="ERP5Site_viewOwnerBarChart" xlink:type='simple'
xlink:actuate='onLoad' xlink:show='embed'/>
</draw:frame>
- <office:include_img> - <office:include_img>
Not unlike <office:include>, allows you to include a picture document, refer to Not unlike <office:include>, allows you to include a picture document, refer to
...@@ -36,7 +41,7 @@ OOo Template ...@@ -36,7 +41,7 @@ OOo Template
or if a constraint is applied). or if a constraint is applied).
Example: Example:
<office:include x="5cm" y="1cm" path="foo" /> <office:include_img x="5cm" y="1cm" path="foo" />
Tips: Tips:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment