| 1 | <refentry id="row.element"> |
| 2 | <?dbhtml filename="row.html"?> |
| 3 | <refentryinfo> |
| 4 | <pubdate>$Date$</pubdate> |
| 5 | <releaseinfo>$Revision$</releaseinfo> |
| 6 | </refentryinfo> |
| 7 | |
| 8 | <refmeta> |
| 9 | <indexterm><primary>elements</primary> |
| 10 | <secondary>row</secondary></indexterm> |
| 11 | <refentrytitle>row</refentrytitle> |
| 12 | <refmiscinfo>Element</refmiscinfo> |
| 13 | </refmeta> |
| 14 | <refnamediv> |
| 15 | <refname>row</refname> |
| 16 | <refpurpose>&row.purpose;</refpurpose> |
| 17 | </refnamediv> |
| 18 | |
| 19 | &row.synopsis.gen; |
| 20 | <refsect1 condition='ref.description'><title>Description</title> |
| 21 | |
| 22 | <para> |
| 23 | A <sgmltag>Row</sgmltag> is a row in a table. It contains all of the cells |
| 24 | (<sgmltag>Entry</sgmltag>s or <sgmltag>EntryTbl</sgmltag>s) |
| 25 | that appear in that row. |
| 26 | </para> |
| 27 | |
| 28 | <refsect2><title>Processing expectations</title> |
| 29 | <para> |
| 30 | &calssemantics; |
| 31 | </para> |
| 32 | |
| 33 | <para> |
| 34 | Within a <sgmltag>Row</sgmltag>, cells are arranged horizontally from |
| 35 | the start of the row to the end. Cells can, but are not |
| 36 | required to, specify the column in which they occur, so it is |
| 37 | possible for a row to contain fewer cells than there are columns |
| 38 | in the table. This introduces missing cells, which are assumed |
| 39 | to be empty. These missing cells can occur anywhere in the row. |
| 40 | </para> |
| 41 | |
| 42 | <para> |
| 43 | Once a cell has been allocated to a column, subsequent cells may not |
| 44 | fill preceding columns. In other words, while three cells can specify |
| 45 | that they occur in columns 1, 3, and 5, they cannot specify that they |
| 46 | occur in columns 1, 5, and 3. Once a column is passed, you can never |
| 47 | go back. |
| 48 | </para> |
| 49 | |
| 50 | <para> |
| 51 | If cells do not specify the column in which they occur, they are |
| 52 | placed in the next available column. Calculation of the next |
| 53 | available column is complicated by horizontal and vertical |
| 54 | spanning. Cells from preceding rows can have a vertical span |
| 55 | that causes them to extend into the current row, thus occupying space in |
| 56 | the current row. These logically occupied cells are skipped |
| 57 | when looking for the next available column. Similarly, if a cell |
| 58 | has a horizontal span, it logically occupies the columns that |
| 59 | follow it. Cells can simultaneously span rows and columns. |
| 60 | </para> |
| 61 | |
| 62 | <para> |
| 63 | Each of the following conditions is an error: |
| 64 | |
| 65 | <itemizedlist> |
| 66 | <listitem><para>A cell spans beyond the boundries of the table. |
| 67 | </para></listitem> |
| 68 | |
| 69 | <listitem><para>A row contains more cells than there are columns |
| 70 | in the table. |
| 71 | </para></listitem> |
| 72 | |
| 73 | <listitem><para>The arrangement of cells in a row forces one or |
| 74 | more cells past the last column of the table. |
| 75 | </para></listitem> |
| 76 | </itemizedlist> |
| 77 | </para> |
| 78 | |
| 79 | </refsect2> |
| 80 | |
| 81 | |
| 82 | &row.parents.gen; |
| 83 | &row.children.gen; |
| 84 | </refsect1> |
| 85 | <refsect1 condition='ref.elem.attrdesc'><title>Attributes</title> |
| 86 | <variablelist> |
| 87 | <varlistentry><term>rowsep</term> |
| 88 | <listitem> |
| 89 | <para> |
| 90 | If <sgmltag class="attribute">RowSep</sgmltag> has the value 1 (true), then a |
| 91 | rule will be drawn below all the cells in this <sgmltag>Row</sgmltag> |
| 92 | (unless other, interior elements, suppress some or all of the rules). |
| 93 | A value of 0 (false) suppresses the rule. The rule below the last row |
| 94 | in the table is controlled by the <sgmltag class="attribute">Frame</sgmltag> |
| 95 | attribute of the enclosing <sgmltag>Table</sgmltag> or |
| 96 | <sgmltag>InformalTable</sgmltag> and the <sgmltag class="attribute">RowSep</sgmltag> |
| 97 | of the last row is ignored. If unspecified, this attribute is |
| 98 | inherited from enclosing elements. |
| 99 | </para> |
| 100 | </listitem> |
| 101 | </varlistentry> |
| 102 | <varlistentry><term>valign</term> |
| 103 | <listitem> |
| 104 | <para> |
| 105 | <sgmltag class="attribute">VAlign</sgmltag> specifies the vertical alignment |
| 106 | of text (and other elements) within the cells of this <sgmltag>Row</sgmltag>. |
| 107 | If no alignment is specified, it is inherited from enclosing |
| 108 | elements. |
| 109 | </para> |
| 110 | </listitem> |
| 111 | </varlistentry> |
| 112 | </variablelist> |
| 113 | </refsect1> |
| 114 | <refsect1 condition='ref.elem.seealso'><title>See Also</title> |
| 115 | &row.seealso.gen; |
| 116 | </refsect1> |
| 117 | <refsect1><title>Examples</title> |
| 118 | |
| 119 | &row.example.seealso.gen; |
| 120 | </refsect1> |
| 121 | </refentry> |
| 122 |