https://bugs.documentfoundation.org/show_bug.cgi?id=101757

            Bug ID: 101757
           Summary: Import and export OOXML table styles
           Product: LibreOffice
           Version: Inherited From OOo
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Keywords: filter:ooxml
          Severity: enhancement
          Priority: medium
         Component: Writer
          Assignee: libreoffice-bugs@lists.freedesktop.org
          Reporter: philip...@hotmail.com
                CC: rb.hensc...@t-online.de
            Blocks: 88173, 101756

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


Referenced Bugs:

https://bugs.documentfoundation.org/show_bug.cgi?id=88173
[Bug 88173] [Meta] Tracking bug for limitations of DOCX (OOXML) format
https://bugs.documentfoundation.org/show_bug.cgi?id=101756
[Bug 101756] [META] Table styles bugs and enhancements
-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to