<?xml version="1.0" encoding="ISO-8859-1" ?>
<!--

  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.

-->
<gatein-resources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://www.exoplatform.org/xml/ns/gatein_resources_1_4 http://www.exoplatform.org/xml/ns/gatein_resources_1_4"
	xmlns="http://www.exoplatform.org/xml/ns/gatein_resources_1_4">

  <!-- Javascript for Onlyoffice editor in WCM -->
  <module>
    <name>onlyofficeJqueryPnotify</name>
    <load-group>onlyofficeGRP</load-group>
    <script>
      <minify>false</minify>
      <path>/js/jquery.pnotify.min.js</path>
    </script>
    <depends>
      <module>jquery</module>
      <as>jQuery</as>
    </depends>
  </module>
  <module>
    <name>onlyofficeJqueryUI</name>
    <as>jqueryUI</as>
    <load-group>onlyofficeGRP</load-group>
    <script>
      <path>/js/jquery-ui.js</path>
    </script>
    <depends>
      <module>jquery</module>
      <as>jQuery</as>
    </depends>
  </module>
  <module>
    <name>onlyofficeRedux</name>
    <load-group>onlyofficeGRP</load-group>
    <script>
      <minify>false</minify>
      <path>/js/redux.min.js</path>
    </script>
    <depends>
      <module>redux</module>
      <as>Redux</as>
    </depends>
  </module>
  <module>
    <name>onlyoffice</name>
    <load-group>onlyofficeGRP</load-group>
    <script>
      <path>/js/onlyoffice.js</path>
    </script>
    <depends>
      <module>jquery</module>
    </depends>
    <depends>
      <module>commons-cometd3</module>
    </depends>
    <depends>
      <module>onlyofficeJqueryPnotify</module>
    </depends>
    <depends>
      <module>onlyofficeJqueryUI</module>
    </depends>
        <depends>
      <module>onlyofficeRedux</module>
    </depends>
  </module>
  
  <portlet-skin>
    <application-name>onlyoffice</application-name>
    <portlet-name>OnlyofficeDocumentStatePortlet</portlet-name>
    <skin-name>Enterprise</skin-name>
    <css-path>/skin/onlyoffice-extras.css</css-path>
    <overwrite>true</overwrite>
  </portlet-skin>

  <portlet-skin>
    <application-name>onlyoffice</application-name>
    <portlet-name>OnlyofficeDocumentStatePortlet</portlet-name>
    <skin-name>Default</skin-name>
    <css-path>/skin/onlyoffice-extras.css</css-path>
    <overwrite>true</overwrite>
  </portlet-skin>
</gatein-resources>
