<?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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" file="page-brk.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-number"/>
            <cd:resolve name="keyword-dimension-optional"/>
        </cd:arguments>
    </cd:command>

</cd:interface>
