From 827cce0e6722af2f6b7f5e18084177c6f035cf16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com> Date: Wed, 15 Nov 2006 09:40:51 +0000 Subject: [PATCH] support left/right align on stat line git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11303 20353a03-c40f-0410-a6d1-a30d3c3de9de --- .../portal_skins/erp5_pdf_style/listbox_pdf_macro.xml | 3 ++- .../portal_skins/erp5_pdf_style/report_pdf.xml | 7 ++++++- bt5/erp5_pdf_style/bt/revision | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/listbox_pdf_macro.xml b/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/listbox_pdf_macro.xml index 06a2abc6e8..2b0bc9a40b 100644 --- a/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/listbox_pdf_macro.xml +++ b/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/listbox_pdf_macro.xml @@ -148,7 +148,8 @@ column_id python: column_item[0]">\n <tal:block tal:condition="python: column_property is not None">\n <td tal:attributes="colwidth python:\'%.2fcm\' % float(column_width[column_id])">\n - <para style="TableLastLine" tal:content="python: str(column_property)" />\n + <para style="TableLastLine" tal:content="string:${column_property}"\n + tal:attributes="style python:isinstance(column_property, (int, long, float)) and \'TableLastLineRightAligned\' or \'TableLastLineLeftAligned\'" />\n </td>\n </tal:block>\n <tal:block tal:condition="python: column_property is None">\n diff --git a/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/report_pdf.xml b/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/report_pdf.xml index 40f15abe47..8c12148472 100644 --- a/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/report_pdf.xml +++ b/bt5/erp5_pdf_style/SkinTemplateItem/portal_skins/erp5_pdf_style/report_pdf.xml @@ -94,6 +94,10 @@ <paragraphstyle name="TableStandardRightAligned" parent="Normal" fontname="Helvetica" fontsize="7" alignment="right" />\n <paragraphstyle name="TableHeader" parent="Normal" fontname="Helvetica-Oblique" fontsize="7" alignment="left" />\n <paragraphstyle name="TableLastLine" parent="Normal" fontname="Helvetica-Oblique" fontsize="7" alignment="right" />\n + <paragraphstyle name="TableLastLineLeftAligned" parent="Normal"\n + fontname="Helvetica-Oblique" fontsize="7" alignment="left" />\n + <paragraphstyle name="TableLastLineRightAligned" parent="Normal"\n + fontname="Helvetica-Oblique" fontsize="7" alignment="right" />\n \n <paragraphstyle name="Section1" parent="Normal" fontname="Helvetica-Bold" fontsize="10"/>\n <paragraphstyle name="Section2" leftindent="0.4cm" parent="Normal" fontname="Helvetica-Bold" fontsize="7"/>\n @@ -182,7 +186,8 @@ \n </pagetemplate>\n \n -</template> +</template>\n + ]]></string> </value> </item> diff --git a/bt5/erp5_pdf_style/bt/revision b/bt5/erp5_pdf_style/bt/revision index 7813681f5b..c7930257df 100644 --- a/bt5/erp5_pdf_style/bt/revision +++ b/bt5/erp5_pdf_style/bt/revision @@ -1 +1 @@ -5 \ No newline at end of file +7 \ No newline at end of file -- 2.30.9