<?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="definemakeup" file="page-mak.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupmakeup"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupmakeup" file="page-mak.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="page">
                    <cd:inherit name="page"/>
                </cd:parameter>
                <cd:parameter name="command">
                    <cd:constant type="cd:command"/>
                </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="align">
                    <cd:inherit name="setupalign"/>
                </cd:parameter>
                <cd:parameter name="setups">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="top">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="bottom">
                    <cd:constant type="cd:command"/>
                </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="location">
                    <cd:constant type="top"/>
                </cd:parameter>
                <cd:parameter name="reference">
                    <cd:constant type="cd:reference"/>
                </cd:parameter>
                <cd:parameter name="pagestate">
                    <cd:constant type="start"/>
                    <cd:constant type="stop" default="yes"/>
                </cd:parameter>
                <cd:parameter name="headerstate">
                    <cd:constant type="start"/>
                    <cd:constant type="stop" default="yes"/>
                    <cd:constant type="high"/>
                    <cd:constant type="empty"/>
                    <cd:constant type="none"/>
                    <cd:constant type="normal"/>
                </cd:parameter>
                <cd:parameter name="footerstate">
                    <cd:constant type="start"/>
                    <cd:constant type="stop" default="yes"/>
                    <cd:constant type="high"/>
                    <cd:constant type="empty"/>
                    <cd:constant type="none"/>
                    <cd:constant type="normal"/>
                </cd:parameter>
                <cd:parameter name="topstate">
                    <cd:constant type="start"/>
                    <cd:constant type="stop"/>
                    <cd:constant type="high"/>
                    <cd:constant type="empty"/>
                    <cd:constant type="none"/>
                    <cd:constant type="normal" default="yes"/>
                </cd:parameter>
                <cd:parameter name="bottomstate">
                    <cd:constant type="start"/>
                    <cd:constant type="stop"/>
                    <cd:constant type="high"/>
                    <cd:constant type="empty"/>
                    <cd:constant type="none"/>
                    <cd:constant type="normal" default="yes"/>
                </cd:parameter>
                <cd:parameter name="textstate">
                    <cd:constant type="start"/>
                    <cd:constant type="stop"/>
                    <cd:constant type="high"/>
                    <cd:constant type="empty"/>
                    <cd:constant type="none"/>
                    <cd:constant type="normal" default="yes"/>
                </cd:parameter>
                <cd:parameter name="doublesided">
                    <cd:constant type="yes"/>
                    <cd:constant type="no"/>
                    <cd:constant type="empty" default="yes"/>
                </cd:parameter>
                <cd:parameter name="style">
                    <cd:inherit name="value-style"/>
                </cd:parameter>
                <cd:parameter name="color">
                    <cd:constant type="cd:color"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="makeup" type="environment" file="page-mak.mkvi">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupmakeup"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="makeup" type="environment" generated="yes" variant="instance" file="page-mak.mkvi">
        <cd:sequence>
            <cd:instance value="makeup"/>
            <cd:string value="makeup"/>
        </cd:sequence>
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupmakeup"/>
            </cd:assignments>
        </cd:arguments>
        <cd:instances>
            <cd:resolve name="instance-makeup"/>
        </cd:instances>
    </cd:command>

    <!--

        <cd:command name="standardmakeup" type="environment" file="page-mak.mkvi">
            <cd:arguments>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setupmakeup"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

        <cd:command name="textmakeup" type="environment" file="page-mak.mkvi">
            <cd:arguments>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setupmakeup"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

        <cd:command name="pagemakeup" type="environment" file="page-mak.mkvi">
            <cd:arguments>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setupmakeup"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

        <cd:command name="middlemakeup" type="environment" file="page-mak.mkvi">
            <cd:arguments>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setupmakeup"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

</cd:interface>
