8.0
Table Of Contents
- Overview
- New and enhanced features
- Getting started
- Functions
- Function overview
- Render types
- Content modifiers
- Render modifiers
- XML modify
- XML deconstruct and construct
- About XML deconstruct/construct
- xml
- construct
- Deconstructing a project
- Constructing a project
- Working with pages and spreads
- Working with layers
- Working with boxes
- Working with pictures
- Working with text
- Working with tables
- Working with Composition Zones
- Using server XSLT
- Working with lists
- Working with anchored boxes
- Working with placeholders
- Working with metadata
- Working with hidden text
- Administrative Request handlers
- The Modifier DTD
- Sample applications
- Contact Quark
- Legal notice
The following is a sample of a transaction entry:
4/10/2007 17:54:37 - tab.qxp - Type: image/jpeg - Size: 9049 - Client: 127.0.0.1
Example GET
URL
http://localhost:8080/sample.qxp?modify=file:C:\createTable.xml
where the createBox.xml file exists in the C:
drive of the server.
On Mac OS
: The URL format is:
http://localhost:8080/sample.qxp?modify=file:MacHD:xml:createTable.xml
where the
createTable.xml file exists in the xml folder of MacHD.
http://localhost:8080/sample.qxp?modify=<xml-string>
where the xml-string
tag consists of valid XML commands of image properties. For example:
http://localhost:8080/sample.qxp?modify=
<LAYOUT><ID UID="Layout1"/><SPREAD><ID UID="1"/>
<TABLE OPERATION="CREATE" ROWS="5" COLUMNS="3"><ID
NAME="STATS"/>
<GEOMETRY PAGE="1"/><POSITION><TOP>5</TOP><LEFT>5</LEFT>
<BOTTOM>30</BOTTOM><RIGHT>30</RIGHT></POSITION></GEOM
ETRY>
</TABLE>SPREAD></LAYOUT></PROJECT>
Example, Object
Model
Creating new Table: User can add new table specifying the number of rows and
columns, to an existing spread of a QuarkXPress project at the specified position
using the following code snippet for Table object.
Spread spread = new Spread();
Table table = new Table();
table.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";
table.geometry = geometry;
table.rows = "2";
table.columns = "4";
table.maintainGeometry = "true";
table.operation = "CREATE";
spread.tables = new Table []{table};
While creating a table, position attributes need to be specified.
Table is linked to Spread, Spread to Layout, which is further linked with
ModifierRequestContents
An existing table can be deleted by providing the ID name for a table and
Page 127