<?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="setupbookmark" level="style" category="pdf" file="strc-bkm.mkiv">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:parameter name="force">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
                <cd:parameter name="number">
                    <cd:constant type="yes" default="yes"/>
                    <cd:constant type="no"/>
                </cd:parameter>
                <cd:parameter name="numberseparatorset">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="numberconversionset">
                    <cd:constant type="cd:name"/>
                </cd:parameter>
                <cd:parameter name="numberstarter">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="numberstopper">
                    <cd:constant type="cd:command"/>
                </cd:parameter>
                <cd:parameter name="numbersegments">
                    <cd:resolve name="value-prefixsegments"/>
                </cd:parameter>
                <cd:parameter name="sectionblock">
                    <cd:constant type="yes"/>
                    <cd:constant type="no" default="yes"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <!--

        <cd:command name="setupbookmarks" level="style" category="pdf" file="strc-bkm.mkiv">
            <cd:arguments>
                <cd:assignments list="yes">
                    <cd:inherit name="setupbookmark"/>
                </cd:assignments>
            </cd:arguments>
        </cd:command>

    -->

    <cd:command name="bookmark" level="document" category="pdf" file="strc-bkm.mkiv">
        <cd:arguments>
            <cd:keywords optional="yes">
                <cd:constant type="cd:section"/>
                <cd:constant type="cd:list"/>
            </cd:keywords>
            <cd:resolve name="argument-text"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="placebookmarks" level="style" category="pdf" file="src-bkm.mkiv">
        <cd:arguments>
            <cd:keywords list="yes" optional="yes">
                <cd:constant type="cd:section"/>
                <cd:constant type="cd:list"/>
            </cd:keywords>
            <cd:keywords list="yes" optional="yes">
                <cd:constant type="cd:section"/>
                <cd:constant type="cd:list"/>
            </cd:keywords>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupbookmark"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

</cd:interface>
