10.1

Table Of Contents
table.rows = "2";
table.columns = "4";
table.maintainGeometry = "true";
table.operation = "CREATE";
spread.tables = new Table []{table};
Use the following object hierarchy:
ModifierRequest < Project < Layout < Spread < Table
To delete a table, provide the table's name or ID and set the operation attribute to "DELETE".
Adding text and picture cells to tables
To add a text cell, use XML like the following:
<CELL BOXTYPE="CT_TEXT" COLUMNCOUNT ="1">
<TEXT>
<STORY>
<RICHTEXT>Text goes here.</RICHTEXT>
</STORY>
</TEXT>
</CELL>
Note that the <TEXT> element must always contain a <STORY> element. A <STORY>
element can contain <PARAGRAPH> elements or simply <RICHTEXT> elements.
To add a picture cell, use XML like the following:
<CELL BOXTYPE="CT_PICT" COLUMNCOUNT ="1">
<CONTENT>MacintoshHD:DocPool:flower1.jpg</CONTENT>
<PICTURE FIT="CENTERPICTURE" />
</CELL>
Merging and splitting table cells
To merge table cells, use XML like the following:
<TABLE>
<ID NAME="table1"/>
<ROW ROWCOUNT="1" MERGEROWSPAN=1 >
<CELL COLCOUNT="1"><TEXT>...</TEXT></CELL>
<CELL COLCOUNT="2"><TEXT>...</TEXT></CELL>
</ROW>
<ROW ROWCOUNT="2">
<CELL COLCOUNT="1"><TEXT>...</TEXT></CELL>
<CELL COLCOUNT="2"><TEXT>...</TEXT></CELL>
</ROW>
<ROW ROWCOUNT="3">
<CELL COLCOUNT="1"><TEXT>...</TEXT></CELL>
<CELL COLCOUNT="2"><TEXT>...</TEXT></CELL>
</ROW>
</TABLE>
To split table cells, use XML like the following:
<TABLE>
<ID NAME="table1"/>
<ROW AUTOFIT="false" ROWCOUNT="5" ROWHEIGHT="60.9">
<CELL BOXTYPE="CT_TEXT" COLUMNCOUNT="2" SPLIT="true"/>
</ROW>
</TABLE>
Breaking a table across pages
To break a table across pages, use XML like the following:
<SPREAD>
<ID UID="1"/>
<PAGE MASTER="A-Master A" POSITION="RIGHTOFSPINE">
<ID UID="1"/>
</PAGE>
<TABLE COLOR="none" COLUMNS="2" MAINTAINGEOMETRY="false"
ROWS="3" AUTOFIT="rows">
<ID NAME="Table1"/>
<TABLEBREAK BREAKHEIGHT="140.251" MAINTAINLINK="true">
A GUIDE TO QUARKXPRESS SERVER 10.1 | 125
USING QUARKXPRESS SERVER