Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ODT tables lack styling #411

Open
potofcoffee opened this issue Nov 7, 2014 · 2 comments
Open

ODT tables lack styling #411

potofcoffee opened this issue Nov 7, 2014 · 2 comments

Comments

@potofcoffee
Copy link
Contributor

potofcoffee commented Nov 7, 2014

Tables in ODText export lack a lot of styling options -- most notably, even the most basic column width, which would be defined through column styles in odt. Also, some basic stuff like vertical alignment, borders and shading would be needed as a minimum.


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

@potofcoffee
Copy link
Contributor Author

Details on column width:
It seems like ODT defines cell width on a per-column basis exclusively(?). Right now, the only column definition in a table is a hardcoded one, like:

<table:table-column table:number-columns-repeated="3"/>

For tables with column width set (this might be retrieved from the cell widths of the first row?), there should be one definition per column, pointing to an associated style, like so:

<table:table-column table:style-name="a167ad.A"/>
<table:table-column table:style-name="a167ad.B"/>
<table:table-column table:style-name="a167ad.C"/>

These styles can then be included as usual, with the following properties:

<style:style style:name="a167ad.A" style:family="table-column">
      <style:table-column-properties style:column-width="3.5cm" style:rel-column-width="1757*"/>
</style:style>

potofcoffee added a commit to VolksmissionFreudenstadt/PHPWord that referenced this issue Nov 7, 2014
This patch introduces the column width styling for ODT described in issue PHPOffice#411.
potofcoffee added a commit to VolksmissionFreudenstadt/PHPWord that referenced this issue Nov 7, 2014
This patch introduces the column width styling for ODT described in issue PHPOffice#411.
@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If this is still an issue for you, please try to help by debugging it further and sharing your results.
Thank you for your contributions.

@github-actions github-actions bot added the Stale label Nov 18, 2022
@Progi1984 Progi1984 removed the Stale label Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants