<?xml version="1.0"?>
<object name="ftw.book.Chapter"
        meta_type="Dexterity FTI"
        xmlns:i18n="http://xml.zope.org/namespaces/i18n"
        i18n:domain="ftw.book">

    <property name="title" i18n:translate="">Chapter</property>
    <property name="description"></property>
    <property name="icon_expr"></property>
    <property name="allow_discussion">False</property>
    <property name="global_allow">False</property>
    <property name="filter_content_types">True</property>
    <property name="allowed_content_types">
        <element value="ftw.book.Chapter"/>
        <element value="ftw.book.FileListingBlock" />
        <element value="ftw.book.HtmlBlock" />
        <element value="ftw.book.Table" />
        <element value="ftw.book.TextBlock"/>
    </property>

    <property name="schema">ftw.book.contents.chapter.IChapterSchema</property>
    <property name="klass">ftw.book.contents.chapter.Chapter</property>
    <property name="add_permission">ftw.book.AddChapter</property>

    <property name="behaviors">
        <element value="ftw.simplelayout.interfaces.ISimplelayout" />
        <element value="ftw.simplelayout.interfaces.ISimplelayoutBlock" />
        <element value="collective.dexteritytextindexer.behavior.IDexterityTextIndexer" />
        <element value="plone.app.content.interfaces.INameFromTitle" />
        <element value="plone.app.referenceablebehavior.referenceable.IReferenceable"/>
        <element value="ftw.book.behaviors.toc.IShowInToc" />
        <element value="ftw.book.behaviors.codeinjection.ILaTeXCodeInjection" />
        <element value="ftw.book.behaviors.columnlayout.IChangeColumnLayout" />
        <element value="ftw.book.behaviors.landscape.ILandscape" />
        <element value="ftw.book.behaviors.clearpage.IClearpage" />
    </property>

    <property name="default_view">simplelayout-view</property>
    <property name="default_view_fallback">False</property>
    <property name="view_methods">
        <element value="simplelayout-view"/>
    </property>

    <alias from="(Default)" to="(dynamic view)"/>
    <alias from="edit" to="@@edit"/>
    <alias from="sharing" to="@@sharing"/>
    <alias from="view" to="(selected layout)"/>

    <action
        action_id="view"
        title="View"
        category="object"
        condition_expr=""
        url_expr="string:${object_url}"
        visible="True">
        <permission value="View"/>
    </action>

    <action
        action_id="edit"
        title="Edit"
        category="object"
        condition_expr=""
        url_expr="string:${object_url}/edit"
        visible="True">
        <permission value="Modify portal content"/>
    </action>

    <action
        action_id="pdf"
        title="PDF"
        category="object"
        condition_expr=""
        url_expr="string:${object_url}/export_pdf"
        visible="True">
        <permission value="View" />
    </action>

    <action
        action_id="reader"
        title="Read Book"
        category="object"
        condition_expr=""
        url_expr="string:${object_url}/@@book_reader_view"
        visible="True">
        <permission value="View" />
    </action>

</object>
