<configure
    xmlns="http://namespaces.zope.org/zope"
    xmlns:five="http://namespaces.zope.org/five"
    xmlns:genericsetup="http://namespaces.zope.org/genericsetup"
    xmlns:zcml="http://namespaces.zope.org/zcml"
    xmlns:browser="http://namespaces.zope.org/browser"
    xmlns:i18n="http://namespaces.zope.org/i18n"
    xmlns:pp="http://namespaces.zopyx.com/pp"
    xmlns:plone="http://namespaces.plone.org/plone"
    i18n_domain="zopyx.plone.smashdocs"
    >

    <browser:page
        name="smashdocs-folder-view"
        for="..smashdocfolder.ISmashFolder"
        permission="zope2.View"
        class=".smashdocument.SmashDocument"
        template="smashfolder.pt"
        layer="zopyx.plone.smashdocs.interfaces.IBrowserLayer"
        />

    <browser:page
        name="redirect-document"
        for="..smashdocfolder.ISmashFolder"
        permission="zope2.View"
        class=".smashdocument.SmashDocument"
        attribute="redirect_document"
        layer="zopyx.plone.smashdocs.interfaces.IBrowserLayer"
        />

    <browser:page
        name="delete-document"
        for="..smashdocfolder.ISmashFolder"
        permission="zope2.View"
        class=".smashdocument.SmashDocument"
        attribute="delete_document"
        layer="zopyx.plone.smashdocs.interfaces.IBrowserLayer"
        />


    <browser:page
        name="smashdocs-view"
        for="..smashdocument.ISmashDocument"
        permission="zope2.View"
        template="smashdocument.pt"
        class=".smashdocument.SmashDocument"
        layer="zopyx.plone.smashdocs.interfaces.IBrowserLayer"
        />

    <browser:page
        name="new-document"
        for="..smashdocument.ISmashDocument"
        permission="cmf.ModifyPortalContent"
        class=".smashdocument.SmashDocument"
        attribute="new_document"
        layer="zopyx.plone.smashdocs.interfaces.IBrowserLayer"
        />

    <browser:page
        name="open-document"
        for="..smashdocument.ISmashDocument"
        permission="zope2.View"
        class=".smashdocument.SmashDocument"
        attribute="open_document"
        layer="zopyx.plone.smashdocs.interfaces.IBrowserLayer"
        />

    <browser:page
        name="duplicate-document"
        for="..smashdocument.ISmashDocument"
        permission="cmf.ManagePortal"
        class=".smashdocument.SmashDocument"
        attribute="duplicate_document"
        layer="zopyx.plone.smashdocs.interfaces.IBrowserLayer"
        />

    <browser:page
        name="archive-document"
        for="..smashdocument.ISmashDocument"
        permission="cmf.ManagePortal"
        class=".smashdocument.SmashDocument"
        attribute="archive_document"
        layer="zopyx.plone.smashdocs.interfaces.IBrowserLayer"
        />

    <browser:page
        name="unarchive-document"
        for="..smashdocument.ISmashDocument"
        permission="cmf.ManagePortal"
        class=".smashdocument.SmashDocument"
        attribute="unarchive_document"
        layer="zopyx.plone.smashdocs.interfaces.IBrowserLayer"
        />

    <browser:page
        name="upload-document"
        for="..smashdocument.ISmashDocument"
        permission="cmf.ModifyPortalContent"
        class=".smashdocument.SmashDocument"
        attribute="upload_document"
        layer="zopyx.plone.smashdocs.interfaces.IBrowserLayer"
        />

    <browser:page
        name="convert-docx"
        for="..smashdocument.ISmashDocument"
        permission="cmf.ModifyPortalContent"
        class=".smashdocument.SmashDocument"
        attribute="convert_docx"
        layer="zopyx.plone.smashdocs.interfaces.IBrowserLayer"
        />

    <browser:page
        name="convert-html"
        for="..smashdocument.ISmashDocument"
        permission="cmf.ModifyPortalContent"
        class=".smashdocument.SmashDocument"
        attribute="convert_html"
        layer="zopyx.plone.smashdocs.interfaces.IBrowserLayer"
        />

    <browser:page
        name="convert-sdxml"
        for="..smashdocument.ISmashDocument"
        permission="cmf.ModifyPortalContent"
        class=".smashdocument.SmashDocument"
        attribute="convert_sdxml"
        layer="zopyx.plone.smashdocs.interfaces.IBrowserLayer"
        />

    <browser:page
        name="smashdocs-settings"
        for="Products.CMFPlone.interfaces.IPloneSiteRoot"
        class=".controlpanel.SmashdocsSettingsControlPanel"
        permission="cmf.ManagePortal"
        layer="zopyx.plone.smashdocs.interfaces.IBrowserLayer"
    />

    <browser:resourceDirectory
        name="zopyx.plone.smashdocs"
        directory="resources"
        layer="zopyx.plone.smashdocs.interfaces.IBrowserLayer"
    />


</configure>
