<?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="presetfieldsymbols" level="system" category="pdf" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name-list"/>
        </cd:arguments>
    </cd:command>

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

    <cd:command name="setupfieldcategory" level="style" category="pdf" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="start">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="style">
                    <cd:resolve name="value-style"/>
                </cd:parameter>
                <cd:parameter name="color">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="type">
                    <cd:constant type="radio"/>
                    <cd:constant type="sub"/>
                    <cd:constant type="text"/>
                    <cd:constant type="line"/>
                    <cd:constant type="push"/>
                    <cd:constant type="check"/>
                    <cd:constant type="signature"/>
                </cd:parameter>
                <cd:parameter name="values">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="default">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="fieldframecolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="fieldbackgroundcolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="width">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="height">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="depth">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="align">
                    <cd:constant type="left"/>
                    <cd:constant type="middle"/>
                    <cd:constant type="right"/>
                    <cd:constant type="flushleft"/>
                    <cd:constant type="center"/>
                    <cd:constant type="flushright"/>
                </cd:parameter>
                <cd:parameter name="n">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="symbol">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="fieldlayer">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="option">
                    <cd:constant type="readonly"/>
                    <cd:constant type="required"/>
                    <cd:constant type="protected"/>
                    <cd:constant type="sorted"/>
                    <cd:constant type="unavailable"/>
                    <cd:constant type="nocheck"/>
                    <cd:constant type="fixed"/>
                    <cd:constant type="file"/>
                    <cd:constant type="hidden"/>
                    <cd:constant type="printable"/>
                    <cd:constant type="auto"/>
                </cd:parameter>
                <cd:parameter name="clickin">
                    <cd:constant type="cd:reference"/>
                </cd:parameter>
                <cd:parameter name="clickout">
                    <cd:constant type="cd:reference"/>
                </cd:parameter>
                <cd:parameter name="regionin">
                    <cd:constant type="cd:reference"/>
                </cd:parameter>
                <cd:parameter name="regionout">
                    <cd:constant type="cd:reference"/>
                </cd:parameter>
                <cd:parameter name="afterkey">
                    <cd:constant type="cd:reference"/>
                </cd:parameter>
                <cd:parameter name="format">
                    <cd:constant type="cd:reference"/>
                </cd:parameter>
                <cd:parameter name="validate">
                    <cd:constant type="cd:reference"/>
                </cd:parameter>
                <cd:parameter name="calculate">
                    <cd:constant type="cd:reference"/>
                </cd:parameter>
                <cd:parameter name="focusin">
                    <cd:constant type="cd:reference"/>
                </cd:parameter>
                <cd:parameter name="focusout">
                    <cd:constant type="cd:reference"/>
                </cd:parameter>
                <cd:parameter name="openpage">
                    <cd:constant type="cd:reference"/>
                </cd:parameter>
                <cd:parameter name="closepage">
                    <cd:constant type="cd:reference"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelsefieldcategory" level="system" category="pdf" keywords="conditional" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doiffieldcategoryelse" level="system" category="pdf" keywords="conditional" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

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

    <cd:command name="setupfieldbody" level="style" category="pdf" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="category">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:inherit name="setupfieldcategory"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="fieldbody" level="document" category="pdf" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupfieldbody"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="definefieldbodyset" level="style" category="pdf" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doifelsefieldbody" level="system" category="pdf" keywords="conditional" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="doiffieldbodyelse" level="system" category="pdf" keywords="conditional" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
            <cd:resolve name="argument-true"/>
            <cd:resolve name="argument-false"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="definefield" level="style" category="pdf" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:keywords>
                <cd:constant type="radio"/>
                <cd:constant type="sub"/>
                <cd:constant type="text"/>
                <cd:constant type="line"/>
                <cd:constant type="push"/>
                <cd:constant type="check"/>
                <cd:constant type="signature"/>
            </cd:keywords>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-list"/>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="definesubfield" level="style" category="pdf" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="clonefield" level="style" category="pdf" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-list"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="copyfield" level="style" category="pdf" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="fitfieldframed" level="document" category="pdf" keywords="background rules" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupframed"/>
            </cd:assignments>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="fitfield" level="document" category="pdf" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupfieldbody"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupfieldlabelframed" level="style" category="pdf" keywords="background" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupfieldcontentframed" level="style" category="pdf" keywords="background" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:inherit name="setupframed"/>
                <cd:inherit name="setupfieldcategory"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupfieldtotalframed" level="style" category="pdf" keywords="background" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="before">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="after">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="inbetween">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="distance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="alternative">
                    <cd:constant type="reset"/>
                    <cd:constant type="label"/>
                    <cd:constant type="frame"/>
                    <cd:constant type="horizontal"/>
                    <cd:constant type="vertical"/>
                </cd:parameter>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupfield" level="style" category="pdf" keywords="background" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:keywords list="yes" optional="yes">
                <cd:constant type="reset"/>
                <cd:constant type="label"/>
                <cd:constant type="frame"/>
                <cd:constant type="horizontal"/>
                <cd:constant type="vertical"/>
            </cd:keywords>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupfieldtotalframed"/>
            </cd:assignments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupfieldlabelframed"/>
            </cd:assignments>
            <cd:assignments list="yes">
                <cd:inherit name="setupfieldcontentframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupfields" level="style" category="pdf" keywords="background" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:keywords list="yes" optional="yes">
                <cd:constant type="reset"/>
                <cd:constant type="label"/>
                <cd:constant type="frame"/>
                <cd:constant type="horizontal"/>
                <cd:constant type="vertical"/>
            </cd:keywords>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupfieldtotalframed"/>
            </cd:assignments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupfieldlabelframed"/>
            </cd:assignments>
            <cd:assignments list="yes">
                <cd:inherit name="setupfieldcontentframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="field" level="document" category="pdf" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-text-optional"/>
        </cd:arguments>
    </cd:command>

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

    <cd:command name="fieldstack" level="document" category="pdf" file="scrn-fld.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupfieldcategory"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

</cd:interface>
