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

    <cd:command name="setupinteractionmenu" level="style" category="pdf" file="scrn-but.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="alternative">
                    <cd:constant type="vertical"/>
                    <cd:constant type="horizontal"/>
                    <cd:constant type="hidden"/>
                </cd:parameter>
                <cd:parameter name="category">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="leftoffset">
                    <cd:constant type="overlay"/>
                    <cd:constant type="frame"/>
                    <cd:constant type="none"/>
                    <cd:constant type="default"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="rightoffset">
                    <cd:constant type="overlay"/>
                    <cd:constant type="frame"/>
                    <cd:constant type="none"/>
                    <cd:constant type="default"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="topoffset">
                    <cd:constant type="overlay"/>
                    <cd:constant type="frame"/>
                    <cd:constant type="none"/>
                    <cd:constant type="default"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="bottomoffset">
                    <cd:constant type="overlay"/>
                    <cd:constant type="frame"/>
                    <cd:constant type="none"/>
                    <cd:constant type="default"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="maxwidth">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="maxheight">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="itemalign">
                    <cd:constant type="left"/>
                    <cd:constant type="middle"/>
                    <cd:constant type="right"/>
                    <cd:constant type="flushleft"/>
                    <cd:constant type="flushright"/>
                    <cd:constant type="low"/>
                    <cd:constant type="high"/>
                    <cd:constant type="lohi"/>
                </cd:parameter>
                <cd:parameter name="state">
                    <cd:constant type="start" default="yes"/>
                    <cd:constant type="empty"/>
                    <cd:constant type="local"/>
                </cd:parameter>
                <cd:parameter name="left">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="right">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="distance">
                    <cd:constant type="overlay"/>
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <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="position">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="middle">
                    <cd:constant type="cd:command"/>
                </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="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="contrastcolor">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <!--

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

    -->

    <cd:command name="interactionmenu" type="environment" level="style" category="pdf" file="scrn-but.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

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

    <!--

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

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

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

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

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

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

        <cd:command name="nop" scope="interactionmenu" level="style" category="pdf" file="scrn-but.mklx">
            <cd:arguments>
                <cd:resolve name="string-text"/>
                <cd:delimiter name="\"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="nop" type="environment" scope="interactionmenu" level="style" category="pdf" file="scrn-but.mklx"/>

        <cd:command name="txt" scope="interactionmenu" level="style" category="pdf" file="scrn-but.mklx">
            <cd:arguments>
                <cd:resolve name="string-text"/>
                <cd:delimiter name="\"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="txt" type="environment" scope="interactionmenu" level="style" category="pdf" file="scrn-but.mklx"/>

        <cd:command name="rul" scope="interactionmenu" level="style" category="pdf" file="scrn-but.mklx">
            <cd:arguments>
                <cd:resolve name="string-text"/>
                <cd:delimiter name="\"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="rul" type="environment" scope="interactionmenu" level="style" category="pdf" file="scrn-but.mklx"/>

        <cd:command name="com" scope="interactionmenu" file="scrn-but.mklx">
            <cd:arguments>
                <cd:resolve name="string-text"/>
                <cd:delimiter name="\"/>
            </cd:arguments>
        </cd:command>

        <cd:command name="com" type="environment" scope="interactionmenu" level="style" category="pdf" file="scrn-but.mklx"/>

    -->

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

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

    <cd:command name="menubutton" variant="interactionmenu" level="style" category="pdf" file="scrn-but.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupinteractionmenu"/>
            </cd:assignments>
            <cd:resolve name="argument-text"/>
            <cd:keywords delimiters="braces">
                <cd:constant type="cd:reference"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="menubutton" variant="button" level="style" category="pdf" file="scrn-but.mklx">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:inherit name="setupbutton"/>
            </cd:assignments>
            <cd:resolve name="argument-text"/>
            <cd:keywords delimiters="braces">
                <cd:constant type="cd:reference"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="registermenubuttons" level="system" category="pdf" file="scrn-but.mklx">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-text"/>
        </cd:arguments>
    </cd:command>

</cd:interface>
