<?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="definepagebreak" level="style" category="structure" file="page-brk.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:keywords list="yes">
                <cd:resolve name="value-pagebreak"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="pagebreak" level="document" category="structure" file="page-brk.mkiv">
        <cd:arguments>
            <cd:keywords list="yes" optional="yes">
                <cd:resolve name="value-pagebreak"/>
                <cd:constant type="cd:name"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="page" level="document" category="structure" file="page-brk.mkiv">
        <cd:arguments>
            <cd:keywords list="yes" optional="yes">
                <cd:inherit name="pagebreak"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="definecolumnbreak" level="style" category="structure" keywords="columns" file="page-brk.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:keywords list="yes">
                <cd:resolve name="value-columnbreak"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="columnbreak" level="document" category="structure" keywords="columns" file="page-brk.mkiv">
        <cd:arguments>
            <cd:keywords list="yes" optional="yes">
                <cd:resolve name="value-columnbreak"/>
                <cd:constant type="cd:name"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="column" level="document" category="structure" keywords="columns" file="page-brk.mkiv">
        <cd:arguments>
            <cd:keywords list="yes" optional="yes">
                <cd:inherit name="columnbreak"/>
            </cd:keywords>
        </cd:arguments>
    </cd:command>

    <cd:command name="definepagechecker" level="style" category="structure" file="page-brk.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuppagechecker"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setuppagechecker" level="style" category="structure" file="page-brk.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name-list-optional"/>
            <cd:assignments list="yes">
                <cd:parameter name="lines">
                    <cd:constant type="cd:number"/>
                </cd:parameter>
                <cd:parameter name="offset">
                    <cd:constant type="cd:dimension"/>
                </cd:parameter>
                <cd:parameter name="method">
                    <cd:constant type="0"/>
                    <cd:constant type="1"/>
                    <cd:constant type="2"/>
                    <cd:constant type="3"/>
                </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:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="checkpage" level="document" category="structure" file="page-brk.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setuppagechecker"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="testpage" level="document" category="structure" file="page-brk.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-number"/>
            <cd:resolve name="keyword-dimension-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="testpageonly" level="system" category="structure" file="page-brk.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-number"/>
            <cd:resolve name="keyword-dimension-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="testpagesync" level="system" category="structure" file="page-brk.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-number"/>
            <cd:resolve name="keyword-dimension-optional"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="testcolumn" level="document" category="structure" keywords="columns" file="page-brk.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-number"/>
            <cd:resolve name="keyword-dimension-optional"/>
        </cd:arguments>
    </cd:command>

</cd:interface>
