<?xml version="1.0" encoding="UTF-8"?>

<?context-directive job ctxfile x-setups.ctx ?>

<cd:interface xmlns:cd="http://www.pragma-ade.com/commands">

    <cd:command name="defineattachment" level="style" category="pdf" file="scrn-wid.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupattachment"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupattachment" level="style" category="pdf" file="scrn-wid.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="title">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="subtitle">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="author">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="file">
                    <cd:constant type="cd:file"/>
                </cd:parameter>
                <cd:parameter name="name">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="buffer">
                    <cd:constant type="cd:buffer"/>
                </cd:parameter>
                <cd:parameter name="type">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="state">
                    <cd:constant type="start" default="yes"/>
                    <cd:constant type="stop"/>
                </cd:parameter>
                <cd:parameter name="method">
                    <cd:constant type="normal" default="yes"/>
                    <cd:constant type="hidden"/>
                </cd:parameter>
                <cd:parameter name="symbol">
                    <cd:constant type="Graph"/>
                    <cd:constant type="Paperclip"/>
                    <cd:constant type="Pushpin"/>
                    <cd:constant type="Default"/>
                </cd:parameter>
                <cd:parameter name="width">
                    <cd:constant type="fit"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="height">
                    <cd:constant type="fit"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="depth">
                    <cd:constant type="fit"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="color">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="textlayer">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="location">
                    <cd:constant type="leftedge"/>
                    <cd:constant type="rightedge"/>
                    <cd:constant type="inmargin"/>
                    <cd:constant type="leftmargin"/>
                    <cd:constant type="rightmargin"/>
                    <cd:constant type="text" default="yes"/>
                    <cd:constant type="high"/>
                    <cd:constant type="none"/>
                </cd:parameter>
                <cd:parameter name="distance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupattachments" level="style" category="pdf" file="scrn-wid.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:inherit name="setupattachment"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="registerattachment" level="document" category="pdf" file="scrn-wid.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes">
                <cd:inherit name="setupattachment"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="attachment" generated="yes" variant="instance" level="document" category="pdf" file="scrn-wid.mklx">
        <cd:sequence>
            <cd:instance value="attachment"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupattachment"/>
            </cd:assignments>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-attachment"/>
        </cd:instances>
    </cd:command>

    <cd:command name="attachment" type="environment" generated="yes" variant="instance" level="document" category="pdf" file="scrn-wid.mklx">
        <cd:sequence>
            <cd:instance value="attachment"/>
        </cd:sequence>
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupattachment"/>
            </cd:assignments>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-attachment"/>
        </cd:instances>
    </cd:command>

    <cd:command name="placeattachments" level="document" category="pdf" file="scrn-wid.mklx"/>

</cd:interface>
