Commit bc1ca5b4 authored by Jérome Perrin's avatar Jérome Perrin

add a new "inline-graphic" style for graphic, with wrap="none" set so that the...

add a new "inline-graphic" style for graphic, with wrap="none" set so that the graphic does not wrap the text

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@20194 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 186dae9f
...@@ -213,6 +213,9 @@ bWxQSwUGAAAAAAIAAgCeAAAAhwwAAAAA</string> </value> ...@@ -213,6 +213,9 @@ bWxQSwUGAAAAAAIAAgCeAAAAhwwAAAAA</string> </value>
<style:background-image/>\n <style:background-image/>\n
</style:table-cell-properties>\n </style:table-cell-properties>\n
</style:style>\n </style:style>\n
<style:style style:name="inline-graphic" style:family="graphic" style:parent-style-name="Graphics">\n
<style:graphic-properties style:run-through="foreground" style:wrap="none" style:number-wrapped-paragraphs="no-limit" style:wrap-contour="false" style:horizontal-pos="center" style:horizontal-rel="paragraph" style:mirror="none" fo:clip="rect(0cm 0cm 0cm 0cm)" draw:luminance="0%" draw:contrast="0%" draw:red="0%" draw:green="0%" draw:blue="0%" draw:gamma="100%" draw:color-inversion="false" draw:image-opacity="100%" draw:color-mode="standard"/>\n
</style:style>\n
</office:automatic-styles>\n </office:automatic-styles>\n
<office:body>\n <office:body>\n
<office:text>\n <office:text>\n
...@@ -304,7 +307,8 @@ bWxQSwUGAAAAAAIAAgCeAAAAhwwAAAAA</string> </value> ...@@ -304,7 +307,8 @@ bWxQSwUGAAAAAAIAAgCeAAAAhwwAAAAA</string> </value>
\n \n
<text:p text:style-name=\'field-content-center\'\n <text:p text:style-name=\'field-content-center\'\n
tal:define="size python: modules[\'Products.ERP5.Document.Image\'].getSizeFromImageDisplay(field.get_value(\'image_display\'))">\n tal:define="size python: modules[\'Products.ERP5.Document.Image\'].getSizeFromImageDisplay(field.get_value(\'image_display\'))">\n
<office:include_img tal:attributes="width python: (size and size[0] or 100) / 20.;\n <office:include_img style="inline-graphic"\n
tal:attributes="width python: (size and size[0] or 100) / 20.;\n
path python: \'/\'.join(request.physicalPathFromURL(field.get_value(\'default\')));"/>\n path python: \'/\'.join(request.physicalPathFromURL(field.get_value(\'default\')));"/>\n
</text:p>\n </text:p>\n
</tal:block>\n </tal:block>\n
...@@ -329,7 +333,8 @@ bWxQSwUGAAAAAAIAAgCeAAAAhwwAAAAA</string> </value> ...@@ -329,7 +333,8 @@ bWxQSwUGAAAAAAIAAgCeAAAAhwwAAAAA</string> </value>
<tal:block tal:condition="python: field_type == \'ImageField\'">\n <tal:block tal:condition="python: field_type == \'ImageField\'">\n
<text:p text:style-name=\'field-content\'\n <text:p text:style-name=\'field-content\'\n
tal:define="size python: modules[\'Products.ERP5.Document.Image\'].getSizeFromImageDisplay(field.get_value(\'image_display\'))">\n tal:define="size python: modules[\'Products.ERP5.Document.Image\'].getSizeFromImageDisplay(field.get_value(\'image_display\'))">\n
<office:include_img tal:attributes="width python: (size and size[0] or 100) / 20.;\n <office:include_img style="inline-graphic"\n
tal:attributes="width python: (size and size[0] or 100) / 20.;\n
path python: \'/\'.join(request.physicalPathFromURL(field.get_value(\'default\')));"/>\n path python: \'/\'.join(request.physicalPathFromURL(field.get_value(\'default\')));"/>\n
</text:p>\n </text:p>\n
</tal:block>\n </tal:block>\n
......
34 35
\ No newline at end of file \ No newline at end of file
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