<?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="definebutton" level="style" category="pdf" file="scrn-but.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupbutton"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupbutton" level="style" category="pdf" file="scrn-but.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="state">
                    <cd:constant type="start" default="yes"/>
                    <cd:constant type="stop"/>
                </cd:parameter>
                <cd:parameter name="samepage">
                    <cd:constant type="yes" default="yes"/>
                    <cd:constant type="no"/>
                    <cd:constant type="empty"/>
                    <cd:constant type="none"/>
                    <cd:constant type="normal"/>
                    <cd:constant type="default"/>
                </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="contrastcolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:parameter name="alternative">
                    <cd:constant type="hidden"/>
                </cd:parameter>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="setupbuttons" level="style" category="pdf" file="scrn-but.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-name-list-optional"/>
                <cd:assignments list="yes">
                    <cd:inherit name="setupbutton"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="button" generated="yes" variant="example" level="document" category="pdf" file="scrn-but.mkvi">
        <cd:sequence>
            <cd:variable value="button"/>
        </cd:sequence>
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupbutton"/>
            </cd:assignments>
            <cd:resolve name="argument-text"/>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
        <cd:instances>
            <cd:constant value="button"/>
        </cd:instances>
    </cd:command>

    <cd:command name="button" level="document" category="pdf" file="scrn-but.mkvi">
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupbutton"/>
            </cd:assignments>
            <cd:resolve name="argument-text"/>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="overlaybutton" level="style" category="pdf" file="scrn-but.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="overlaybutton" variant="direct" level="style" category="pdf" file="scrn-but.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-reference"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="MPmenubuttons" level="style" category="pdf" file="scrn-but.mkvi">
        <cd:arguments>
            <cd:resolve name="argument-name"/>
        </cd:arguments>
    </cd:command>

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

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

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

    <cd:command name="definepushsymbol" level="style" category="pdf" file="scrn-fld.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:keywords>
                <cd:constant type="n"/>
                <cd:constant type="r"/>
                <cd:constant type="d"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="psh" scope="interactionmenu" level="style" category="pdf" file="scrn-fld.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-reference"/>
                <cd:resolve name="string-text"/>
                <cd:delimiter name="\"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="psh" type="environment" scope="interactionmenu" level="style" category="pdf" file="scrn-fld.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-reference"/>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="rollbutton" variant="interactionmenu" level="style" category="pdf" file="scrn-fld.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupinteractionmenu"/>
            </cd:assignments>
            <cd:resolve name="string-text"/>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="rollbutton" variant="button" level="style" category="pdf" file="scrn-fld.mkvi">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:inherit name="setupbutton"/>
            </cd:assignments>
            <cd:resolve name="string-text"/>
            <cd:resolve name="keyword-reference"/>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="rob" scope="interactionmenu" level="style" category="pdf" file="scrn-fld.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-reference"/>
                <cd:resolve name="string-text"/>
                <cd:delimiter name="\"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="rob" type="environment" scope="interactionmenu" level="style" category="pdf" file="scrn-fld.mkvi">
            <cd:arguments>
                <cd:resolve name="keyword-reference"/>
            </cd:arguments>
        </cd:command>

    -->

</cd:interface>
