Difference between revisions of "Table Style in Writerfilter"

From Apache OpenOffice Wiki
Jump to: navigation, search
Line 1: Line 1:
Table style refers to table's border styles, text's font properties, background color. It is mainly decided by styles.xml from [[Office Open XML]].
+
<?xml version="1.0" encoding="gb2312"?>
 +
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 +
              "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 +
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
 +
<head>
 +
<title>Table style refers to table's border styles, text's font properties, background color. It is mainly decided by styles.xml from [[Office Open XML]].</title>
 +
<meta http-equiv="Content-Type" content="text/html;charset=gb2312"/>
 +
<meta name="title" content="Table style refers to table's border styles, text's font properties, background color. It is mainly decided by styles.xml from [[Office Open XML]]."/>
 +
<meta name="generator" content="Org-mode"/>
 +
<meta name="generated" content="2012-08-14 19:44:50 "/>
 +
<meta name="author" content=""/>
 +
<meta name="description" content=""/>
 +
<meta name="keywords" content=""/>
 +
<style type="text/css">
 +
<!--/*--><![CDATA[/*><!--*/
 +
  html { font-family: Times, serif; font-size: 12pt; }
 +
  .title  { text-align: center; }
 +
  .todo  { color: red; }
 +
  .done  { color: green; }
 +
  .tag    { background-color: #add8e6; font-weight:normal }
 +
  .target { }
 +
  .timestamp { color: #bebebe; }
 +
  .timestamp-kwd { color: #5f9ea0; }
 +
  .right  {margin-left:auto; margin-right:0px;  text-align:right;}
 +
  .left  {margin-left:0px;  margin-right:auto; text-align:left;}
 +
  .center {margin-left:auto; margin-right:auto; text-align:center;}
 +
  p.verse { margin-left: 3% }
 +
  pre {
 +
border: 1pt solid #AEBDCC;
 +
background-color: #F3F5F7;
 +
padding: 5pt;
 +
font-family: courier, monospace;
 +
        font-size: 90%;
 +
        overflow:auto;
 +
  }
 +
  table { border-collapse: collapse; }
 +
  td, th { vertical-align: top;  }
 +
  th.right  { text-align:center;  }
 +
  th.left  { text-align:center;  }
 +
  th.center { text-align:center; }
 +
  td.right  { text-align:right;  }
 +
  td.left  { text-align:left;  }
 +
  td.center { text-align:center; }
 +
  dt { font-weight: bold; }
 +
  div.figure { padding: 0.5em; }
 +
  div.figure p { text-align: center; }
 +
  div.inlinetask {
 +
    padding:10px;
 +
    border:2px solid gray;
 +
    margin:10px;
 +
    background: #ffffcc;
 +
  }
 +
  textarea { overflow-x: auto; }
 +
  .linenr { font-size:smaller }
 +
  .code-highlighted {background-color:#ffff00;}
 +
  .org-info-js_info-navigation { border-style:none; }
 +
  #org-info-js_console-label { font-size:10px; font-weight:bold;
 +
                              white-space:nowrap; }
 +
  .org-info-js_search-highlight {background-color:#ffff00; color:#000000;
 +
                                font-weight:bold; }
 +
  /*]]>*/-->
 +
</style>
 +
<script type="text/javascript">
 +
<!--/*--><![CDATA[/*><!--*/
 +
function CodeHighlightOn(elem, id)
 +
{
 +
  var target = document.getElementById(id);
 +
  if(null != target) {
 +
    elem.cacheClassElem = elem.className;
 +
    elem.cacheClassTarget = target.className;
 +
    target.className = "code-highlighted";
 +
    elem.className  = "code-highlighted";
 +
  }
 +
}
 +
function CodeHighlightOff(elem, id)
 +
{
 +
  var target = document.getElementById(id);
 +
  if(elem.cacheClassElem)
 +
    elem.className = elem.cacheClassElem;
 +
  if(elem.cacheClassTarget)
 +
    target.className = elem.cacheClassTarget;
 +
}
 +
/*]]>*///-->
 +
</script>
  
 +
</head>
 +
<body>
 +
 +
<div id="preamble">
 +
 +
</div>
 +
 +
<div id="content">
 +
<h1 class="title">Table style refers to table's border styles, text's font properties, background color. It is mainly decided by styles.xml from [[Office Open XML]].</h1>
 +
 +
 +
<p>
 +
Assume there is styles.xml from docx as below:
 +
        &lt;w:style w:type="table" w:styleId="DarkList-Accent2"&gt;
 +
                &lt;w:tcPr&gt;
 +
                        &lt;w:shd w:val="clear" w:color="auto" w:fill="C0504D" w:themeFill="accent2"/&gt;
 +
                &lt;/w:tcPr&gt;
 +
                # &hellip;
 +
                &lt;w:tblStylePr w:type="firstRow"&gt;
 +
                        &lt;w:pPr&gt;
 +
                                &lt;w:spacing w:before="0" w:after="0" w:line="240" w:lineRule="auto"/&gt;
 +
                        &lt;/w:pPr&gt;
 +
                        &lt;w:rPr&gt;
 +
                                &lt;w:b/&gt;
 +
                                &lt;w:bCs/&gt;
 +
                                &lt;w:color w:val="FFFFFF" w:themeColor="background1"/&gt;
 +
                        &lt;/w:rPr&gt;
 +
                        &lt;w:tblPr/&gt;
 +
                        &lt;w:tcPr&gt;
 +
                                &lt;w:tcBorders&gt;
 +
                                        &lt;w:top w:val="single" w:sz="18" w:space="0" w:color="auto"/&gt;
 +
                                        &lt;w:left w:val="nil"/&gt;
 +
                                        &lt;w:bottom w:val="single" w:sz="18" w:space="0" w:color="auto"/&gt;
 +
                                        &lt;w:right w:val="nil"/&gt;
 +
                                        &lt;w:insideH w:val="nil"/&gt;
 +
                                        &lt;w:insideV w:val="nil"/&gt;
 +
                                &lt;/w:tcBorders&gt;
 +
                                &lt;w:shd w:val="clear" w:color="auto" w:fill="4BACC6" w:themeFill="accent5"/&gt;
 +
                        &lt;/w:tcPr&gt;
 +
                &lt;/w:tblStylePr&gt;
 +
        &lt;/w:style&gt;
 +
</p>
 +
 +
 +
<p>
 
== Background Color ==  
 
== Background Color ==  
 
Include cell/row/table's background color.
 
Include cell/row/table's background color.
 +
</p>
 +
<p>
 +
=== wholeTable ===
 +
</p>
 +
<p>
 +
The w:tcPr under w:style is applied for whole table.
 +
So, the background color of whole table should be applied with fill color "C0504D" and its theme should be "accent2".
 +
</p>
 +
<p>
 +
        &lt;w:style w:type="table" w:styleId="DarkList-Accent2"&gt;
 +
                &lt;w:tcPr&gt;
 +
                        &lt;w:shd w:val="clear" w:color="auto" w:fill="C0504D" w:themeFill="accent2"/&gt;
 +
                &lt;/w:tcPr&gt;
 +
        &lt;/w:style&gt;
 +
</p>
 +
<p>
 +
=== firstRow and others ===
 +
</p>
 +
<p>
 +
For first row of table, below firstRow tblStylePr will be applied with fill color "4BACC6" and its theme should be "accent5".
 +
It will overwrite related color and theme from whole table mentioned above.
 +
</p>
 +
<p>
 +
                &lt;w:tblStylePr w:type="firstRow"&gt;
 +
                # &hellip;
 +
                        &lt;w:tcPr&gt;
 +
                        # &hellip;
 +
                                &lt;w:shd w:val="clear" w:color="auto" w:fill="4BACC6" w:themeFill="accent5"/&gt;
 +
                        &lt;/w:tcPr&gt;
 +
                &lt;/w:tblStylePr&gt;
 +
</p>
 +
<p>
 +
There can be also up to 12 types of tblStyle here. They are:
 +
</p>
 +
<div id="table-of-contents">
 +
<h2>Table of Contents</h2>
 +
<div id="text-table-of-contents">
 +
<ul>
 +
<li><a href="#sec-1">1 firstRow                      #first row</a></li>
 +
<li><a href="#sec-2">2 lastRow                      #last row</a></li>
 +
<li><a href="#sec-3">3 firstCol                      #first column</a></li>
 +
<li><a href="#sec-4">4 lastCol                      #last column</a></li>
 +
<li><a href="#sec-5">5 band1Vert                    #odd column</a></li>
 +
<li><a href="#sec-6">6 band2Vert                    #even column</a></li>
 +
<li><a href="#sec-7">7 band1Horz                    #odd row</a></li>
 +
<li><a href="#sec-8">8 band2Horz                    #even row</a></li>
 +
<li><a href="#sec-9">9 neCell                        #last cell in first row</a></li>
 +
<li><a href="#sec-10">10 nwCell                        #first cell in first row</a></li>
 +
<li><a href="#sec-11">11 seCell                        #last cell in last row</a></li>
 +
<li><a href="#sec-12">12 swCell                        #first cell in last row</a></li>
 +
<li><a href="#sec-13">13 firstRow</a></li>
 +
<li><a href="#sec-14">14 lastRow</a></li>
 +
<li><a href="#sec-15">15 firstCol</a></li>
 +
<li><a href="#sec-16">16 lastCol</a></li>
 +
<li><a href="#sec-17">17 band1Vert</a></li>
 +
<li><a href="#sec-18">18 band2Vert</a></li>
 +
<li><a href="#sec-19">19 band1Horz</a></li>
 +
<li><a href="#sec-20">20 band2Horz</a></li>
 +
</ul>
 +
</div>
 +
</div>
  
 +
<div id="outline-container-1" class="outline-2">
 +
<h2 id="sec-1"><span class="section-number-2">1</span> firstRow                      #first row</h2>
 +
<div class="outline-text-2" id="text-1">
  
 +
</div>
  
== Font ==
+
</div>
Including font size, bold, italic, color, strike-through, underline, and so on.
+
  
== Border ==
+
<div id="outline-container-2" class="outline-2">
 +
<h2 id="sec-2"><span class="section-number-2">2</span> lastRow                      #last row</h2>
 +
<div class="outline-text-2" id="text-2">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-3" class="outline-2">
 +
<h2 id="sec-3"><span class="section-number-2">3</span> firstCol                      #first column</h2>
 +
<div class="outline-text-2" id="text-3">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-4" class="outline-2">
 +
<h2 id="sec-4"><span class="section-number-2">4</span> lastCol                      #last column</h2>
 +
<div class="outline-text-2" id="text-4">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-5" class="outline-2">
 +
<h2 id="sec-5"><span class="section-number-2">5</span> band1Vert                    #odd column</h2>
 +
<div class="outline-text-2" id="text-5">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-6" class="outline-2">
 +
<h2 id="sec-6"><span class="section-number-2">6</span> band2Vert                    #even column</h2>
 +
<div class="outline-text-2" id="text-6">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-7" class="outline-2">
 +
<h2 id="sec-7"><span class="section-number-2">7</span> band1Horz                    #odd row</h2>
 +
<div class="outline-text-2" id="text-7">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-8" class="outline-2">
 +
<h2 id="sec-8"><span class="section-number-2">8</span> band2Horz                    #even row</h2>
 +
<div class="outline-text-2" id="text-8">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-9" class="outline-2">
 +
<h2 id="sec-9"><span class="section-number-2">9</span> neCell                        #last cell in first row</h2>
 +
<div class="outline-text-2" id="text-9">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-10" class="outline-2">
 +
<h2 id="sec-10"><span class="section-number-2">10</span> nwCell                        #first cell in first row</h2>
 +
<div class="outline-text-2" id="text-10">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-11" class="outline-2">
 +
<h2 id="sec-11"><span class="section-number-2">11</span> seCell                        #last cell in last row</h2>
 +
<div class="outline-text-2" id="text-11">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-12" class="outline-2">
 +
<h2 id="sec-12"><span class="section-number-2">12</span> swCell                        #first cell in last row</h2>
 +
<div class="outline-text-2" id="text-12">
 +
 
 +
 
 +
<p>
 +
=== tblLook and cnfStyle ===
 +
</p>
 +
<p>
 +
With above basic knowledge, we now can get further.
 +
For example, for the first cell in first row, which tblStyle should take effect, firstRow, firstCol, nwCell?
 +
Which one has highest priority?
 +
The answer is it depends on the tblLook of whole table, cnfStyle of the row and the cell.
 +
</p>
 +
<p>
 +
Take below cell in a table from document.xml for example:
 +
</p>
 +
<p>
 +
        &lt;w:tbl&gt;
 +
                &lt;w:tblPr&gt;
 +
                # &hellip;
 +
                        &lt;w:tblLook w:val="04A0" w:firstRow="1" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:noHBand="0" w:noVBand="1"/&gt;
 +
                &lt;/w:tblPr&gt;
 +
                &lt;w:tr w:rsidR="001662F7" w:rsidTr="00C76FCB"&gt;
 +
                        &lt;w:trPr&gt;
 +
                                &lt;w:cnfStyle w:val="100000000000" w:firstRow="1" w:lastRow="0" w:firstColumn="0" w:lastColumn="0" w:oddVBand="0" w:evenVBand="0" w:oddHBand="0" w:evenHBand="0" w:firstRowFirstColumn="0" w:firstRowLastColumn="0" w:lastRowFirstColumn="0" w:lastRowLastColumn="0"/&gt;
 +
                        &lt;/w:trPr&gt;
 +
                        &lt;w:tc&gt;
 +
                                &lt;w:tcPr&gt;
 +
                                        &lt;w:cnfStyle w:val="001000000100" w:firstRow="0" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:oddVBand="0" w:evenVBand="0" w:oddHBand="0" w:evenHBand="0" w:firstRowFirstColumn="1" w:firstRowLastColumn="0" w:lastRowFirstColumn="0" w:lastRowLastColumn="0"/&gt;
 +
                                        &lt;w:tcW w:w="4261" w:type="dxa"/&gt;
 +
                                &lt;/w:tcPr&gt;
 +
                                # &hellip;
 +
                        &lt;/w:tc&gt;
 +
                &lt;/w:tr&gt;
 +
        &lt;/w:tbl&gt;
 +
</p>
 +
<p>
 +
Based on description from <a href="#Office-Open-XML">Office Open XML</a>, tblLook decides whether following tblStyle can be applied on table or not:
 +
</p></div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-13" class="outline-2">
 +
<h2 id="sec-13"><span class="section-number-2">13</span> firstRow</h2>
 +
<div class="outline-text-2" id="text-13">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-14" class="outline-2">
 +
<h2 id="sec-14"><span class="section-number-2">14</span> lastRow</h2>
 +
<div class="outline-text-2" id="text-14">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-15" class="outline-2">
 +
<h2 id="sec-15"><span class="section-number-2">15</span> firstCol</h2>
 +
<div class="outline-text-2" id="text-15">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-16" class="outline-2">
 +
<h2 id="sec-16"><span class="section-number-2">16</span> lastCol</h2>
 +
<div class="outline-text-2" id="text-16">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-17" class="outline-2">
 +
<h2 id="sec-17"><span class="section-number-2">17</span> band1Vert</h2>
 +
<div class="outline-text-2" id="text-17">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-18" class="outline-2">
 +
<h2 id="sec-18"><span class="section-number-2">18</span> band2Vert</h2>
 +
<div class="outline-text-2" id="text-18">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-19" class="outline-2">
 +
<h2 id="sec-19"><span class="section-number-2">19</span> band1Horz</h2>
 +
<div class="outline-text-2" id="text-19">
 +
 
 +
</div>
 +
 
 +
</div>
 +
 
 +
<div id="outline-container-20" class="outline-2">
 +
<h2 id="sec-20"><span class="section-number-2">20</span> band2Horz</h2>
 +
<div class="outline-text-2" id="text-20">
 +
 
 +
 
 +
<p>
 +
That means, even there is firstRow tblStyle exisiting in styles.xml, if tblLook forbids using firstRow, you should not expect to apply it on the row.
 +
</p>
 +
 
 +
<p>
 +
== Font Properties ==
 +
Including font size, bold, italic, color, strike-through, underline, and so on.
 +
</p>
 +
<p>
 +
== Border Styles ==
 
Including border's style, color, and so on.
 
Including border's style, color, and so on.
 +
</p>
 +
 +
<p>
 +
<a href="#Category-Office-Open-XML">Category:Office Open XML</a>
 +
<a href="#Category-Filter">Category:Filter</a>
 +
</p>
 +
</div>
 +
</div>
 +
</div>
  
 +
<div id="postamble">
 +
<p class="date">Date: 2012-08-14 19:44:50 </p>
 +
<p class="author">Author: </p>
 +
<p class="creator">Org version 7.8.11 with Emacs version 24</p>
 +
<a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>
  
[[Category:Office Open XML]]
+
</div>
[[Category:Filter]]
+
</body>
 +
</html>

Revision as of 11:43, 14 August 2012

<?xml version="1.0" encoding="gb2312"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

              "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Table style refers to table's border styles, text's font properties, background color. It is mainly decided by styles.xml from Office Open XML.</title> <meta http-equiv="Content-Type" content="text/html;charset=gb2312"/> <meta name="title" content="Table style refers to table's border styles, text's font properties, background color. It is mainly decided by styles.xml from Office Open XML."/> <meta name="generator" content="Org-mode"/> <meta name="generated" content="2012-08-14 19:44:50 "/> <meta name="author" content=""/> <meta name="description" content=""/> <meta name="keywords" content=""/> <style type="text/css">

<![CDATA[/*>

</style> <script type="text/javascript"> <![CDATA[/*> </script>

</head> <body>

Table style refers to table's border styles, text's font properties, background color. It is mainly decided by styles.xml from Office Open XML.


Assume there is styles.xml from docx as below: <w:style w:type="table" w:styleId="DarkList-Accent2"> <w:tcPr> <w:shd w:val="clear" w:color="auto" w:fill="C0504D" w:themeFill="accent2"/> </w:tcPr> # … <w:tblStylePr w:type="firstRow"> <w:pPr> <w:spacing w:before="0" w:after="0" w:line="240" w:lineRule="auto"/> </w:pPr> <w:rPr> <w:b/> <w:bCs/> <w:color w:val="FFFFFF" w:themeColor="background1"/> </w:rPr> <w:tblPr/> <w:tcPr> <w:tcBorders> <w:top w:val="single" w:sz="18" w:space="0" w:color="auto"/> <w:left w:val="nil"/> <w:bottom w:val="single" w:sz="18" w:space="0" w:color="auto"/> <w:right w:val="nil"/> <w:insideH w:val="nil"/> <w:insideV w:val="nil"/> </w:tcBorders> <w:shd w:val="clear" w:color="auto" w:fill="4BACC6" w:themeFill="accent5"/> </w:tcPr> </w:tblStylePr> </w:style>


Background Color

Include cell/row/table's background color.

wholeTable

The w:tcPr under w:style is applied for whole table. So, the background color of whole table should be applied with fill color "C0504D" and its theme should be "accent2".

<w:style w:type="table" w:styleId="DarkList-Accent2"> <w:tcPr> <w:shd w:val="clear" w:color="auto" w:fill="C0504D" w:themeFill="accent2"/> </w:tcPr> </w:style>

firstRow and others

For first row of table, below firstRow tblStylePr will be applied with fill color "4BACC6" and its theme should be "accent5". It will overwrite related color and theme from whole table mentioned above.

<w:tblStylePr w:type="firstRow"> # … <w:tcPr> # … <w:shd w:val="clear" w:color="auto" w:fill="4BACC6" w:themeFill="accent5"/> </w:tcPr> </w:tblStylePr>

There can be also up to 12 types of tblStyle here. They are:

Table of Contents

  • <a href="#sec-1">1 firstRow #first row</a>
  • <a href="#sec-2">2 lastRow #last row</a>
  • <a href="#sec-3">3 firstCol #first column</a>
  • <a href="#sec-4">4 lastCol #last column</a>
  • <a href="#sec-5">5 band1Vert #odd column</a>
  • <a href="#sec-6">6 band2Vert #even column</a>
  • <a href="#sec-7">7 band1Horz #odd row</a>
  • <a href="#sec-8">8 band2Horz #even row</a>
  • <a href="#sec-9">9 neCell #last cell in first row</a>
  • <a href="#sec-10">10 nwCell #first cell in first row</a>
  • <a href="#sec-11">11 seCell #last cell in last row</a>
  • <a href="#sec-12">12 swCell #first cell in last row</a>
  • <a href="#sec-13">13 firstRow</a>
  • <a href="#sec-14">14 lastRow</a>
  • <a href="#sec-15">15 firstCol</a>
  • <a href="#sec-16">16 lastCol</a>
  • <a href="#sec-17">17 band1Vert</a>
  • <a href="#sec-18">18 band2Vert</a>
  • <a href="#sec-19">19 band1Horz</a>
  • <a href="#sec-20">20 band2Horz</a>

1 firstRow #first row

2 lastRow #last row

3 firstCol #first column

4 lastCol #last column

5 band1Vert #odd column

6 band2Vert #even column

7 band1Horz #odd row

8 band2Horz #even row

9 neCell #last cell in first row

10 nwCell #first cell in first row

11 seCell #last cell in last row

12 swCell #first cell in last row


tblLook and cnfStyle

With above basic knowledge, we now can get further. For example, for the first cell in first row, which tblStyle should take effect, firstRow, firstCol, nwCell? Which one has highest priority? The answer is it depends on the tblLook of whole table, cnfStyle of the row and the cell.

Take below cell in a table from document.xml for example:

<w:tbl> <w:tblPr> # … <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:tr w:rsidR="001662F7" w:rsidTr="00C76FCB"> <w:trPr> <w:cnfStyle w:val="100000000000" w:firstRow="1" w:lastRow="0" w:firstColumn="0" w:lastColumn="0" w:oddVBand="0" w:evenVBand="0" w:oddHBand="0" w:evenHBand="0" w:firstRowFirstColumn="0" w:firstRowLastColumn="0" w:lastRowFirstColumn="0" w:lastRowLastColumn="0"/> </w:trPr> <w:tc> <w:tcPr> <w:cnfStyle w:val="001000000100" w:firstRow="0" w:lastRow="0" w:firstColumn="1" w:lastColumn="0" w:oddVBand="0" w:evenVBand="0" w:oddHBand="0" w:evenHBand="0" w:firstRowFirstColumn="1" w:firstRowLastColumn="0" w:lastRowFirstColumn="0" w:lastRowLastColumn="0"/> <w:tcW w:w="4261" w:type="dxa"/> </w:tcPr> # … </w:tc> </w:tr> </w:tbl>

Based on description from <a href="#Office-Open-XML">Office Open XML</a>, tblLook decides whether following tblStyle can be applied on table or not:

13 firstRow

14 lastRow

15 firstCol

16 lastCol

17 band1Vert

18 band2Vert

19 band1Horz

20 band2Horz


That means, even there is firstRow tblStyle exisiting in styles.xml, if tblLook forbids using firstRow, you should not expect to apply it on the row.

Font Properties

Including font size, bold, italic, color, strike-through, underline, and so on.

Border Styles

Including border's style, color, and so on.

<a href="#Category-Office-Open-XML">Category:Office Open XML</a> <a href="#Category-Filter">Category:Filter</a>

Date: 2012-08-14 19:44:50

Author:

Org version 7.8.11 with Emacs version 24

<a href="http://validator.w3.org/check?uri=referer">Validate XHTML 1.0</a>

</body> </html>

Personal tools