<?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="defineviewerlayer" level="style" category="pdf" file="attr-lay.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:resolve name="keyword-name-optional"/>
            <cd:assignments list="yes" optional="yes">
                <cd:inherit name="setupviewerlayer"/>
            </cd:assignments>
        </cd:arguments>
    </cd:command>

    <cd:command name="setupviewerlayer" level="style" category="pdf" file="attr-lay.mkiv">
        <cd:arguments>
            <cd:assignments list="yes">
                <cd:parameter name="title">
                    <cd:constant type="cd:text"/>
                </cd:parameter>
                <cd:parameter name="state">
                    <cd:constant type="start" default="yes"/>
                    <cd:constant type="stop"/>
                </cd:parameter>
                <cd:parameter name="export">
                    <cd:constant type="yes" default="yes"/>
                    <cd:constant type="no"/>
                </cd:parameter>
                <cd:parameter name="printable">
                    <cd:constant type="yes" default="yes"/>
                    <cd:constant type="no"/>
                </cd:parameter>
                <cd:parameter name="scope">
                    <cd:constant type="local" default="yes"/>
                    <cd:constant type="global"/>
                </cd:parameter>
                <cd:parameter name="method">
                    <cd:constant type="none" default="yes"/>
                    <cd:constant type="command"/>
                </cd:parameter>
            </cd:assignments>
        </cd:arguments>
    </cd:command>
    
    <cd:command name="viewerlayer" type="environment" level="document" category="pdf" file="attr-lay.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
        </cd:arguments>
    </cd:command>

    <cd:command name="viewerlayer" type="environment" generated="yes" variant="example" level="document" category="pdf" file="attr-lay.mkiv">
        <cd:sequence>
            <cd:variable value="viewerlayer"/>
        </cd:sequence>
    </cd:command>

    <cd:command name="viewerlayer" level="document" category="pdf" file="attr-lay.mkiv">
        <cd:arguments>
            <cd:resolve name="keyword-name"/>
            <cd:content/>
        </cd:arguments>
    </cd:command>

    <cd:command name="showlayoutcomponents" level="document" category="pdf" file="attr-lay.mkiv"/>

</cd:interface>
