You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by fe...@apache.org on 2007/07/22 16:51:30 UTC

svn commit: r558490 [12/33] - in /cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha: ./ images/ images/de/ images/fr/ lang/ modules/ modules/ColorPicker/ modules/CreateLink/ modules/Dialogs/ m...

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/manager.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/manager.js?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/manager.js (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/manager.js Sun Jul 22 07:50:10 2007
@@ -0,0 +1,393 @@
+function comboSelectValue(c,_2){
+var _3=c.getElementsByTagName("option");
+for(var i=_3.length;--i>=0;){
+var op=_3[i];
+op.selected=(op.value==_2);
+}
+c.value=_2;
+}
+function i18n(_6){
+return Xinha._lc(_6,"ExtendedFileManager");
+}
+function setAlign(_7){
+var _8=document.getElementById("f_align");
+for(var i=0;i<_8.length;i++){
+if(_8.options[i].value==_7){
+_8.selectedIndex=i;
+break;
+}
+}
+}
+function onTargetChanged(){
+var f=document.getElementById("f_other_target");
+if(this.value=="_other"){
+f.style.visibility="visible";
+f.select();
+f.focus();
+}else{
+f.style.visibility="hidden";
+}
+}
+if(manager_mode=="link"){
+var offsetForInputs=(Xinha.is_ie)?165:150;
+}else{
+var offsetForInputs=(Xinha.is_ie)?230:210;
+}
+init=function(){
+var h=100+250+offsetForInputs;
+__dlg_init(null,{width:650,height:h});
+__dlg_translate("ExtendedFileManager");
+var _c=document.getElementById("uploadForm");
+if(_c){
+_c.target="imgManager";
+}
+var _d=window.dialogArguments.editor;
+var _e=window.dialogArguments.param;
+if(manager_mode=="image"&&_e){
+var _f=new RegExp("^https?://");
+if(_e.f_url.length>0&&!_f.test(_e.f_url)&&typeof _e.baseHref=="string"){
+_e.f_url=_e.baseHref+_e.f_url;
+}
+var _10=new RegExp("(https?://[^/]*)?"+base_url.replace(/\/$/,""));
+_e.f_url=_e.f_url.replace(_10,"");
+var rd=(_resized_dir)?_resized_dir.replace(Xinha.RE_Specials,"\\$1")+"/":"";
+var rp=_resized_prefix.replace(Xinha.RE_Specials,"\\$1");
+var _13=new RegExp("^(.*/)"+rd+rp+"_([0-9]+)x([0-9]+)_([^/]+)$");
+var _14=_e.f_url.match(_13);
+if(_13.test(_e.f_url)){
+_e.f_url=RegExp.$1+RegExp.$4;
+_e.f_width=RegExp.$2;
+_e.f_height=RegExp.$3;
+}
+document.getElementById("f_url").value=_e["f_url"];
+document.getElementById("f_alt").value=_e["f_alt"];
+document.getElementById("f_title").value=_e["f_title"];
+document.getElementById("f_border").value=_e["f_border"];
+document.getElementById("f_width").value=_e["f_width"];
+document.getElementById("f_height").value=_e["f_height"];
+document.getElementById("f_margin").value=_e["f_margin"];
+document.getElementById("f_padding").value=_e["f_padding"];
+document.getElementById("f_borderColor").value=_e["f_borderColor"];
+document.getElementById("f_backgroundColor").value=_e["f_backgroundColor"];
+setAlign(_e["f_align"]);
+document.getElementById("f_url").focus();
+document.getElementById("orginal_width").value=_e["f_width"];
+document.getElementById("orginal_height").value=_e["f_height"];
+var _13=new RegExp("^(.*/)([^/]+)$");
+if(_13.test(_e["f_url"])){
+changeDir(RegExp.$1);
+var _15=document.getElementById("dirPath");
+for(var i=0;i<_15.options.length;i++){
+if(_15.options[i].value==encodeURIComponent(RegExp.$1)){
+_15.options[i].selected=true;
+break;
+}
+}
+}
+document.getElementById("f_preview").src=_backend_url+"__function=thumbs&img="+_e.f_url;
+}else{
+if(manager_mode=="link"&&_e){
+var _17=document.getElementById("f_target");
+var _18=true;
+var _f=new RegExp("^https?://");
+if(_e.f_href.length>0&&!_f.test(_e.f_href)&&typeof _e.baseHref=="string"){
+_e.f_href=_e.baseHref+_e.f_href;
+}
+var _19=new RegExp("(https?://[^/]*)?"+base_url.replace(/\/$/,""));
+_e.f_href=_e.f_href.replace(_19,"");
+var _1a;
+var _13=new RegExp("^(.*/)([^/]+)$");
+if(_13.test(_e["f_href"])){
+_1a=RegExp.$1;
+}else{
+_1a=document.cookie.match(/EFMStartDirlink=(.*?)(;|$)/);
+if(_1a){
+_1a=_1a[1];
+}
+}
+if(_1a){
+changeDir(_1a);
+var _15=document.getElementById("dirPath");
+for(var i=0;i<_15.options.length;i++){
+if(_15.options[i].value==encodeURIComponent(RegExp.$1)){
+_15.options[i].selected=true;
+break;
+}
+}
+}
+if(_e){
+if(typeof _e["f_usetarget"]!="undefined"){
+_18=_e["f_usetarget"];
+}
+if(typeof _e["f_href"]!="undefined"){
+document.getElementById("f_href").value=_e["f_href"];
+document.getElementById("f_title").value=_e["f_title"];
+comboSelectValue(_17,_e["f_target"]);
+if(_17.value!=_e.f_target){
+var opt=document.createElement("option");
+opt.value=_e.f_target;
+opt.innerHTML=opt.value;
+_17.appendChild(opt);
+opt.selected=true;
+}
+}
+}
+if(!_18){
+document.getElementById("f_target_label").style.visibility="hidden";
+document.getElementById("f_target").style.visibility="hidden";
+document.getElementById("f_other_target").style.visibility="hidden";
+}
+var opt=document.createElement("option");
+opt.value="_other";
+opt.innerHTML=i18n("Other");
+_17.appendChild(opt);
+_17.onchange=onTargetChanged;
+document.getElementById("f_href").focus();
+}else{
+if(!_e){
+var _1a=document.cookie.match(new RegExp("EFMStartDir"+manager_mode+"=(.*?)(;|$)"));
+if(_1a){
+_1a=_1a[1];
+changeDir(_1a);
+var _15=document.getElementById("dirPath");
+for(var i=0;i<_15.options.length;i++){
+if(_15.options[i].value==encodeURIComponent(_1a)){
+_15.options[i].selected=true;
+break;
+}
+}
+}
+}
+}
+}
+if(manager_mode=="image"&&typeof Xinha.colorPicker!="undefined"&&document.getElementById("f_backgroundColor")){
+var _1c={cellsize:_d.config.colorPickerCellSize,granularity:_d.config.colorPickerGranularity,websafe:_d.config.colorPickerWebSafe,savecolors:_d.config.colorPickerSaveColors};
+new Xinha.colorPicker.InputBinding(document.getElementById("f_backgroundColor"),_1c);
+new Xinha.colorPicker.InputBinding(document.getElementById("f_borderColor"),_1c);
+}
+};
+function pasteButton(_1d){
+var _1e=document.getElementById("pasteBtn");
+if(!_1e.firstChild){
+var a=document.createElement("a");
+a.href="javascript:void(0);";
+var img=document.createElement("img");
+img.src=window.opener._editor_url+"plugins/ExtendedFileManager/img/edit_paste.gif";
+img.alt=i18n("Paste");
+a.appendChild(img);
+_1e.appendChild(a);
+}
+_1e.onclick=function(){
+if(typeof imgManager!="undefined"){
+imgManager.paste(_1d);
+}
+if(_1d.action=="moveFile"||_1d.action=="moveDir"){
+this.onclick=null;
+this.removeChild(this.firstChild);
+}
+};
+switch(_1d.action){
+case "copyFile":
+_1e.firstChild.title=i18n("Copy \"$file="+_1d.file+"$\" from \"$dir="+decodeURIComponent(_1d.dir)+"$\" here");
+break;
+case "copyDir":
+_1e.firstChild.title=i18n("Copy folder \"$file="+_1d.file+"$\" from \"$dir="+decodeURIComponent(_1d.dir)+"$\" here");
+break;
+case "moveFile":
+_1e.firstChild.title=i18n("Move \"$file="+_1d.file+"$\" from \"$dir="+decodeURIComponent(_1d.dir)+"$\" here");
+break;
+break;
+case "moveDir":
+_1e.firstChild.title=i18n("Move folder \"$file="+_1d.file+"$\" from \"$dir="+decodeURIComponent(_1d.dir)+"$\" here");
+break;
+}
+}
+function onCancel(){
+__dlg_close(null);
+return false;
+}
+function onOK(){
+if(manager_mode=="image"){
+var _21=["f_url","f_alt","f_title","f_align","f_border","f_margin","f_padding","f_height","f_width","f_borderColor","f_backgroundColor"];
+var _22=new Object();
+for(var i in _21){
+var id=_21[i];
+var el=document.getElementById(id);
+if(id=="f_url"&&el.value.indexOf("://")<0&&el.value){
+_22[id]=makeURL(base_url,el.value);
+}else{
+_22[id]=el.value;
+}
+}
+var _26={w:document.getElementById("orginal_width").value,h:document.getElementById("orginal_height").value};
+if((_26.w!=_22.f_width)||(_26.h!=_22.f_height)){
+var _27=Xinha._geturlcontent(window.opener._editor_url+"plugins/ExtendedFileManager/"+_backend_url+"&__function=resizer&img="+encodeURIComponent(document.getElementById("f_url").value)+"&width="+_22.f_width+"&height="+_22.f_height);
+_27=eval(_27);
+if(_27){
+_22.f_url=makeURL(base_url,_27);
+}
+}
+__dlg_close(_22);
+return false;
+}else{
+if(manager_mode=="link"){
+var _28={};
+for(var i in _28){
+var el=document.getElementById(i);
+if(!el.value){
+alert(_28[i]);
+el.focus();
+return false;
+}
+}
+var _21=["f_href","f_title","f_target"];
+var _22=new Object();
+for(var i in _21){
+var id=_21[i];
+var el=document.getElementById(id);
+if(id=="f_href"&&el.value.indexOf("://")<0){
+_22[id]=makeURL(base_url,el.value);
+}else{
+_22[id]=el.value;
+}
+}
+if(_22.f_target=="_other"){
+_22.f_target=document.getElementById("f_other_target").value;
+}
+__dlg_close(_22);
+return false;
+}
+}
+}
+function makeURL(_29,_2a){
+if(_29.substring(_29.length-1)!="/"){
+_29+="/";
+}
+if(_2a.charAt(0)=="/"){
+}
+_2a=_2a.substring(1);
+return _29+_2a;
+}
+function updateDir(_2b){
+var _2c=_2b.options[_2b.selectedIndex].value;
+changeDir(_2c);
+}
+function goUpDir(){
+var _2d=document.getElementById("dirPath");
+var _2e=_2d.options[_2d.selectedIndex].text;
+if(_2e.length<2){
+return false;
+}
+var _2f=_2e.split("/");
+var _30="";
+for(var i=0;i<_2f.length-2;i++){
+_30+=_2f[i]+"/";
+}
+for(var i=0;i<_2d.length;i++){
+var _32=_2d.options[i].text;
+if(_32==_30){
+_2d.selectedIndex=i;
+var _33=_2d.options[i].value;
+changeDir(_33);
+break;
+}
+}
+}
+function changeDir(_34){
+if(typeof imgManager!="undefined"){
+imgManager.changeDir(_34);
+}
+}
+function updateView(){
+refresh();
+}
+function toggleConstrains(_35){
+var _36=document.getElementById("imgLock");
+var _35=document.getElementById("constrain_prop");
+if(_35.checked){
+_36.src="img/locked.gif";
+checkConstrains("width");
+}else{
+_36.src="img/unlocked.gif";
+}
+}
+function checkConstrains(_37){
+var _38=document.getElementById("constrain_prop");
+if(_38.checked){
+var obj=document.getElementById("orginal_width");
+var _3a=parseInt(obj.value);
+var obj=document.getElementById("orginal_height");
+var _3b=parseInt(obj.value);
+var _3c=document.getElementById("f_width");
+var _3d=document.getElementById("f_height");
+var _3e=parseInt(_3c.value);
+var _3f=parseInt(_3d.value);
+if(_3a>0&&_3b>0){
+if(_37=="width"&&_3e>0){
+_3d.value=parseInt((_3e/_3a)*_3b);
+}
+if(_37=="height"&&_3f>0){
+_3c.value=parseInt((_3f/_3b)*_3a);
+}
+}
+}
+}
+function showMessage(_40){
+var _41=document.getElementById("message");
+var _42=document.getElementById("messages");
+if(_41.firstChild){
+_41.removeChild(_41.firstChild);
+}
+_41.appendChild(document.createTextNode(i18n(_40)));
+_42.style.display="block";
+}
+function addEvent(obj,_44,fn){
+if(obj.addEventListener){
+obj.addEventListener(_44,fn,true);
+return true;
+}else{
+if(obj.attachEvent){
+var r=obj.attachEvent("on"+_44,fn);
+return r;
+}else{
+return false;
+}
+}
+}
+function doUpload(){
+var _47=document.getElementById("uploadForm");
+if(_47){
+showMessage("Uploading");
+}
+}
+function refresh(){
+var _48=document.getElementById("dirPath");
+updateDir(_48);
+}
+function newFolder(){
+function createFolder(_49){
+var _4a=document.getElementById("dirPath");
+var dir=_4a.options[_4a.selectedIndex].value;
+if(_49==thumbdir){
+alert(i18n("Invalid folder name, please choose another folder name."));
+return false;
+}
+if(_49&&_49!=""&&typeof imgManager!="undefined"){
+imgManager.newFolder(dir,encodeURI(_49));
+}
+}
+if(Xinha.ie_version>6){
+popupPrompt(i18n("Please enter name for new folder..."),i18n("Untitled"),createFolder,i18n("New Folder"));
+}else{
+var _4c=prompt(i18n("Please enter name for new folder..."),i18n("Untitled"));
+createFolder(_4c);
+}
+}
+function resize(){
+var win=Xinha.viewportSize(window);
+document.getElementById("imgManager").style.height=parseInt(win.y-130-offsetForInputs,10)+"px";
+return true;
+}
+addEvent(window,"resize",resize);
+addEvent(window,"load",init);
+

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/manager.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/popup.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/popup.js?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/popup.js (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/popup.js Sun Jul 22 07:50:10 2007
@@ -0,0 +1,65 @@
+// htmlArea v3.0 - Copyright (c) 2002, 2003 interactivetools.com, inc.
+// This copyright notice MUST stay intact for use (see license.txt).
+//
+// Portions (c) dynarch.com, 2003
+//
+// A free WYSIWYG editor replacement for <textarea> fields.
+// For full source code and docs, visit http://www.interactivetools.com/
+//
+// Version 3.0 developed by Mihai Bazon.
+//   http://dynarch.com/mishoo
+//
+// $Id: popup.js 799 2007-03-27 23:30:28Z ray $
+
+function __dlg_onclose() {
+    if(opener.Dialog._return)
+        opener.Dialog._return(null);
+}
+
+function __dlg_translate(context) {
+    var types = ["span", "option", "td", "th", "button", "div", "label", "a","img", "legend"];
+    for (var type = 0; type < types.length; type++) {
+        var spans = document.getElementsByTagName(types[type]);
+        for (var i = spans.length; --i >= 0;) {
+            var span = spans[i];
+            if (span.firstChild && span.firstChild.data) {
+                var txt = Xinha._lc(span.firstChild.data, context);
+                if (txt)
+                    span.firstChild.data = txt;
+            }
+            if (span.title) {
+                var txt = Xinha._lc(span.title, context);
+                if (txt)
+                    span.title = txt;
+            }
+            if (span.alt) {
+                var txt = Xinha._lc(span.alt, context);
+                if (txt)
+                    span.alt = txt;
+            }
+        }
+    }
+    document.title = Xinha._lc(document.title, context);
+}
+
+// closes the dialog and passes the return info upper.
+function __dlg_close(val) {
+    opener.Dialog._return(val);
+    window.close();
+}
+
+function popupPrompt( prompt, value, handler, title)
+{
+  
+    Dialog("prompt.html", function(param)
+    {
+      if (!param) // user must have pressed Cancel
+      {
+        return false;
+      }
+      else
+      {
+        handler (param.value);
+      }
+    }, {prompt:prompt,value:value,title:title});
+}
\ No newline at end of file

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/popup.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/slider.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/slider.js?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/slider.js (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/slider.js Sun Jul 22 07:50:10 2007
@@ -0,0 +1,105 @@
+/**
+ * ImageEditor slider file.
+ * Authors: Wei Zhuo, Afru, Krzysztof Kotowicz
+ * Version: Updated on 08-01-2005 by Afru
+ * Version: Updated on 20-06-2006 by Krzysztof Kotowicz
+ * Package: ExtendedFileManager (EFM 1.1.1)
+ * http://www.afrusoft.com/htmlarea
+ */
+
+var ie=document.all;
+var ns6=document.getElementById&&!document.all;
+
+document.onmouseup = captureStop;
+
+var currentSlider = null,sliderField = null;
+var rangeMin = null, rangeMax= null, sx = -1, sy = -1, initX=0;
+
+function getMouseXY(e) {
+
+    //alert('hello');
+    x = ns6? e.clientX: event.clientX
+    y = ns6? e.clientY: event.clientY
+
+    if (sx < 0) sx = x; if (sy < 0) sy = y;
+
+    var dx = initX +(x-sx);
+
+    if (dx <= rangeMin)
+        dx = rangeMin;
+    else if (dx >= rangeMax)
+        dx = rangeMax;
+
+    var range = (dx-rangeMin)/(rangeMax - rangeMin)*100;
+
+    if (currentSlider !=  null)
+        currentSlider.style.left = dx+"px";
+
+    if (sliderField != null)
+    {
+        sliderField.value = parseInt(range);
+    }
+    return false;
+
+}
+
+function initSlider()
+{
+    if (currentSlider == null)
+        currentSlider = document.getElementById('sliderbar');
+
+    if (sliderField == null)
+        sliderField = document.getElementById('quality');
+
+    if (rangeMin == null)
+        rangeMin = 3
+    if (rangeMax == null)
+    {
+        var track = document.getElementById('slidertrack');
+        rangeMax = parseInt(track.style.width);
+    }
+
+}
+
+function updateSlider(value)
+{
+    initSlider();
+
+    var newValue = parseInt(value)/100*(rangeMax-rangeMin);
+
+    if (newValue <= rangeMin)
+        newValue = rangeMin;
+    else if (newValue >= rangeMax)
+        newValue = rangeMax;
+
+    if (currentSlider !=  null)
+        currentSlider.style.left = newValue+"px";
+
+    var range = newValue/(rangeMax - rangeMin)*100;
+
+    if (sliderField != null)
+        sliderField.value = parseInt(range);
+}
+
+function captureStart()
+{
+
+    initSlider();
+
+    initX = parseInt(currentSlider.style.left);
+    if (initX > rangeMax)
+        initX = rangeMax;
+    else if (initX < rangeMin)
+        initX = rangeMin;
+
+    document.onmousemove = getMouseXY;
+
+    return false;
+}
+
+function captureStop()
+{
+    sx = -1; sy = -1;
+    document.onmousemove = null;
+    return false;
+}
\ No newline at end of file

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/slider.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/wz_jsgraphics.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/wz_jsgraphics.js?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/wz_jsgraphics.js (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/wz_jsgraphics.js Sun Jul 22 07:50:10 2007
@@ -0,0 +1,502 @@
+var jg_ihtm,jg_ie,jg_dom,jg_n4=(document.layers&&typeof document.classes!="undefined");
+function chkDHTM(x,i){
+x=document.body||null;
+jg_ie=(x&&typeof x.insertAdjacentHTML!="undefined");
+jg_dom=(x&&!jg_ie&&typeof x.appendChild!="undefined"&&typeof document.createRange!="undefined"&&typeof (i=document.createRange()).setStartBefore!="undefined"&&typeof i.createContextualFragment!="undefined");
+jg_ihtm=(!jg_ie&&!jg_dom&&x&&typeof x.innerHTML!="undefined");
+}
+function pntDoc(){
+this.wnd.document.write(this.htm);
+this.htm="";
+}
+function pntCnvDom(){
+var x=document.createRange();
+x.setStartBefore(this.cnv);
+x=x.createContextualFragment(this.htm);
+this.cnv.appendChild(x);
+this.htm="";
+}
+function pntCnvIe(){
+this.cnv.insertAdjacentHTML("BeforeEnd",this.htm);
+this.htm="";
+}
+function pntCnvIhtm(){
+this.cnv.innerHTML+=this.htm;
+this.htm="";
+}
+function pntCnv(){
+this.htm="";
+}
+function mkDiv(x,y,w,h){
+this.htm+="<div style=\"position:absolute;"+"left:"+x+"px;"+"top:"+y+"px;"+"width:"+w+"px;"+"height:"+h+"px;"+"clip:rect(0,"+w+"px,"+h+"px,0);"+"overflow:hidden;background-color:"+this.color+";"+"\"></div>";
+}
+function mkDivPrint(x,y,w,h){
+this.htm+="<div style=\"position:absolute;"+"border-left:"+w+"px solid "+this.color+";"+"left:"+x+"px;"+"top:"+y+"px;"+"width:"+w+"px;"+"height:"+h+"px;"+"clip:rect(0,"+w+"px,"+h+"px,0);"+"overflow:hidden;background-color:"+this.color+";"+"\"></div>";
+}
+function mkLyr(x,y,w,h){
+this.htm+="<layer "+"left=\""+x+"\" "+"top=\""+y+"\" "+"width=\""+w+"\" "+"height=\""+h+"\" "+"bgcolor=\""+this.color+"\"></layer>\n";
+}
+function mkLbl(txt,x,y){
+this.htm+="<div style=\"position:absolute;white-space:nowrap;"+"left:"+x+"px;"+"top:"+y+"px;"+"font-family:"+this.ftFam+";"+"font-size:"+this.ftSz+";"+"color:"+this.color+";"+this.ftSty+"\">"+txt+"</div>";
+}
+function mkLin(x1,y1,x2,y2){
+if(x1>x2){
+var _x2=x2;
+var _y2=y2;
+x2=x1;
+y2=y1;
+x1=_x2;
+y1=_y2;
+}
+var dx=x2-x1,dy=Math.abs(y2-y1),x=x1,y=y1,yIncr=(y1>y2)?-1:1;
+if(dx>=dy){
+var pr=dy<<1,pru=pr-(dx<<1),p=pr-dx,ox=x;
+while((dx--)>0){
+++x;
+if(p>0){
+this.mkDiv(ox,y,x-ox,1);
+y+=yIncr;
+p+=pru;
+ox=x;
+}else{
+p+=pr;
+}
+}
+this.mkDiv(ox,y,x2-ox+1,1);
+}else{
+var pr=dx<<1,pru=pr-(dy<<1),p=pr-dy,oy=y;
+if(y2<=y1){
+while((dy--)>0){
+if(p>0){
+this.mkDiv(x++,y,1,oy-y+1);
+y+=yIncr;
+p+=pru;
+oy=y;
+}else{
+y+=yIncr;
+p+=pr;
+}
+}
+this.mkDiv(x2,y2,1,oy-y2+1);
+}else{
+while((dy--)>0){
+y+=yIncr;
+if(p>0){
+this.mkDiv(x++,oy,1,y-oy);
+p+=pru;
+oy=y;
+}else{
+p+=pr;
+}
+}
+this.mkDiv(x2,oy,1,y2-oy+1);
+}
+}
+}
+function mkLin2D(x1,y1,x2,y2){
+if(x1>x2){
+var _x2=x2;
+var _y2=y2;
+x2=x1;
+y2=y1;
+x1=_x2;
+y1=_y2;
+}
+var dx=x2-x1,dy=Math.abs(y2-y1),x=x1,y=y1,yIncr=(y1>y2)?-1:1;
+var s=this.stroke;
+if(dx>=dy){
+if(s-3>0){
+var _s=(s*dx*Math.sqrt(1+dy*dy/(dx*dx))-dx-(s>>1)*dy)/dx;
+_s=(!(s-4)?Math.ceil(_s):Math.round(_s))+1;
+}else{
+var _s=s;
+}
+var ad=Math.ceil(s/2);
+var pr=dy<<1,pru=pr-(dx<<1),p=pr-dx,ox=x;
+while((dx--)>0){
+++x;
+if(p>0){
+this.mkDiv(ox,y,x-ox+ad,_s);
+y+=yIncr;
+p+=pru;
+ox=x;
+}else{
+p+=pr;
+}
+}
+this.mkDiv(ox,y,x2-ox+ad+1,_s);
+}else{
+if(s-3>0){
+var _s=(s*dy*Math.sqrt(1+dx*dx/(dy*dy))-(s>>1)*dx-dy)/dy;
+_s=(!(s-4)?Math.ceil(_s):Math.round(_s))+1;
+}else{
+var _s=s;
+}
+var ad=Math.round(s/2);
+var pr=dx<<1,pru=pr-(dy<<1),p=pr-dy,oy=y;
+if(y2<=y1){
+++ad;
+while((dy--)>0){
+if(p>0){
+this.mkDiv(x++,y,_s,oy-y+ad);
+y+=yIncr;
+p+=pru;
+oy=y;
+}else{
+y+=yIncr;
+p+=pr;
+}
+}
+this.mkDiv(x2,y2,_s,oy-y2+ad);
+}else{
+while((dy--)>0){
+y+=yIncr;
+if(p>0){
+this.mkDiv(x++,oy,_s,y-oy+ad);
+p+=pru;
+oy=y;
+}else{
+p+=pr;
+}
+}
+this.mkDiv(x2,oy,_s,y2-oy+ad+1);
+}
+}
+}
+function mkLinDott(x1,y1,x2,y2){
+if(x1>x2){
+var _x2=x2;
+var _y2=y2;
+x2=x1;
+y2=y1;
+x1=_x2;
+y1=_y2;
+}
+var dx=x2-x1,dy=Math.abs(y2-y1),x=x1,y=y1,yIncr=(y1>y2)?-1:1,drw=true;
+if(dx>=dy){
+var pr=dy<<1,pru=pr-(dx<<1),p=pr-dx;
+while((dx--)>0){
+if(drw){
+this.mkDiv(x,y,1,1);
+}
+drw=!drw;
+if(p>0){
+y+=yIncr;
+p+=pru;
+}else{
+p+=pr;
+}
+++x;
+}
+if(drw){
+this.mkDiv(x,y,1,1);
+}
+}else{
+var pr=dx<<1,pru=pr-(dy<<1),p=pr-dy;
+while((dy--)>0){
+if(drw){
+this.mkDiv(x,y,1,1);
+}
+drw=!drw;
+y+=yIncr;
+if(p>0){
+++x;
+p+=pru;
+}else{
+p+=pr;
+}
+}
+if(drw){
+this.mkDiv(x,y,1,1);
+}
+}
+}
+function mkOv(_2e,top,_30,_31){
+var a=_30>>1,b=_31>>1,wod=_30&1,hod=(_31&1)+1,cx=_2e+a,cy=top+b,x=0,y=b,ox=0,oy=b,aa=(a*a)<<1,bb=(b*b)<<1,st=(aa>>1)*(1-(b<<1))+bb,tt=(bb>>1)-aa*((b<<1)-1),w,h;
+while(y>0){
+if(st<0){
+st+=bb*((x<<1)+3);
+tt+=(bb<<1)*(++x);
+}else{
+if(tt<0){
+st+=bb*((x<<1)+3)-(aa<<1)*(y-1);
+tt+=(bb<<1)*(++x)-aa*(((y--)<<1)-3);
+w=x-ox;
+h=oy-y;
+if(w&2&&h&2){
+this.mkOvQds(cx,cy,-x+2,ox+wod,-oy,oy-1+hod,1,1);
+this.mkOvQds(cx,cy,-x+1,x-1+wod,-y-1,y+hod,1,1);
+}else{
+this.mkOvQds(cx,cy,-x+1,ox+wod,-oy,oy-h+hod,w,h);
+}
+ox=x;
+oy=y;
+}else{
+tt-=aa*((y<<1)-3);
+st-=(aa<<1)*(--y);
+}
+}
+}
+this.mkDiv(cx-a,cy-oy,a-ox+1,(oy<<1)+hod);
+this.mkDiv(cx+ox+wod,cy-oy,a-ox+1,(oy<<1)+hod);
+}
+function mkOv2D(_33,top,_35,_36){
+var s=this.stroke;
+_35+=s-1;
+_36+=s-1;
+var a=_35>>1,b=_36>>1,wod=_35&1,hod=(_36&1)+1,cx=_33+a,cy=top+b,x=0,y=b,aa=(a*a)<<1,bb=(b*b)<<1,st=(aa>>1)*(1-(b<<1))+bb,tt=(bb>>1)-aa*((b<<1)-1);
+if(s-4<0&&(!(s-2)||_35-51>0&&_36-51>0)){
+var ox=0,oy=b,w,h,pxl,pxr,pxt,pxb,pxw;
+while(y>0){
+if(st<0){
+st+=bb*((x<<1)+3);
+tt+=(bb<<1)*(++x);
+}else{
+if(tt<0){
+st+=bb*((x<<1)+3)-(aa<<1)*(y-1);
+tt+=(bb<<1)*(++x)-aa*(((y--)<<1)-3);
+w=x-ox;
+h=oy-y;
+if(w-1){
+pxw=w+1+(s&1);
+h=s;
+}else{
+if(h-1){
+pxw=s;
+h+=1+(s&1);
+}else{
+pxw=h=s;
+}
+}
+this.mkOvQds(cx,cy,-x+1,ox-pxw+w+wod,-oy,-h+oy+hod,pxw,h);
+ox=x;
+oy=y;
+}else{
+tt-=aa*((y<<1)-3);
+st-=(aa<<1)*(--y);
+}
+}
+}
+this.mkDiv(cx-a,cy-oy,s,(oy<<1)+hod);
+this.mkDiv(cx+a+wod-s+1,cy-oy,s,(oy<<1)+hod);
+}else{
+var _a=(_35-((s-1)<<1))>>1,_b=(_36-((s-1)<<1))>>1,_x=0,_y=_b,_aa=(_a*_a)<<1,_bb=(_b*_b)<<1,_st=(_aa>>1)*(1-(_b<<1))+_bb,_tt=(_bb>>1)-_aa*((_b<<1)-1),pxl=new Array(),pxt=new Array(),_pxb=new Array();
+pxl[0]=0;
+pxt[0]=b;
+_pxb[0]=_b-1;
+while(y>0){
+if(st<0){
+st+=bb*((x<<1)+3);
+tt+=(bb<<1)*(++x);
+pxl[pxl.length]=x;
+pxt[pxt.length]=y;
+}else{
+if(tt<0){
+st+=bb*((x<<1)+3)-(aa<<1)*(y-1);
+tt+=(bb<<1)*(++x)-aa*(((y--)<<1)-3);
+pxl[pxl.length]=x;
+pxt[pxt.length]=y;
+}else{
+tt-=aa*((y<<1)-3);
+st-=(aa<<1)*(--y);
+}
+}
+if(_y>0){
+if(_st<0){
+_st+=_bb*((_x<<1)+3);
+_tt+=(_bb<<1)*(++_x);
+_pxb[_pxb.length]=_y-1;
+}else{
+if(_tt<0){
+_st+=_bb*((_x<<1)+3)-(_aa<<1)*(_y-1);
+_tt+=(_bb<<1)*(++_x)-_aa*(((_y--)<<1)-3);
+_pxb[_pxb.length]=_y-1;
+}else{
+_tt-=_aa*((_y<<1)-3);
+_st-=(_aa<<1)*(--_y);
+_pxb[_pxb.length-1]--;
+}
+}
+}
+}
+var ox=0,oy=b,_oy=_pxb[0],l=pxl.length,w,h;
+for(var i=0;i<l;i++){
+if(typeof _pxb[i]!="undefined"){
+if(_pxb[i]<_oy||pxt[i]<oy){
+x=pxl[i];
+this.mkOvQds(cx,cy,-x+1,ox+wod,-oy,_oy+hod,x-ox,oy-_oy);
+ox=x;
+oy=pxt[i];
+_oy=_pxb[i];
+}
+}else{
+x=pxl[i];
+this.mkDiv(cx-x+1,cy-oy,1,(oy<<1)+hod);
+this.mkDiv(cx+ox+wod,cy-oy,1,(oy<<1)+hod);
+ox=x;
+oy=pxt[i];
+}
+}
+this.mkDiv(cx-a,cy-oy,1,(oy<<1)+hod);
+this.mkDiv(cx+ox+wod,cy-oy,1,(oy<<1)+hod);
+}
+}
+function mkOvDott(_3c,top,_3e,_3f){
+var a=_3e>>1,b=_3f>>1,wod=_3e&1,hod=_3f&1,cx=_3c+a,cy=top+b,x=0,y=b,aa2=(a*a)<<1,aa4=aa2<<1,bb=(b*b)<<1,st=(aa2>>1)*(1-(b<<1))+bb,tt=(bb>>1)-aa2*((b<<1)-1),drw=true;
+while(y>0){
+if(st<0){
+st+=bb*((x<<1)+3);
+tt+=(bb<<1)*(++x);
+}else{
+if(tt<0){
+st+=bb*((x<<1)+3)-aa4*(y-1);
+tt+=(bb<<1)*(++x)-aa2*(((y--)<<1)-3);
+}else{
+tt-=aa2*((y<<1)-3);
+st-=aa4*(--y);
+}
+}
+if(drw){
+this.mkOvQds(cx,cy,-x,x+wod,-y,y+hod,1,1);
+}
+drw=!drw;
+}
+}
+function mkRect(x,y,w,h){
+var s=this.stroke;
+this.mkDiv(x,y,w,s);
+this.mkDiv(x+w,y,s,h);
+this.mkDiv(x,y+h,w+s,s);
+this.mkDiv(x,y+s,s,h-s);
+}
+function mkRectDott(x,y,w,h){
+this.drawLine(x,y,x+w,y);
+this.drawLine(x+w,y,x+w,y+h);
+this.drawLine(x,y+h,x+w,y+h);
+this.drawLine(x,y,x,y+h);
+}
+function jsgFont(){
+this.PLAIN="font-weight:normal;";
+this.BOLD="font-weight:bold;";
+this.ITALIC="font-style:italic;";
+this.ITALIC_BOLD=this.ITALIC+this.BOLD;
+this.BOLD_ITALIC=this.ITALIC_BOLD;
+}
+var Font=new jsgFont();
+function jsgStroke(){
+this.DOTTED=-1;
+}
+var Stroke=new jsgStroke();
+function jsGraphics(id,wnd){
+this.setColor=new Function("arg","this.color = arg;");
+this.getColor=new Function("return this.color");
+this.setStroke=function(x){
+this.stroke=x;
+if(!(x+1)){
+this.drawLine=mkLinDott;
+this.mkOv=mkOvDott;
+this.drawRect=mkRectDott;
+}else{
+if(x-1>0){
+this.drawLine=mkLin2D;
+this.mkOv=mkOv2D;
+this.drawRect=mkRect;
+}else{
+this.drawLine=mkLin;
+this.mkOv=mkOv;
+this.drawRect=mkRect;
+}
+}
+};
+this.setPrintable=function(arg){
+this.printable=arg;
+this.mkDiv=jg_n4?mkLyr:arg?mkDivPrint:mkDiv;
+};
+this.setFont=function(fam,sz,sty){
+this.ftFam=fam;
+this.ftSz=sz;
+this.ftSty=sty||Font.PLAIN;
+};
+this.drawPolyline=this.drawPolyLine=function(x,y,s){
+var i=x.length-1;
+while(i>=0){
+this.drawLine(x[i],y[i],x[--i],y[i]);
+}
+};
+this.fillRect=function(x,y,w,h){
+this.mkDiv(x,y,w,h);
+};
+this.fillRectPattern=function(x,y,w,h,url){
+this.htm+="<div style=\"position:absolute;"+"left:"+x+"px;"+"top:"+y+"px;"+"width:"+w+"px;"+"height:"+h+"px;"+"clip:rect(0,"+w+"px,"+h+"px,0);"+"overflow:hidden;"+"background-image: url('"+url+"');"+"layer-background-image: url('"+url+"');"+"z-index:100;\"></div>";
+};
+this.drawHandle=function(x,y,w,h,_62){
+this.htm+="<div style=\"position:absolute;"+"left:"+x+"px;"+"top:"+y+"px;"+"width:"+w+"px;"+"height:"+h+"px;"+"clip:rect(0,"+w+"px,"+h+"px,0);"+"padding: 2px;overflow:hidden;"+"cursor: '"+_62+"';"+"\" class=\"handleBox\" id=\""+_62+"\" ></div>";
+};
+this.drawHandleBox=function(x,y,w,h,_67){
+this.htm+="<div style=\"position:absolute;"+"left:"+x+"px;"+"top:"+y+"px;"+"width:"+w+"px;"+"height:"+h+"px;"+"clip:rect(0,"+(w+2)+"px,"+(h+2)+"px,0);"+"overflow:hidden; border: solid 1px "+this.color+";"+"cursor: '"+_67+"';"+"\" class=\"handleBox\" id=\""+_67+"\" ></div>";
+};
+this.drawPolygon=function(x,y){
+this.drawPolyline(x,y);
+this.drawLine(x[x.length-1],y[x.length-1],x[0],y[0]);
+};
+this.drawEllipse=this.drawOval=function(x,y,w,h){
+this.mkOv(x,y,w,h);
+};
+this.fillEllipse=this.fillOval=function(_6e,top,w,h){
+var a=(w-=1)>>1,b=(h-=1)>>1,wod=(w&1)+1,hod=(h&1)+1,cx=_6e+a,cy=top+b,x=0,y=b,ox=0,oy=b,aa2=(a*a)<<1,aa4=aa2<<1,bb=(b*b)<<1,st=(aa2>>1)*(1-(b<<1))+bb,tt=(bb>>1)-aa2*((b<<1)-1),pxl,dw,dh;
+if(w+1){
+while(y>0){
+if(st<0){
+st+=bb*((x<<1)+3);
+tt+=(bb<<1)*(++x);
+}else{
+if(tt<0){
+st+=bb*((x<<1)+3)-aa4*(y-1);
+pxl=cx-x;
+dw=(x<<1)+wod;
+tt+=(bb<<1)*(++x)-aa2*(((y--)<<1)-3);
+dh=oy-y;
+this.mkDiv(pxl,cy-oy,dw,dh);
+this.mkDiv(pxl,cy+oy-dh+hod,dw,dh);
+ox=x;
+oy=y;
+}else{
+tt-=aa2*((y<<1)-3);
+st-=aa4*(--y);
+}
+}
+}
+}
+this.mkDiv(cx-a,cy-oy,w+1,(oy<<1)+hod);
+};
+this.drawString=mkLbl;
+this.clear=function(){
+this.htm="";
+if(this.cnv){
+this.cnv.innerHTML=this.defhtm;
+}
+};
+this.mkOvQds=function(cx,cy,xl,xr,yt,yb,w,h){
+this.mkDiv(xr+cx,yt+cy,w,h);
+this.mkDiv(xr+cx,yb+cy,w,h);
+this.mkDiv(xl+cx,yb+cy,w,h);
+this.mkDiv(xl+cx,yt+cy,w,h);
+};
+this.setStroke(1);
+this.setPrintable(false);
+this.setFont("verdana,geneva,helvetica,sans-serif",String.fromCharCode(49,50,112,120),Font.PLAIN);
+this.color="#000000";
+this.htm="";
+this.wnd=wnd||window;
+if(!(jg_ie||jg_dom||jg_ihtm)){
+chkDHTM();
+}
+if(typeof id!="string"||!id){
+this.paint=pntDoc;
+}else{
+this.cnv=document.all?(this.wnd.document.all[id]||null):document.getElementById?(this.wnd.document.getElementById(id)||null):null;
+this.defhtm=(this.cnv&&this.cnv.innerHTML)?this.cnv.innerHTML:"";
+this.paint=jg_dom?pntCnvDom:jg_ie?pntCnvIe:jg_ihtm?pntCnvIhtm:pntCnv;
+}
+}
+

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/assets/wz_jsgraphics.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/backend.php
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/backend.php?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/backend.php (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/backend.php Sun Jul 22 07:50:10 2007
@@ -0,0 +1,110 @@
+<?php 
+/**
+* Unified backend for ExtendedFileManager - copied from ImageManager
+*
+* Image Manager was originally developed by:
+*   Xiang Wei Zhuo, email: xiangweizhuo(at)hotmail.com Wei Shou.
+*
+* Unified backend sponsored by DTLink Software, http://www.dtlink.com
+* Implementation by Yermo Lamers, http://www.formvista.com
+*
+* (c) DTLink, LLC 2005.
+* Distributed under the same terms as Xinha itself.
+* This notice MUST stay intact for use (see license.txt).
+*
+* DESCRIPTION:
+*
+* Instead of using separate URL's for each function, ImageManager now
+* routes all requests to the server through this single, replaceable,
+* entry point. backend.php expects at least two URL variable parameters: 
+*
+* __plugin=ImageManager   for future expansion; identify the plugin being requested.
+* __function=thumbs|images|editorFrame|editor|manager  function being called.
+*
+* Having a single entry point that strictly adheres to a defined interface will 
+* make the backend code much easier to maintain and expand. It will make it easier
+* on integrators, not to mention it'll make it easier to have separate 
+* implementations of the backend in different languages (Perl, Python, ASP, etc.) 
+*
+* @see config.inc.php
+*/
+
+/**
+* ImageManager configuration
+*/
+
+require_once('config.inc.php');
+
+
+// Strip slashes if MQGPC is on
+set_magic_quotes_runtime(0);
+if(get_magic_quotes_gpc())
+{
+  $to_clean = array(&$_GET, &$_POST, &$_REQUEST, &$_COOKIE);
+  while(count($to_clean))
+  {
+    $cleaning =& $to_clean[array_pop($junk = array_keys($to_clean))];
+    unset($to_clean[array_pop($junk = array_keys($to_clean))]);
+    foreach(array_keys($cleaning) as $k)
+    {
+      if(is_array($cleaning[$k]))
+      {
+        $to_clean[] =& $cleaning[$k];
+      }
+      else
+      {
+        $cleaning[$k] = stripslashes($cleaning[$k]);
+      }
+    }
+  }
+}
+
+/**
+* ImageManager configuration
+*/
+
+$formVars = empty($_POST) ? $_GET : $_POST;
+
+// make sure the request is for us (this gives us the ability to eventually organize
+// a backend event handler system) For an include file the return doesn't make alot of
+// sense but eventually we'll want to turn all of this into at least functions 
+// separating out all the presentation HTML from the logic. (Right now all the HTML
+// used by ImageManager is in the same files as the PHP code ...)
+
+if ( @$formVars[ "__plugin" ] != "ExtendedFileManager" )
+	{
+	// not for us.
+
+	return true;
+	}
+
+// so we don't have to re-engineer the entire thing right now, since it's probably
+// going to get rewritten anyway, we just include the correct file based on the 
+// function request.
+
+switch ( @$formVars[ "__function" ] )
+	{
+
+	case "editor": 
+	case "editorFrame":
+	case "manager":
+	case "images":
+	case "thumbs":
+	case "resizer":
+
+		include_once $IMConfig['base_dir'] . '/' . $formVars['__function'] . '.php' ;
+		exit();
+		
+		break;
+
+	default:
+
+		break;
+
+	}	// end of switch.
+
+return false ;
+
+// END
+
+?>
\ No newline at end of file

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/config.inc.php
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/config.inc.php?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/config.inc.php (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/config.inc.php Sun Jul 22 07:50:10 2007
@@ -0,0 +1,384 @@
+<?php
+/**
+ * ExtendedFileManager configuration file.
+ * Authors: Wei Zhuo, Afru
+ * Version: Updated on 08-01-2005 by Afru
+ * Version 1.1.2: Updated on 04-07-2006 by Krzysztof Kotowicz <ko...@webworkers.pl>
+ * Package: ExtendedFileManager
+ * http://www.afrusoft.com/htmlarea
+ */
+
+/*  Configuration file usage:
+ *	There are two insertModes for this filemanager.
+ *	One is "image" and another is "link".
+ *	So you can assign config values as below
+ *
+ *	if($insertMode=="image") $IMConfig['property']=somevalueforimagemode;
+ *	else if($insertMode=="link") $IMConfig['property']=somevalueforlinkmode;
+ *
+ *	(or) you can directly as $IMConfig['property']=somevalueforbothmodes;
+ *
+ *	Best of Luck :) Afru.
+ */
+ 
+/*
+ *	Getting the mode for further differentiation
+ */
+
+if(empty($insertMode))
+    $insertMode="image";
+
+/**
+* Default backend URL
+*
+* URL to use for unified backend.
+*
+* The ?__plugin=ExtendedFileManager& is required.
+*/
+
+$IMConfig['backend_url'] = "backend.php?__plugin=ExtendedFileManager&";
+
+/**
+* Backend Installation Directory
+*
+* location of backend install; these are used to link to css and js
+* assets because we may have the front end installed in a different
+* directory than the backend. (i.e. nothing assumes that the frontend
+* and the backend are in the same directory)
+*/
+$IMConfig['base_dir'] = getcwd();
+$IMConfig['base_url'] = '';
+
+
+/*
+	 File system path to the directory you want to manage the images
+	 for multiple user systems, set it dynamically.
+
+	 NOTE: This directory requires write access by PHP. That is,
+		   PHP must be able to create files in this directory.
+		   Able to create directories is nice, but not necessary.
+*/
+$IMConfig['images_dir'] = 'demo_images';
+//You may set a different directory for the link mode; if you don't, the above setting will be used for both modes
+//$IMConfig['files_dir'] = 'demo_files';
+
+/*
+ The URL to the above path, the web browser needs to be able to see it.
+ It can be protected via .htaccess on apache or directory permissions on IIS,
+ check you web server documentation for futher information on directory protection
+ If this directory needs to be publicly accessiable, remove scripting capabilities
+ for this directory (i.e. disable PHP, Perl, CGI). We only want to store assets
+ in this directory and its subdirectories.
+*/
+$IMConfig['images_url'] = str_replace( array("backend.php","manager.php"), "", $_SERVER["PHP_SELF"] ) . $IMConfig['images_dir'];
+//$IMConfig['files_url'] = 'url/to/files_dir';
+
+/*
+  Possible values: true, false
+
+  TRUE - If PHP on the web server is in safe mode, set this to true.
+         SAFE MODE restrictions: directory creation will not be possible,
+		 only the GD library can be used, other libraries require
+		 Safe Mode to be off.
+
+  FALSE - Set to false if PHP on the web server is not in safe mode.
+*/
+$IMConfig['safe_mode'] = false;
+
+/*
+This specifies whether any image library is available to resize and edit images.TRUE - Thumbnails will be resized by image libraries and if there is no library, default thumbnail will be shown.
+FALSE - Thumbnails will be resized by browser ignoring image libraries.
+*/
+$IMConfig['img_library'] = true;
+
+
+/*
+View type when the File manager is in insert image mode.
+Valid values are "thumbview" and "listview".
+*/
+
+    
+if ($insertMode == 'image')
+	$IMConfig['view_type'] = "thumbview";
+	
+else if($insertMode == "link")
+	$IMConfig['view_type'] = "listview";
+
+$IMConfig['insert_mode'] = $insertMode;
+
+/* 
+ Possible values: 'GD', 'IM', or 'NetPBM'
+
+ The image manipulation library to use, either GD or ImageMagick or NetPBM.
+ If you have safe mode ON, or don't have the binaries to other packages, 
+ your choice is 'GD' only. Other packages require Safe Mode to be off.
+*/
+define('IMAGE_CLASS', 'GD');
+
+
+/*
+ After defining which library to use, if it is NetPBM or IM, you need to
+ specify where the binary for the selected library are. And of course
+ your server and PHP must be able to execute them (i.e. safe mode is OFF).
+ GD does not require the following definition.
+*/
+define('IMAGE_TRANSFORM_LIB_PATH', 'C:/"Program Files"/ImageMagick-5.5.7-Q16/');
+
+
+/*
+  The prefix for thumbnail files, something like .thumb will do. The
+  thumbnails files will be named as "prefix_imagefile.ext", that is,
+  prefix + orginal filename.
+*/
+$IMConfig['thumbnail_prefix'] = 't_';
+
+
+/*
+  Thumbnail can also be stored in a directory, this directory
+  will be created by PHP. If PHP is in safe mode, this parameter
+  is ignored, you can not create directories.
+
+  If you do not want to store thumbnails in a directory, set this
+  to false or empty string '';
+*/
+$IMConfig['thumbnail_dir'] = 't';
+
+/**
+* Resized prefix
+*
+* The prefix for resized files, something like .resized will do.  The
+* resized files will be named <prefix>_<width>x<height>_<original>
+* resized files are created when one changes the dimensions of an image
+* in the image manager selection dialog - the image is scaled when the
+* user clicks the ok button.
+*/
+
+$IMConfig['resized_prefix'] = '.resized';
+
+// -------------------------------------------------------------------------
+
+/**
+* Resized Directory
+*
+* Resized images may also be stored in a directory, except in safe mode.
+*/
+
+$IMConfig['resized_dir'] = '';
+
+/*
+  Possible values: true, false
+
+ TRUE -  Allow the user to create new sub-directories in the
+         $IMConfig['images_dir']/$IMConfig['files_dir'].
+
+ FALSE - No directory creation.
+
+ NOTE: If $IMConfig['safe_mode'] = true, this parameter
+       is ignored, you can not create directories
+*/
+$IMConfig['allow_new_dir'] = true;
+
+/*
+  Possible values: true, false
+
+ TRUE -  Allow the user to edit image by image editor.
+
+ FALSE - No edit icon will be displayed.
+
+ NOTE: If $IMConfig['img_library'] = false, this parameter
+       is ignored, you can not edit images.
+*/
+$IMConfig['allow_edit_image'] = true;
+
+/*
+  Possible values: true, false
+
+ TRUE -  Allow the user to rename files and folders.
+
+ FALSE - No rename icon will be displayed.
+
+*/
+$IMConfig['allow_rename'] = true;
+
+/*
+  Possible values: true, false
+
+ TRUE -  Allow the user to perform cut/copy/paste actions.
+
+ FALSE - No cut/copy/paste icons will be displayed.
+
+*/
+$IMConfig['allow_cut_copy_paste'] = true;
+
+/*
+  Possible values: true, false
+
+  TRUE - Display color pickers for image background / border colors
+
+  FALSE - Don't display color pickers
+*/
+$IMConfig['use_color_pickers'] = true;
+
+/*
+  Possible values: true, false
+
+ TRUE -  Allow the user to set alt (alternative text) attribute.
+
+ FALSE - No input field for alt attribute will be displayed.
+
+ NOTE: The alt attribute is _obligatory_ for images, so <img alt="" /> will be inserted
+      if 'images_enable_alt' is set to false
+*/
+$IMConfig['images_enable_alt'] = true;
+
+/*
+  Possible values: true, false
+
+ TRUE -  Allow the user to set title attribute (usually displayed when mouse is over element).
+
+ FALSE - No input field for title attribute will be displayed.
+
+*/
+$IMConfig['images_enable_title'] = false;
+
+/*
+  Possible values: true, false
+
+ TRUE -  Allow the user to set align attribute.
+
+ FALSE - No selection box for align attribute will be displayed.
+
+*/
+$IMConfig['images_enable_align'] = true;
+
+/*
+  Possible values: true, false
+
+ TRUE -  Allow the user to set margin, padding, and border styles for the image
+
+ FALSE - No styling input fields will be displayed.
+
+*/
+$IMConfig['images_enable_styling'] = true;
+
+/*
+  Possible values: true, false
+
+ TRUE -   Allow the user to set target attribute for link (the window in which the link will be opened).
+
+ FALSE - No selection box for target attribute will be displayed.
+
+*/
+$IMConfig['link_enable_target'] = true;
+/*
+  Possible values: true, false
+
+  TRUE - Allow the user to upload files.
+
+  FALSE - No uploading allowed.
+*/
+$IMConfig['allow_upload'] = true;
+
+/* Maximum upload file size
+
+  Possible values: number, "max"
+
+  number - maximum size in Kilobytes.
+
+  "max"  - the maximum allowed by the server (the value is retrieved from the server configuration).
+*/
+$IMConfig['max_filesize_kb_image'] = 2000000;
+
+$IMConfig['max_filesize_kb_link'] = 5000;
+
+/* Maximum upload folder size in Megabytes. Use 0 to disable limit */
+$IMConfig['max_foldersize_mb'] = 0;
+
+/*
+Allowed extensions that can be shown and allowed to upload.
+Available icons are for "doc,fla,gif,gz,html,jpg,js,mov,pdf,php,png,ppt,rar,txt,xls,zip"
+-Changed by AFRU.
+*/
+
+$IMConfig['allowed_image_extensions'] = array("jpg","gif","png","bmp");
+$IMConfig['allowed_link_extensions'] = array("jpg","gif","js","php","pdf","zip","txt","psd","png","html","swf","xml","xls","doc");
+
+
+/*
+ The default thumbnail and list view icon in case thumbnails are not created and the files are of unknown.
+*/
+$IMConfig['default_thumbnail'] = 'icons/def.gif';
+$IMConfig['default_listicon'] = 'icons/def_small.gif';
+
+
+/*
+Only files with these extensions will be shown as thumbnails. All other files will be shown as icons.
+*/
+$IMConfig['thumbnail_extensions'] = array("jpg", "gif", "png", "bmp");
+
+/*
+  Thumbnail dimensions.
+*/
+$IMConfig['thumbnail_width'] = 84;
+$IMConfig['thumbnail_height'] = 84;
+
+/*
+  Image Editor temporary filename prefix.
+*/
+$IMConfig['tmp_prefix'] = '.editor_';
+
+
+// Standard PHP Backend Data Passing
+//  if data was passed using xinha_pass_to_php_backend() we merge the items
+//  provided into the Config
+require_once(realpath(dirname(__FILE__) . '/../../contrib/php-xinha.php'));
+if($passed_data = xinha_read_passed_data())
+{
+  $IMConfig = array_merge($IMConfig, $passed_data);
+  $IMConfig['backend_url'] .= xinha_passed_data_querystring() . '&';
+}
+// Deprecated config passing, don't use this way any more!
+elseif(isset($_REQUEST['backend_config']))
+{
+  if(get_magic_quotes_gpc()) {
+    $_REQUEST['backend_config'] = stripslashes($_REQUEST['backend_config']);
+  }
+
+  // Config specified from front end, check that it's valid
+  session_start();
+  if (!array_key_exists($_REQUEST['backend_config_secret_key_location'], $_SESSION))
+    die("Backend security error.");
+
+  $secret = $_SESSION[$_REQUEST['backend_config_secret_key_location']];
+
+  if($_REQUEST['backend_config_hash'] !== sha1($_REQUEST['backend_config'] . $secret))
+  {
+    die("Backend security error.");
+  }
+
+  $to_merge = unserialize($_REQUEST['backend_config']);
+  if(!is_array($to_merge))
+  {
+    die("Backend config syntax error.");
+  }
+
+  $IMConfig = array_merge($IMConfig, $to_merge);
+
+   // changed config settings keys in relation to ImageManager
+  $IMConfig['backend_url'] .= "backend_config=" . rawurlencode($_REQUEST['backend_config']) . '&';
+  $IMConfig['backend_url'] .= "backend_config_hash=" . rawurlencode($_REQUEST['backend_config_hash']) . '&';
+  $IMConfig['backend_url'] .= "backend_config_secret_key_location=" . rawurlencode($_REQUEST['backend_config_secret_key_location']) . '&';
+
+}
+if ($IMConfig['max_filesize_kb_link'] == "max")
+{
+  $IMConfig['max_filesize_kb_link'] = upload_max_filesize_kb();
+}
+
+if ($IMConfig['max_filesize_kb_image'] == "max")
+{
+  $IMConfig['max_filesize_kb_image'] = upload_max_filesize_kb();
+}
+// END
+
+?>

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/demo_images/.htaccess
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/demo_images/.htaccess?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/demo_images/.htaccess (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/demo_images/.htaccess Sun Jul 22 07:50:10 2007
@@ -0,0 +1,2 @@
+php_flag engine off
+AddType text/html .html .htm .shtml .php .php3 .phtml .phtm .pl .py .cgi
\ No newline at end of file

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/demo_images/.htaccess
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/demo_images/bikerpeep.jpg
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/demo_images/bikerpeep.jpg?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/demo_images/bikerpeep.jpg
------------------------------------------------------------------------------
    svn:mime-type = image/jpeg

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/demo_images/linux/linux.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/demo_images/linux/linux.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/demo_images/linux/linux.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/demo_images/wesnoth078.jpg
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/demo_images/wesnoth078.jpg?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/demo_images/wesnoth078.jpg
------------------------------------------------------------------------------
    svn:mime-type = image/jpeg

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/editor.php
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/editor.php?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/editor.php (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/editor.php Sun Jul 22 07:50:10 2007
@@ -0,0 +1,150 @@
+<?php
+/**
+ * ExtendedFileManager editor.php file.
+ * Authors: Wei Zhuo, Afru, Krzysztof Kotowicz
+ * Version: Updated on 08-01-2005 by Afru
+ * Version: Updated on 21-06-2006 by Krzysztof Kotowicz
+ * Package: ExtendedFileManager (EFM 1.1.1)
+ * http://www.afrusoft.com/htmlarea
+ */
+if(isset($_REQUEST['mode'])) $insertMode=$_REQUEST['mode'];
+	if(!isset($insertMode)) $insertMode="image";
+
+require_once('config.inc.php');
+require_once('Classes/ExtendedFileManager.php');
+require_once('../ImageManager/Classes/ImageEditor.php');
+
+$manager = new ExtendedFileManager($IMConfig,$insertMode);
+$editor = new ImageEditor($manager);
+
+?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+	<title></title>
+	<link href="<?php print $IMConfig['base_url'];?>assets/editor.css" rel="stylesheet" type="text/css" />
+<script type="text/javascript" src="<?php print $IMConfig['base_url'];?>assets/slider.js"></script>
+<script type="text/javascript" src="../../popups/popup.js"></script>
+<script type="text/javascript" src="<?php print $IMConfig['base_url'];?>assets/popup.js"></script>
+<script type="text/javascript">
+/*<![CDATA[*/
+
+    var _backend_url = "<?php print $IMConfig['backend_url']."&mode=$insertMode"; ?>&";
+
+	if(window.opener)
+		Xinha = window.opener.Xinha;
+/*]]>*/
+</script>
+<script type="text/javascript" src="<?php print $IMConfig['base_url'];?>assets/editor.js"></script>
+</head>
+
+<body>
+<div id="indicator">
+<img src="<?php print $IMConfig['base_url'];?>img/spacer.gif" id="indicator_image" height="20" width="20" alt="" />
+</div>
+<div id="tools">
+	<div id="tools_crop" style="display:none;">
+		<div id="tool_inputs">
+			<label for="cx">Start X:</label><input type="text" id="cx"  class="textInput" onchange="updateMarker('crop')"/>
+			<label for="cy">Start Y:</label><input type="text" id="cy" class="textInput" onchange="updateMarker('crop')"/>
+			<label for="cw">Width:</label><input type="text" id="cw" class="textInput" onchange="updateMarker('crop')"/>
+			<label for="ch">Height:</label><input type="text" id="ch" class="textInput" onchange="updateMarker('crop')"/>			<img src="<?php print $IMConfig['base_url'];?>img/div.gif" height="30" width="2" class="div" alt="|" />
+		</div>	
+		<a href="javascript: editor.doSubmit('crop');" class="buttons" title="OK"><img src="<?php print $IMConfig['base_url'];?>img/btn_ok.gif" height="30" width="30" alt="OK" /></a>
+		<a href="javascript: editor.reset();" class="buttons" title="Cancel"><img src="<?php print $IMConfig['base_url'];?>img/btn_cancel.gif" height="30" width="30" alt="Cancel" /></a>
+	</div>	
+	<div id="tools_scale" style="display:none;">
+		<div id="tool_inputs">
+			<label for="sw">Width:</label><input type="text" id="sw" class="textInput" onchange="checkConstrains('width')"/>
+			<a href="javascript:toggleConstraints();" title="Lock"><img src="<?php print $IMConfig['base_url'];?>img/islocked2.gif" id="scaleConstImg" height="14" width="8" alt="Lock" class="div" /></a><label for="sh">Height:</label>
+			<input type="text" id="sh" class="textInput" onchange="checkConstrains('height')"/>
+			<input type="checkbox" id="constProp" value="1" checked="checked" onclick="toggleConstraints()"/>
+			<label for="constProp">Constrain Proportions</label>
+			<img src="<?php print $IMConfig['base_url'];?>img/div.gif" height="30" width="2" class="div" alt="|" />
+		</div>	
+		<a href="javascript: editor.doSubmit('scale');" class="buttons" title="OK"><img src="<?php print $IMConfig['base_url'];?>img/btn_ok.gif" height="30" width="30" alt="OK" /></a>
+		<a href="javascript: editor.reset();" class="buttons" title="Cancle"><img src="<?php print $IMConfig['base_url'];?>img/btn_cancel.gif" height="30" width="30" alt="Cancel" /></a>
+	</div>	
+	<div id="tools_rotate" style="display:none;">
+		<div id="tool_inputs">
+			<select id="flip" name="flip" style="margin-left: 10px; vertical-align: middle;">
+              <option selected>Flip Image</option>
+              <option>-----------------</option>
+              <option value="hoz">Flip Horizontal</option>
+              <option value="ver">Flip Vertical</option>
+         </select>
+			<select name="rotate" onchange="rotatePreset(this)" style="margin-left: 20px; vertical-align: middle;">
+              <option selected>Rotate Image</option>
+              <option>-----------------</option>
+
+              <option value="180">Rotate 180 &deg;</option>
+              <option value="90">Rotate 90 &deg; CW</option>
+              <option value="-90">Rotate 90 &deg; CCW</option>
+         </select>
+			<label for="ra">Angle:</label><input type="text" id="ra" class="textInput" />
+			<img src="<?php print $IMConfig['base_url'];?>img/div.gif" height="30" width="2" class="div" alt="|" />
+		</div>	
+		<a href="javascript: editor.doSubmit('rotate');" class="buttons" title="OK"><img src="<?php print $IMConfig['base_url'];?>img/btn_ok.gif" height="30" width="30" alt="OK" /></a>
+		<a href="javascript: editor.reset();" class="buttons" title="Cancle"><img src="<?php print $IMConfig['base_url'];?>img/btn_cancel.gif" height="30" width="30" alt="Cancel" /></a>
+	</div>		
+	<div id="tools_measure" style="display:none;">
+		<div id="tool_inputs">
+			<label>X:</label><input type="text" class="measureStats" id="sx" />
+			<label>Y:</label><input type="text" class="measureStats" id="sy" />
+			<img src="<?php print $IMConfig['base_url'];?>img/div.gif" height="30" width="2" class="div" alt="|" />
+			<label>W:</label><input type="text" class="measureStats" id="mw" />
+			<label>H:</label><input type="text" class="measureStats" id="mh" />
+			<img src="<?php print $IMConfig['base_url'];?>img/div.gif" height="30" width="2" class="div" alt="|" />
+			<label>A:</label><input type="text" class="measureStats" id="ma" />		
+			<label>D:</label><input type="text" class="measureStats" id="md" />		
+			<img src="<?php print $IMConfig['base_url'];?>img/div.gif" height="30" width="2" class="div" alt="|" />
+			<button type="button" onclick="editor.reset();" >Clear</button>
+		</div>	
+	</div>
+	<div id="tools_save" style="display:none;">
+		<div id="tool_inputs">
+			<label for="save_filename">Filename:</label><input type="text" id="save_filename" value="<?php echo $editor->getDefaultSaveFile();?>"/>
+			<select name="format" id="save_format" style="margin-left: 10px; vertical-align: middle;" onchange="updateFormat(this)">
+            <option value="" selected>Image Format</option>
+            <option value="">---------------------</option>
+            <option value="jpeg,85">JPEG High</option>
+            <option value="jpeg,60">JPEG Medium</option>
+            <option value="jpeg,35">JPEG Low</option>
+            <option value="png">PNG</option>
+			<?php if($editor->isGDGIFAble() != -1) { ?>
+            <option value="gif">GIF</option>
+			<?php } ?>
+         </select>
+			<label>Quality:</label>
+			<table style="display: inline; vertical-align: middle;" cellpadding="0" cellspacing="0">
+				<tr>
+				<td>
+					<div id="slidercasing"> 
+				<div id="slidertrack" style="width:100px"><img src="<?php print $IMConfig['base_url'];?>img/spacer.gif" width="1" height="1" border="0" alt="track"></div>
+            <div id="sliderbar" style="left:85px" onmousedown="captureStart();"><img src="<?php print $IMConfig['base_url'];?>img/spacer.gif" width="1" height="1" border="0" alt="track"></div>
+			</div>	
+				</td>
+				</tr>
+			</table>				
+			<input type="text" id="quality" onchange="updateSlider(this.value)" style="width: 2em;" value="85"/>
+			<img src="<?php print $IMConfig['base_url'];?>img/div.gif" height="30" width="2" class="div" alt="|" />
+		</div>	
+		<a href="javascript: editor.doSubmit('save');" class="buttons" title="OK"><img src="<?php print $IMConfig['base_url'];?>img/btn_ok.gif" height="30" width="30" alt="OK" /></a>
+		<a href="javascript: editor.reset();" class="buttons" title="Cancel"><img src="<?php print $IMConfig['base_url'];?>img/btn_cancel.gif" height="30" width="30" alt="Cancel" /></a>
+	</div>	
+</div>
+<div id="toolbar">
+<a href="javascript:toggle('crop')" id="icon_crop" title="Crop"><img src="<?php print $IMConfig['base_url'];?>img/crop.gif" height="20" width="20" alt="Crop" /><span>Crop</span></a>
+<a href="javascript:toggle('scale')" id="icon_scale" title="Resize"><img src="<?php print $IMConfig['base_url'];?>img/scale.gif" height="20" width="20" alt="Resize" /><span>Resize</span></a>
+<a href="javascript:toggle('rotate')" id="icon_rotate" title="Rotate"><img src="<?php print $IMConfig['base_url'];?>img/rotate.gif" height="20" width="20" alt="Rotate" /><span>Rotate</span></a>
+<a href="javascript:toggle('measure')" id="icon_measure" title="Measure"><img src="<?php print $IMConfig['base_url'];?>img/measure.gif" height="20" width="20" alt="Measure" /><span>Measure</span></a>
+<a href="javascript: toggleMarker();" title="Marker"><img id="markerImg" src="<?php print $IMConfig['base_url'];?>img/t_black.gif" height="20" width="20" alt="Marker" /><span>Marker</span></a>
+<a href="javascript:toggle('save')" id="icon_save" title="Save"><img src="<?php print $IMConfig['base_url'];?>img/save.gif" height="20" width="20" alt="Save" /><span>Save</span></a>
+</div>
+<div id="contents">
+<iframe src="<?php print $IMConfig['backend_url']; ?>__function=editorFrame&img=<?php if(isset($_GET['img'])) echo rawurlencode($_GET['img']); ?>&mode=<?php echo $insertMode ?>" name="editor" id="editor"  scrolling="auto" title="Image Editor" frameborder="0"></iframe>
+</div>
+<div id="bottom"></div>
+</body>
+</html>

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/editorFrame.php
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/editorFrame.php?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/editorFrame.php (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/editorFrame.php Sun Jul 22 07:50:10 2007
@@ -0,0 +1,82 @@
+<?php
+/**
+ * ExtendedFileManager editorframe.php file.
+ * Authors: Wei Zhuo, Afru, Krzysztof Kotowicz
+ * Version: Updated on 08-01-2005 by Afru
+ * Version: Updated on 21-06-2006 by Krzysztof Kotowicz
+ * Package: ExtendedFileManager (EFM 1.1.1)
+ * http://www.afrusoft.com/htmlarea
+ */
+if(isset($_REQUEST['mode'])) $insertMode=$_REQUEST['mode'];
+	if(!isset($insertMode)) $insertMode="image";
+
+require_once('config.inc.php');
+require_once('Classes/ExtendedFileManager.php');
+require_once('../ImageManager/Classes/ImageEditor.php');
+
+$manager = new ExtendedFileManager($IMConfig,$insertMode);
+$editor = new ImageEditor($manager);
+$imageInfo = $editor->processImage();
+
+?>
+
+<html>
+<head>
+	<title></title>
+<link href="<?php print $IMConfig['base_url'];?>assets/editorFrame.css" rel="stylesheet" type="text/css" />
+<script type="text/javascript" src="<?php print $IMConfig['base_url'];?>assets/wz_jsgraphics.js"></script>
+<script type="text/javascript" src="<?php print $IMConfig['base_url'];?>assets/EditorContent.js"></script>
+<script type="text/javascript">
+    var _backend_url = "<?php print $IMConfig['backend_url']."&mode=$insertMode"; ?>&";
+
+    if(window.top)
+    	Xinha = window.top.Xinha;
+
+    function i18n(str) {
+        return Xinha._lc(str, 'ImageManager');
+    }
+
+	var mode = "<?php echo $editor->getAction(); ?>" //crop, scale, measure
+
+var currentImageFile = "<?php if(count($imageInfo)>0) echo rawurlencode($imageInfo['file']); ?>";
+
+<?php if ($editor->isFileSaved() == 1) { ?>
+	alert(i18n('File saved.'));
+
+    window.parent.opener.parent.refresh();
+    window.parent.opener.selectImage
+    (
+  	'<?php echo $imageInfo['saveFile'] ?>',
+  	'<?php echo $imageInfo['saveFile'] ?>'.replace(/^.*\/?([^\/]*)$/, '$1'),
+  	<?php echo $imageInfo['width'] ?>,
+  	<?php echo $imageInfo['height'] ?>
+  	);
+  	window.parent.close();
+  	
+<?php } else if ($editor->isFileSaved() == -1) { ?>
+	alert(i18n('File was not saved.'));
+<?php } ?>
+
+</script>
+<script type="text/javascript" src="<?php print $IMConfig['base_url'];?>assets/editorFrame.js"></script>
+</head>
+
+<body>
+<div id="status"></div>
+<div id="ant" class="selection" style="visibility:hidden"><img src="<?php print $IMConfig['base_url'];?>img/spacer.gif" width="0" height="0" border="0" alt="" id="cropContent"></div>
+<?php if ($editor->isGDEditable() == -1) { ?>
+	<div style="text-align:center; padding:10px;"><span class="error">GIF format is not supported, image editing not supported.</span></div>
+<?php } ?>
+<table height="100%" width="100%">
+	<tr>
+		<td>
+<?php if(count($imageInfo) > 0 && is_file($imageInfo['fullpath'])) { ?>
+	<span id="imgCanvas" class="crop"><img src="<?php echo $imageInfo['src']; ?>" <?php echo $imageInfo['dimensions']; ?> alt="" id="theImage" name="theImage"></span>
+<?php } else { ?>
+	<span class="error">No Image Available</span>
+<?php } ?>
+		</td>
+	</tr>
+</table>
+</body>
+</html>

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/extended-file-manager.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/extended-file-manager.js?view=auto&rev=558490
==============================================================================
--- cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/extended-file-manager.js (added)
+++ cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/extended-file-manager.js Sun Jul 22 07:50:10 2007
@@ -0,0 +1,243 @@
+function ExtendedFileManager(_1){
+this.editor=_1;
+var _2=_1.config;
+var _3=_2.toolbar;
+var _4=this;
+if(_2.ExtendedFileManager.use_linker){
+_2.registerButton({id:"linkfile",tooltip:Xinha._lc("Insert File Link","ExtendedFileManager"),image:_editor_url+"plugins/ExtendedFileManager/img/ed_linkfile.gif",textMode:false,action:function(_5){
+_5._linkFile();
+}});
+_2.addToolbarElement("linkfile","createlink",1);
+}
+}
+ExtendedFileManager._pluginInfo={name:"ExtendedFileManager",version:"1.1.1",developer:"Afru, Krzysztof Kotowicz",developer_url:"http://www.afrusoft.com/htmlarea/",license:"htmlArea"};
+Xinha.Config.prototype.ExtendedFileManager={"use_linker":true,"backend":_editor_url+"plugins/ExtendedFileManager/backend.php?__plugin=ExtendedFileManager&","backend_data":null,"backend_config":null,"backend_config_hash":null,"backend_config_secret_key_location":"Xinha:ImageManager"};
+Xinha.prototype._insertImage=function(_6){
+var _7=this;
+var _8={"editor":this,param:null};
+if(typeof _6=="undefined"){
+_6=this.getParentElement();
+if(_6&&!/^img$/i.test(_6.tagName)){
+_6=null;
+}
+}
+if(_6){
+_8.param={f_url:Xinha.is_ie?_6.src:_6.getAttribute("src"),f_alt:_6.alt,f_title:_6.title,f_border:_6.style.borderWidth?_6.style.borderWidth:_6.border,f_align:_6.align,f_width:_6.width,f_height:_6.height,f_padding:_6.style.padding,f_margin:_6.style.margin,f_backgroundColor:_6.style.backgroundColor,f_borderColor:_6.style.borderColor,baseHref:_7.config.baseHref};
+_8.param.f_border=shortSize(_8.param.f_border);
+_8.param.f_padding=shortSize(_8.param.f_padding);
+_8.param.f_margin=shortSize(_8.param.f_margin);
+_8.param.f_backgroundColor=convertToHex(_8.param.f_backgroundColor);
+_8.param.f_borderColor=convertToHex(_8.param.f_borderColor);
+}
+var _9=_7.config.ExtendedFileManager.backend+"__function=manager";
+if(_7.config.ExtendedFileManager.backend_config!=null){
+_9+="&backend_config="+encodeURIComponent(_7.config.ExtendedFileManager.backend_config);
+_9+="&backend_config_hash="+encodeURIComponent(_7.config.ExtendedFileManager.backend_config_hash);
+_9+="&backend_config_secret_key_location="+encodeURIComponent(_7.config.ExtendedFileManager.backend_config_secret_key_location);
+}
+if(_7.config.ExtendedFileManager.backend_data!=null){
+for(var i in _7.config.ExtendedFileManager.backend_data){
+_9+="&"+i+"="+encodeURIComponent(_7.config.ExtendedFileManager.backend_data[i]);
+}
+}
+Dialog(_9,function(_b){
+if(!_b){
+return false;
+}
+var _c=_6;
+if(!_c){
+if(!_b.f_url){
+return false;
+}
+if(Xinha.is_ie){
+var _d=_7.getSelection();
+var _e=_7.createRange(_d);
+_7._doc.execCommand("insertimage",false,_b.f_url);
+_c=_e.parentElement();
+if(_c.tagName.toLowerCase()!="img"){
+_c=_c.previousSibling;
+}
+}else{
+_c=document.createElement("img");
+_c.src=_b.f_url;
+_7.insertNodeAtSelection(_c);
+}
+}else{
+if(!_b.f_url){
+_c.parentNode.removeChild(_c);
+_7.updateToolbar();
+return false;
+}else{
+_c.src=_b.f_url;
+}
+}
+_c.alt=_c.alt?_c.alt:"";
+for(field in _b){
+var _f=_b[field];
+switch(field){
+case "f_alt":
+_c.alt=_f;
+break;
+case "f_title":
+_c.title=_f;
+break;
+case "f_border":
+if(_f){
+_c.style.borderWidth=/[^0-9]/.test(_f)?_f:(_f!="")?(parseInt(_f)+"px"):"";
+if(_c.style.borderWidth&&!_c.style.borderStyle){
+_c.style.borderStyle="solid";
+}else{
+if(!_c.style.borderWidth){
+_c.style.border="";
+}
+}
+}
+break;
+case "f_borderColor":
+_c.style.borderColor=_f;
+break;
+case "f_backgroundColor":
+_c.style.backgroundColor=_f;
+break;
+case "f_align":
+_c.align=_f;
+break;
+case "f_width":
+_c.width=parseInt(_f||"0");
+break;
+case "f_height":
+_c.height=parseInt(_f||"0");
+break;
+case "f_padding":
+_c.style.padding=/[^0-9]/.test(_f)?_f:(_f!="")?(parseInt(_f)+"px"):"";
+break;
+case "f_margin":
+_c.style.margin=/[^0-9]/.test(_f)?_f:(_f!="")?(parseInt(_f)+"px"):"";
+break;
+}
+}
+},_8);
+};
+Xinha.prototype._linkFile=function(_10){
+var _11=this;
+var _12={"editor":this,param:null};
+if(typeof _10=="undefined"){
+_10=this.getParentElement();
+if(_10){
+if(/^img$/i.test(_10.tagName)){
+_10=_10.parentNode;
+}
+if(!/^a$/i.test(_10.tagName)){
+_10=null;
+}
+}
+}
+if(!_10){
+var sel=_11.getSelection();
+var _14=_11.createRange(sel);
+var _15=0;
+if(Xinha.is_ie){
+if(sel.type=="Control"){
+_15=_14.length;
+}else{
+_15=_14.compareEndPoints("StartToEnd",_14);
+}
+}else{
+_15=_14.compareBoundaryPoints(_14.START_TO_END,_14);
+}
+if(_15==0){
+alert(Xinha._lc("You must select some text before making a new link.","ExtendedFileManager"));
+return;
+}
+_12.param={f_href:"",f_title:"",f_target:"",f_usetarget:_11.config.makeLinkShowsTarget,baseHref:_11.config.baseHref};
+}else{
+_12.param={f_href:Xinha.is_ie?_10.href:_10.getAttribute("href"),f_title:_10.title,f_target:_10.target,f_usetarget:_11.config.makeLinkShowsTarget,baseHref:_11.config.baseHref};
+}
+var _16=_editor_url+"plugins/ExtendedFileManager/manager.php?mode=link";
+if(_11.config.ExtendedFileManager.backend_config!=null){
+_16+="&backend_config="+encodeURIComponent(_11.config.ExtendedFileManager.backend_config);
+_16+="&backend_config_hash="+encodeURIComponent(_11.config.ExtendedFileManager.backend_config_hash);
+_16+="&backend_config_secret_key_location="+encodeURIComponent(_11.config.ExtendedFileManager.backend_config_secret_key_location);
+}
+if(_11.config.ExtendedFileManager.backend_data!=null){
+for(var i in _11.config.ExtendedFileManager.backend_data){
+_16+="&"+i+"="+encodeURIComponent(_11.config.ExtendedFileManager.backend_data[i]);
+}
+}
+Dialog(_16,function(_18){
+if(!_18){
+return false;
+}
+var a=_10;
+if(!a){
+try{
+_11._doc.execCommand("createlink",false,_18.f_href);
+a=_11.getParentElement();
+var sel=_11.getSelection();
+var _1b=_11.createRange(sel);
+if(!Xinha.is_ie){
+a=_1b.startContainer;
+if(!/^a$/i.test(a.tagName)){
+a=a.nextSibling;
+if(a==null){
+a=_1b.startContainer.parentNode;
+}
+}
+}
+}
+catch(e){
+}
+}else{
+var _1c=_18.f_href.trim();
+_11.selectNodeContents(a);
+if(_1c==""){
+_11._doc.execCommand("unlink",false,null);
+_11.updateToolbar();
+return false;
+}else{
+a.href=_1c;
+}
+}
+if(!(a&&/^a$/i.test(a.tagName))){
+return false;
+}
+a.target=_18.f_target.trim();
+a.title=_18.f_title.trim();
+_11.selectNodeContents(a);
+_11.updateToolbar();
+},_12);
+};
+function shortSize(_1d){
+if(/ /.test(_1d)){
+var _1e=_1d.split(" ");
+var _1f=true;
+for(var i=1;i<_1e.length;i++){
+if(_1e[0]!=_1e[i]){
+_1f=false;
+break;
+}
+}
+if(_1f){
+_1d=_1e[0];
+}
+}
+return _1d;
+}
+function convertToHex(_21){
+if(typeof _21=="string"&&/, /.test.color){
+_21=_21.replace(/, /,",");
+}
+if(typeof _21=="string"&&/ /.test.color){
+var _22=_21.split(" ");
+var _23="";
+for(var i=0;i<_22.length;i++){
+_23+=Xinha._colorToRgb(_22[i]);
+if(i+1<_22.length){
+_23+=" ";
+}
+}
+return _23;
+}
+return Xinha._colorToRgb(_21);
+}
+

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/extended-file-manager.js
------------------------------------------------------------------------------
    svn:eol-style = native

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/def.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/def.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/def.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/def_small.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/def_small.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/def_small.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/doc.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/doc.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/doc.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/doc_small.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/doc_small.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/doc_small.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/fla.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/fla.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/fla.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/fla_small.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/fla_small.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/fla_small.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/folder.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/folder.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/folder.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/folder_small.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/folder_small.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/folder_small.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/gif_small.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/gif_small.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/gif_small.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/gz.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/gz.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/gz.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/gz_small.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/gz_small.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/gz_small.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/html.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/html.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/html.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/html_small.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/html_small.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/html_small.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/jpg_small.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/jpg_small.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/jpg_small.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/js.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/js.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/js.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/js_small.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/js_small.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/js_small.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/mov.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/mov.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/mov.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/mov_small.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/mov_small.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/mov_small.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/pdf.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/pdf.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/pdf.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/pdf_small.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/pdf_small.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.

Propchange: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/pdf_small.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/php.gif
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-forms/cocoon-forms-impl/src/main/resources/org/apache/cocoon/forms/resources/xinha/plugins/ExtendedFileManager/icons/php.gif?view=auto&rev=558490
==============================================================================
Binary file - no diff available.