Commit 0d77a6d1 authored by Jérome Perrin's avatar Jérome Perrin

ods_style: define explicit style names for listbox header, data & stat rows

parent 161247d3
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
\n \n
<!-- title line itself is rendered in listbox_ods_macro --> \n <!-- title line itself is rendered in listbox_ods_macro --> \n
<tal:block tal:condition="not:listboxline/isTitleLine">\n <tal:block tal:condition="not:listboxline/isTitleLine">\n
<table:table-row>\n <table:table-row tal:attributes="table:style-name python: listboxline.isStatLine() and \'listbox_stat_row\' or \'listbox_data_row\'">\n
<tal:block tal:condition="python: listboxline.isDataLine()">\n <tal:block tal:condition="python: listboxline.isDataLine()">\n
<tal:block tal:repeat="empty_index python: xrange(0, max_section_depth)">\n <tal:block tal:repeat="empty_index python: xrange(0, max_section_depth)">\n
<table:table-cell table:style-name=\'report-column-title\'\n <table:table-cell table:style-name=\'report-column-title\'\n
......
...@@ -74,11 +74,11 @@ ...@@ -74,11 +74,11 @@
</tal:block> \n </tal:block> \n
\n \n
<table:table-header-rows>\n <table:table-header-rows>\n
<table:table-row table:style-name=\'ro4\'>\n <table:table-row table:style-name=\'listbox_header_row\'>\n
<tal:block tal:condition="python: is_report_tree_mode">\n <tal:block tal:condition="python: is_report_tree_mode">\n
<table:table-cell table:style-name=\'report-column-title\' table:number-columns-spanned=\'1\' office:value-type=\'string\' >\n <table:table-cell table:style-name=\'report-column-title\' table:number-columns-spanned=\'1\' office:value-type=\'string\' >\n
<tal:block tal:condition="listboxline/getSectionName">\n <tal:block tal:condition="listboxline/getSectionName">\n
<text:p tal:content="python: here.Localizer.erp5_ui.gettext(listboxline.getSectionName()).encode(\'utf-8\')"/>\n <text:p tal:content="python: here.Localizer.erp5_ui.gettext(listboxline.getSectionName()).encode(\'utf-8\')"/>\n
</tal:block>\n </tal:block>\n
</table:table-cell>\n </table:table-cell>\n
</tal:block>\n </tal:block>\n
...@@ -105,7 +105,7 @@ ...@@ -105,7 +105,7 @@
</tal:block>\n </tal:block>\n
\n \n
<tal:block tal:condition="not:display_header">\n <tal:block tal:condition="not:display_header">\n
<table:table-row table:style-name=\'ro4\'>\n <table:table-row table:style-name=\'listbox_header_row\'>\n
<tal:block tal:repeat="empty_index python: xrange(0, max_section_depth)">\n <tal:block tal:repeat="empty_index python: xrange(0, max_section_depth)">\n
<table:table-cell table:style-name=\'report-column-title\'\n <table:table-cell table:style-name=\'report-column-title\'\n
table:number-columns-spanned=\'1\'\n table:number-columns-spanned=\'1\'\n
......
...@@ -61,6 +61,17 @@ ...@@ -61,6 +61,17 @@
<style:style style:family=\'table-column\' style:name=\'co4\'>\n <style:style style:family=\'table-column\' style:name=\'co4\'>\n
<style:table-column-properties fo:break-before=\'auto\' style:column-width=\'2.267cm\'/>\n <style:table-column-properties fo:break-before=\'auto\' style:column-width=\'2.267cm\'/>\n
</style:style>\n </style:style>\n
\n
<style:style style:family=\'table-row\' style:name=\'listbox_header_row\'>\n
<style:table-row-properties fo:break-before=\'auto\' style:use-optimal-row-height=\'true\' style:row-height=\'1.5cm\'/>\n
</style:style>\n
<style:style style:family=\'table-row\' style:name=\'listbox_data_row\'>\n
<style:table-row-properties fo:break-before=\'auto\' style:use-optimal-row-height=\'true\' style:row-height=\'1.0cm\'/>\n
</style:style>\n
<style:style style:family=\'table-row\' style:name=\'listbox_stat_row\'>\n
<style:table-row-properties fo:break-before=\'auto\' style:use-optimal-row-height=\'true\' style:row-height=\'0.5cm\'/>\n
</style:style>\n
\n
<style:style style:family=\'table-row\' style:name=\'ro1\'>\n <style:style style:family=\'table-row\' style:name=\'ro1\'>\n
<style:table-row-properties fo:break-before=\'auto\' style:use-optimal-row-height=\'true\' style:row-height=\'2.91cm\'/>\n <style:table-row-properties fo:break-before=\'auto\' style:use-optimal-row-height=\'true\' style:row-height=\'2.91cm\'/>\n
</style:style>\n </style:style>\n
......
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