Bug 101757 - Import and export OOXML table styles
Summary: Import and export OOXML table styles
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:ooxml
: 104689 (view as bug list)
Depends on:
Blocks: DOCX-Limitations Table-Styles DOCX-Tables
  Show dependency treegraph
 
Reported: 2016-08-27 17:51 UTC by Yousuf Philips (jay) (retired)
Modified: 2022-12-28 23:07 UTC (History)
8 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yousuf Philips (jay) (retired) 2016-08-27 17:51:50 UTC
With writer now able to handle table styles (bug 34391), as well as import and export ODF table styles, the importing and exporting of OOXML table styles is the next step forward.

Table styles are defined in the /word/styles.xml file as multiple <w:style w:type="table"> tags, and here is the default style assigned to inserted tables.

<w:style w:type="table" w:styleId="TableGrid">
  <w:name w:val="Table Grid" />
  <w:basedOn w:val="TableNormal" />
  <w:uiPriority w:val="59" />
  <w:rsid w:val="00CA4017" />
  <w:pPr>
    <w:spacing w:after="0" w:line="240" w:lineRule="auto" />
  </w:pPr>
  <w:tblPr>
    <w:tblInd w:w="0" w:type="dxa" />
    <w:tblBorders>
      <w:top w:val="single" w:sz="4" w:space="0" w:color="auto" />
      <w:left w:val="single" w:sz="4" w:space="0" w:color="auto" />
      <w:bottom w:val="single" w:sz="4" w:space="0" w:color="auto" />
      <w:right w:val="single" w:sz="4" w:space="0" w:color="auto" />
      <w:insideH w:val="single" w:sz="4" w:space="0" w:color="auto" />
      <w:insideV w:val="single" w:sz="4" w:space="0" w:color="auto" />
    </w:tblBorders>
    <w:tblCellMar>
      <w:top w:w="0" w:type="dxa" />
      <w:left w:w="108" w:type="dxa" />
      <w:bottom w:w="0" w:type="dxa" />
      <w:right w:w="108" w:type="dxa" />
    </w:tblCellMar>
  </w:tblPr>
</w:style>

Tables are associated with a table style (<w:tblStyle>) in /word/document.xml and define which properties/elements of the style are visible on the table or not (<w:tblLook>).

<w:tbl>
  <w:tblPr>
    <w:tblStyle w:val="TableGrid" />
    <w:tblW w:w="0" w:type="auto" />
    <w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="0" w:noVBand="1" />
  </w:tblPr>
</w:tbl>

More details can be found in the links below
http://officeopenxml.com/WPstyleTableStyles.php
Comment 1 Buovjaga 2016-12-18 18:09:52 UTC
*** Bug 104689 has been marked as a duplicate of this bug. ***