diff --git a/Sandbox/Viewer Extension/build.xml b/Sandbox/Viewer Extension/build.xml index d74d60e8..08967810 100644 --- a/Sandbox/Viewer Extension/build.xml +++ b/Sandbox/Viewer Extension/build.xml @@ -73,7 +73,7 @@ - + @@ -144,15 +144,18 @@ - + + + + + + + - + - + + @@ -192,16 +195,16 @@ - - + + + + + + + - + - diff --git a/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/alfresco/components/preview/pdfviewerform.get.head.ftl b/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/alfresco/components/preview/pdfviewerform.get.head.ftl deleted file mode 100644 index 3867b04f..00000000 --- a/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/alfresco/components/preview/pdfviewerform.get.head.ftl +++ /dev/null @@ -1,7 +0,0 @@ -<#include "../component.head.inc"> -<#-- This file is part of the Share Extras PdfJs Viewer project --> -<@link rel="stylesheet" type="text/css" href="${page.url.context}/res/components/preview/pdfviewer.css" /> -<@script type="text/javascript" src="${page.url.context}/res/components/preview/pdfviewercompatibility.js"> -<@script type="text/javascript" src="${page.url.context}/res/components/preview/pdf.js"> - -<@script type="text/javascript" src="${page.url.context}/res/components/preview/pdfviewer.js"> diff --git a/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/alfresco/components/preview/pdfviewerform.get.desc.xml b/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/shareextras/components/preview/pdfviewerform.get.desc.xml similarity index 100% rename from Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/alfresco/components/preview/pdfviewerform.get.desc.xml rename to Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/shareextras/components/preview/pdfviewerform.get.desc.xml diff --git a/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/shareextras/components/preview/pdfviewerform.get.head.ftl b/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/shareextras/components/preview/pdfviewerform.get.head.ftl new file mode 100644 index 00000000..7e7cc82f --- /dev/null +++ b/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/shareextras/components/preview/pdfviewerform.get.head.ftl @@ -0,0 +1,7 @@ +<#include "/org/alfresco/components/component.head.inc"> +<#-- This file is part of the Share Extras PdfJs Viewer project --> +<@link rel="stylesheet" type="text/css" href="${page.url.context}/res/extras/components/preview/pdfjs/pdfviewer.css" /> +<@script type="text/javascript" src="${page.url.context}/res/extras/components/preview/pdfjs/pdfviewercompatibility.js"> +<@script type="text/javascript" src="${page.url.context}/res/extras/components/preview/pdfjs/pdf.js"> + +<@script type="text/javascript" src="${page.url.context}/res/extras/components/preview/pdfjs/pdfviewer.js"> diff --git a/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/alfresco/components/preview/pdfviewerform.get.html.ftl b/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/shareextras/components/preview/pdfviewerform.get.html.ftl similarity index 74% rename from Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/alfresco/components/preview/pdfviewerform.get.html.ftl rename to Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/shareextras/components/preview/pdfviewerform.get.html.ftl index 534b144e..9e64c642 100644 --- a/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/alfresco/components/preview/pdfviewerform.get.html.ftl +++ b/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/shareextras/components/preview/pdfviewerform.get.html.ftl @@ -2,12 +2,12 @@ <#assign el=args.htmlid?html>
@@ -21,10 +21,10 @@
@@ -45,19 +45,19 @@
@@ -92,10 +92,10 @@
diff --git a/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/alfresco/components/preview/pdfviewerform.get.properties b/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/shareextras/components/preview/pdfviewerform.get.properties similarity index 100% rename from Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/alfresco/components/preview/pdfviewerform.get.properties rename to Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/shareextras/components/preview/pdfviewerform.get.properties diff --git a/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/alfresco/components/preview/pdfviewerform.get_de.properties b/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/shareextras/components/preview/pdfviewerform.get_de.properties similarity index 100% rename from Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/alfresco/components/preview/pdfviewerform.get_de.properties rename to Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/shareextras/components/preview/pdfviewerform.get_de.properties diff --git a/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/alfresco/components/preview/pdfviewerform.get_en.properties b/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/shareextras/components/preview/pdfviewerform.get_en.properties similarity index 100% rename from Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/alfresco/components/preview/pdfviewerform.get_en.properties rename to Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/shareextras/components/preview/pdfviewerform.get_en.properties diff --git a/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/alfresco/components/preview/pdfviewerform.get_sv.properties b/Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/shareextras/components/preview/pdfviewerform.get_sv.properties similarity index 100% rename from Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/alfresco/components/preview/pdfviewerform.get_sv.properties rename to Sandbox/Viewer Extension/config/alfresco/site-webscripts/org/shareextras/components/preview/pdfviewerform.get_sv.properties diff --git a/Sandbox/Viewer Extension/config/alfresco/web-extension/site-webscripts/org/alfresco/components/preview/web-preview.get.head.ftl b/Sandbox/Viewer Extension/config/alfresco/web-extension/site-webscripts/org/alfresco/components/preview/web-preview.get.head.ftl index 37acba9d..2348badb 100644 --- a/Sandbox/Viewer Extension/config/alfresco/web-extension/site-webscripts/org/alfresco/components/preview/web-preview.get.head.ftl +++ b/Sandbox/Viewer Extension/config/alfresco/web-extension/site-webscripts/org/alfresco/components/preview/web-preview.get.head.ftl @@ -34,8 +34,8 @@ <#-- Extend base web-preview with common methods --> -<@script type="text/javascript" src="${page.url.context}/res/components/preview/web-preview-extend.js"> -<@script type="text/javascript" src="${page.url.context}/res/components/preview/pdfviewerloader.js"> -<@link rel="stylesheet" type="text/css" href="${page.url.context}/res/components/preview/pdfviewerloader.css" /> -<@script type="text/javascript" src="${page.url.context}/res/components/preview/IframeView.js"> -<@link rel="stylesheet" type="text/css" href="${page.url.context}/res/components/preview/IframeView.css" /> \ No newline at end of file +<@script type="text/javascript" src="${page.url.context}/res/extras/components/preview/web-preview-extend.js"> +<@script type="text/javascript" src="${page.url.context}/res/extras/components/preview/pdfviewerloader.js"> +<@link rel="stylesheet" type="text/css" href="${page.url.context}/res/extras/components/preview/pdfviewerloader.css" /> +<@script type="text/javascript" src="${page.url.context}/res/extras/components/preview/IframeView.js"> +<@link rel="stylesheet" type="text/css" href="${page.url.context}/res/extras/components/preview/IframeView.css" /> \ No newline at end of file diff --git a/Sandbox/Viewer Extension/lib/yui-compressor-ant-task-0.5.jar b/Sandbox/Viewer Extension/lib/yui-compressor-ant-task-0.5.jar new file mode 100644 index 00000000..b9251df1 Binary files /dev/null and b/Sandbox/Viewer Extension/lib/yui-compressor-ant-task-0.5.jar differ diff --git a/Sandbox/Viewer Extension/lib/yuicompressor-2.4.2.jar b/Sandbox/Viewer Extension/lib/yuicompressor-2.4.2.jar new file mode 100644 index 00000000..c29470bd Binary files /dev/null and b/Sandbox/Viewer Extension/lib/yuicompressor-2.4.2.jar differ diff --git a/Sandbox/Viewer Extension/source/web/components/preview/IframeView.css b/Sandbox/Viewer Extension/source/web/extras/components/preview/IframeView.css similarity index 100% rename from Sandbox/Viewer Extension/source/web/components/preview/IframeView.css rename to Sandbox/Viewer Extension/source/web/extras/components/preview/IframeView.css diff --git a/Sandbox/Viewer Extension/source/web/components/preview/IframeView.js b/Sandbox/Viewer Extension/source/web/extras/components/preview/IframeView.js similarity index 67% rename from Sandbox/Viewer Extension/source/web/components/preview/IframeView.js rename to Sandbox/Viewer Extension/source/web/extras/components/preview/IframeView.js index e2ead5de..fdc3aeb3 100644 --- a/Sandbox/Viewer Extension/source/web/components/preview/IframeView.js +++ b/Sandbox/Viewer Extension/source/web/extras/components/preview/IframeView.js @@ -1,21 +1,30 @@ -/** - * This file is part of the Share Extras pdfJS project. - * It is an extension/rewrite of of Alfresco source code - * and subject to their license. +/* + * Copyright (C) 2010-2012 Share Extras contributors + * + * This file is part of the Share Extras project. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. */ /** - * This is the "IframeView" plugin used to display text files using the