8.1

Table Of Contents
To create a new box, use code like the following:
Spread spread = new Spread();
Box box = new Box();
Example, object
model
box.name = "textbox1";
Geometry geometry = new Geometry();
Position position = new Position();
position.top = "110";
position.left = "89";
position.bottom = "220";
position.right = "300";
geometry.position = position;
geometry.shape = "SH_RECT";
geometry.page = "1";
geometry.layer = "Default";
box.geometry = geometry;
box.boxType = "CT_TEXT";
box.operation = "CREATE";
spread.box = new Box[]{box};
Use the following object hierarchy:
ModifierRequest < Project < Layout < Spread < Box < Geometry
Deleting boxes
To delete a box, use the following parameters in the Modifier DTD:
"BOX (Modifier DTD)"
"ID (Modifier DTD)"
The following XML shows how these parameters work.
<PROJECT>
<LAYOUT>
<ID UID="Layout 1"/>
<SPREAD>
<ID UID="1"/>
<BOX OPERATION="DELETE">
<ID NAME="SERVICES"/>
</BOX>
</SPREAD>
</LAYOUT>
</PROJECT>
A preview of the QuarkXPress project with the box deleted.Response
HTTP Error #404
File not found.Alerts
QuarkXPress Server Error #43
This alert displays if you specify an invalid XML file or request a document that
is not in the document pool.
HTTP Error #404Bad filename/
pathname.
QuarkXPress Server Error #37
This alert displays if you specify an invalid file name or path.
HTTP Error #500The XML
document is not
QXP SERVER 8.1 WEB INTEGRATION GUIDE | 83
USING THE WEB INTERFACE