III. Functional objects
104
Developer handbook DATAformXTension © 1992-2004 www.gassenhuber.de
*T108 CREATE DOCUMENT =>
¶*T108*e[
]*$¶
The functional object creates another new QuarkXPress document. (At least one document
must already be open.)
The new document becomes the current QuarkXPress document; the import procedure is then
continued in the new document.
If the following text with DATAformTags is imported:
¶*T3*$hello
OLD¶*T108*e["new";841.89;595.276;55.555;56.666;57.777;58.888;1;3;9.999;0]*$¶*
T3*p3*$hello NEW¶
a text box appears in the open document with the text hello OLD, then a new document
named new is created and in this document, on page three, a text box is placed with the text
hello NEW.
The properties of the new document are transferred within *e[
] in eleven parameters. (See
under *T107, page: 102.)
All values are given in points.
The values received with *T107 create under *T108 the same document again. If the last, the
eleventh parameter is 1, a document with automatic text boxes is created; otherwise 0 (zero)
should be transferred.
Calling in the DATAform 4D interface
DX_Write (0)
`initialisation
`Here may follow box objects for the old document
DX_Array{5}:="108"
`*T108 = create a new document
DX_Array{69}:="["+char(34)+"new"+char(34)+";841.89;
595.276;55.555;56.666;57.777;58.888;1;3;9.999;0]"
`the properties of the new document
$0:=DX_Write (1)
`transfer the object to the interface
`Here follow the box objects for the new document
DX_Write (2)
`end of export