<?xml version="1.0" encoding="UTF-8"?>
<!--

  Copyright (C) 2019 eXo Platform SAS.

  This is free software; you can redistribute it and/or modify it
  under the terms of the GNU Lesser General Public License as
  published by the Free Software Foundation; either version 2.1 of
  the License, or (at your option) any later version.

  This software is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  Lesser General Public License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with this software; if not, write to the Free
  Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
  02110-1301 USA, or see the FSF site: http://www.fsf.org.

-->
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd
   http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
  <portlet>
    <portlet-name>OnlyofficeEditorPortlet</portlet-name>
    <display-name xml:lang="EN">Onlyoffice Editor Portlet</display-name>
    <portlet-class>org.exoplatform.onlyoffice.portlet.EditorPortlet</portlet-class>
    <init-param>
      <name>layout-css-class</name>
      <value>no-layout-style</value>
    </init-param>
    <supports>
      <mime-type>text/html</mime-type>
    </supports>
    <portlet-info>
      <title>Onlyoffice editor portlet</title>
      <short-title>Onlyoffice editor</short-title>
    </portlet-info>
  </portlet>

  <portlet>
    <portlet-name>NewDocumentExtension</portlet-name>
    <portlet-class>org.exoplatform.commons.api.portlet.GenericDispatchedViewPortlet</portlet-class>
    <init-param>
      <name>portlet-view-dispatched-file-path</name>
      <value>/html/newDocumentExtension.html</value>
    </init-param>
    <init-param>
      <name>preload.resource.bundles</name>
      <value>locale.navigation.portal.global</value>
    </init-param>
    <init-param>
      <name>layout-css-class</name>
      <value>no-layout-style</value>
    </init-param>
    <supports>
      <mime-type>text/html</mime-type>
    </supports>
    <supported-locale>en</supported-locale>
    <resource-bundle>locale.navigation.portal.global</resource-bundle>
    <portlet-info>
      <title>New Document Extension</title>
    </portlet-info>
    <portlet-preferences>
      <preference>
        <name>jsModule</name>
        <value>onlyoffice/NewDocumentExtension</value>
      </preference>
    </portlet-preferences>
  </portlet>
</portlet-app>
