<?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="definepagegrid" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
            <cd:arguments>
                <cd:resolve name="keyword-name"/>
                <cd:resolve name="keyword-name-optional"/>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setuppagegrid"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="definecolumnset" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupcolumnset"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="setuppagegrid" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
            <cd:arguments>
                <cd:keywords list="yes" optional="yes">
                    <cd:constant type="cd:name"/>
                    <cd:constant type="cd:number" prefix="cd:name" method="range"/>
                </cd:keywords>
                <cd:assignments list="yes">
                    <cd:parameter name="n">
                        <cd:constant type="cd:number"/>
                    </cd:parameter>
                    <cd:parameter name="nleft">
                        <cd:constant type="cd:number"/>
                    </cd:parameter>
                    <cd:parameter name="nright">
                        <cd:constant type="cd:number"/>
                    </cd:parameter>
                    <cd:parameter name="width">
                        <cd:constant type="cd:dimension"/>
                        <cd:constant type="auto"/>
                    </cd:parameter>
                    <cd:parameter name="distance">
                        <cd:constant type="cd:dimension"/>
                    </cd:parameter>
                    <cd:parameter name="lines">
                        <cd:constant type="cd:number"/>
                    </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="direction">
                        <cd:constant type="normal" default="yes"/>
                        <cd:constant type="reverse"/>
                    </cd:parameter>
                    <cd:parameter name="page">
                        <cd:inherit name="page"/>
                    </cd:parameter>
                    <cd:inherit name="setupframed"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="setupcolumnset" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
        <cd:arguments>
            <cd:keywords list="yes" optional="yes">
                <cd:constant type="cd:name"/>
                <cd:constant type="cd:number" prefix="cd:name" method="range"/>
            </cd:keywords>
            <cd:assignments list="yes">
                <cd:parameter name="n">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="nleft">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="nright">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <!-- begin of values which can be set for each column -->
                <cd:parameter name="width">
                    <cd:constant type="cd:dimension"/>
                    <cd:constant type="auto"/>
                </cd:parameter>
                <cd:parameter name="distance">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <!-- end of values which can be set for each column -->
                <cd:parameter name="lines">
                    <cd:constant type="cd:number"/>
                </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="direction">
                    <cd:constant type="normal" default="yes"/>
                    <cd:constant type="reverse"/>
                </cd:parameter>
                <cd:parameter name="page">
                    <cd:inherit name="page"/>
                </cd:parameter>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="pagegrid" type="environment" generated="yes" variant="example" level="document" category="columns" keywords="structure layout" file="page-cst.mkiv">
            <cd:sequence>
                <cd:variable value="pagegrid"/>
            </cd:sequence>
            <cd:arguments>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setuppagegrid"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

        <cd:command name="pagegrid" type="environment" level="document" category="columns" keywords="structure layout" file="page-cst.mkiv">
            <cd:arguments>
                <cd:resolve name="keyword-name-optional"/>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setuppagegrid"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="columnset" type="environment" generated="yes" variant="example" level="document" category="columns" keywords="structure layout" file="page-cst.mkiv">
        <cd:sequence>
            <cd:variable value="columnset"/>
        </cd:sequence>
        <cd:arguments>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupcolumnset"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="columnset" type="environment" level="document" category="columns" keywords="structure layout" file="page-cst.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupcolumnset"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="setpagegrid" level="document" category="columns" keywords="structure layout" file="page-cst.mkiv">
            <cd:arguments>
                <cd:assignments list="yes" optional="yes">
                    <cd:parameter name="c">
                        <cd:constant type="cd:number"/>
                    </cd:parameter>
                    <cd:parameter name="r">
                        <cd:constant type="cd:number"/>
                    </cd:parameter>
                    <cd:parameter name="option">
                        <cd:constant type="none" default="yes"/>
                        <cd:constant type="wide"/>
                    </cd:parameter>
                </cd:assignments>
                <cd:content/>
            </cd:arguments>
        </cd:command>

        <cd:command name="definepagegridspan" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
            <cd:arguments>
                <cd:resolve name="keyword-name"/>
                <cd:resolve name="keyword-name-optional"/>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setuppagegridspan"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="definecolumnsetspan" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupcolumnsetspan"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="setuppagegridspan" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
            <cd:arguments>
                <cd:resolve name="keyword-name-list-optional"/>
                <cd:assignments list="yes">
                    <cd:parameter name="n">
                        <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="before">
                        <cd:constant type="cd:command"/>
                    </cd:parameter>
                    <cd:parameter name="after">
                        <cd:constant type="cd:command"/>
                    </cd:parameter>
                    <cd:inherit name="setupframed"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="setupcolumnsetspan" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="n">
                    <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="before">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="after">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="pagegridspan" type="environment" level="document" category="columns" keywords="structure layout" file="page-cst.mkiv">
            <cd:arguments>
                <cd:resolve name="keyword-name"/>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setuppagegridspan"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="columnsetspan" type="environment" level="document" category="columns" keywords="structure layout" file="page-cst.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:parameter name="c">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="r">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="method">
                    <cd:constant type="tblr"/>
                    <cd:constant type="lrtb"/>
                    <cd:constant type="tbrl"/>
                    <cd:constant type="rltb"/>
                    <cd:constant type="fxtb"/>
                    <cd:constant type="btlr"/>
                    <cd:constant type="lrbt"/>
                    <cd:constant type="btrl"/>
                    <cd:constant type="rlbt"/>
                    <cd:constant type="fxbt"/>
                    <cd:constant type="fixd"/>
                </cd:parameter>
                <cd:parameter name="option">
                    <cd:constant type="none" default="yes"/>
                    <cd:constant type="wide"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="pagegridspanwidth" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
            <cd:arguments>
                <cd:resolve name="argument-number"/>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="columnsetspanwidth" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
        <cd:arguments>
            <cd:resolve name="argument-number"/>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="definepagegridarea" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
            <cd:arguments>
                <cd:resolve name="keyword-name"/>
                <cd:resolve name="keyword-name-optional"/>
                <cd:assignments list="yes" optional="yes">
                    <cd:inherit name="setuppagegridarea"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="definecolumnsetarea" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupcolumnsetarea"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="setuppagegridarea" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
            <cd:arguments>
                <cd:resolve name="keyword-name-list-optional"/>
                <cd:assignments list="yes">
                    <cd:parameter name="state">
                        <cd:constant type="start"/>
                        <cd:constant type="stop" default="yes"/>
                        <cd:constant type="repeat"/>
                    </cd:parameter>
                    <cd:parameter name="x">
                        <cd:constant type="cd:number"/>
                    </cd:parameter>
                    <cd:parameter name="y">
                        <cd:constant type="cd:number"/>
                    </cd:parameter>
                    <cd:parameter name="nx">
                        <cd:constant type="cd:number"/>
                    </cd:parameter>
                    <cd:parameter name="ny">
                        <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="clipoffset">
                        <cd:constant type="cd:dimension"/>
                    </cd:parameter>
                    <cd:parameter name="rightoffset">
                        <cd:constant type="cd:dimension"/>
                    </cd:parameter>
                    <cd:inherit name="setupframed"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="setupcolumnsetarea" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="state">
                    <cd:constant type="start"/>
                    <cd:constant type="stop" default="yes"/>
                    <cd:constant type="repeat"/>
                </cd:parameter>
                <cd:parameter name="x">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="y">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="nx">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="ny">
                    <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="clipoffset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="rightoffset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:inherit name="setupframed"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="setuppagegridareatext" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
            <cd:arguments>
                <cd:resolve name="keyword-name"/>
                <cd:resolve name="keyword-text"/>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="setupcolumnsetareatext" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-text"/>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="setuppagegridlines" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
            <cd:arguments>
                <cd:resolve name="keyword-name"/>
                <cd:resolve name="keyword-number"/>
                <cd:resolve name="keyword-number"/>
                <cd:resolve name="keyword-number"/>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="setupcolumnsetlines" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-number"/>
            <cd:resolve name="keyword-number"/>
            <cd:resolve name="keyword-number"/>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="setuppagegridstart" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
            <cd:arguments>
                <cd:resolve name="keyword-name"/>
                <cd:resolve name="keyword-number"/>
                <cd:resolve name="keyword-number"/>
                <cd:resolve name="keyword-number"/>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="setupcolumnsetstart" level="style" category="columns" keywords="structure layout" file="page-cst.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-number"/>
            <cd:resolve name="keyword-number"/>
            <cd:resolve name="keyword-number"/>
        </cd:arguments>
    </cd:command>

</cd:interface>
