You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by gm...@apache.org on 2014/07/22 19:35:04 UTC

svn commit: r1612622 [6/9] - in /roller/trunk/app/src/main: java/org/apache/roller/weblogger/ui/core/plugins/ resources/org/apache/roller/weblogger/config/ resources/sql/ webapp/roller-ui/authoring/editors/ webapp/roller-ui/authoring/editors/xinha-0.95...

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/ColorPicker/ColorPicker.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/ColorPicker/ColorPicker.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/ColorPicker/ColorPicker.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/ColorPicker/ColorPicker.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,624 @@
+/* This compressed file is part of Xinha. For uncompressed sources, forum, and bug reports, go to xinha.org */
+/* The URL of the most recent version of this file is http://svn.xinha.org/trunk/modules/ColorPicker/ColorPicker.js */
+ColorPicker._pluginInfo={name:"colorPicker",version:"$LastChangedRevision: 1237 $".replace(/^[^:]*:\s*(.*)\s*\$$/,"$1"),developer:"James Sleeman",developer_url:"http://www.gogo.co.nz/",c_owner:"Gogo Internet Services",license:"htmlArea",sponsor:"Gogo Internet Services",sponsor_url:"http://www.gogo.co.nz/"};
+function ColorPicker(){
+};
+try{
+if(window.opener&&window.opener.Xinha){
+var openerColorPicker=window.opener.Xinha.colorPicker;
+Xinha._addEvent(window,"unload",function(){
+Xinha.colorPicker=openerColorPicker;
+});
+}
+}
+catch(e){
+}
+Xinha.colorPicker=function(_1){
+if(Xinha.colorPicker.savedColors.length===0){
+Xinha.colorPicker.loadColors();
+}
+this.is_ie_6=(Xinha.is_ie&&Xinha.ie_version<7);
+var _2=this;
+var _3=false;
+var _4=false;
+var _5=0;
+var _6=0;
+this.callback=_1.callback?_1.callback:function(_7){
+alert("You picked "+_7);
+};
+this.websafe=_1.websafe?_1.websafe:false;
+this.savecolors=_1.savecolors?_1.savecolors:20;
+this.cellsize=parseInt(_1.cellsize?_1.cellsize:"10px",10);
+this.side=_1.granularity?_1.granularity:18;
+var _8=this.side+1;
+var _9=this.side-1;
+this.value=1;
+this.saved_cells=null;
+this.table=document.createElement("table");
+this.table.className="dialog";
+this.table.cellSpacing=this.table.cellPadding=0;
+this.table.onmouseup=function(){
+_3=false;
+_4=false;
+};
+this.tbody=document.createElement("tbody");
+this.table.appendChild(this.tbody);
+this.table.style.border="1px solid WindowFrame";
+this.table.style.zIndex="1050";
+var tr=document.createElement("tr");
+var td=document.createElement("td");
+td.colSpan=this.side;
+td.className="title";
+td.style.fontFamily="small-caption,caption,sans-serif";
+td.style.fontSize="x-small";
+td.unselectable="on";
+td.style.MozUserSelect="none";
+td.style.cursor="default";
+td.appendChild(document.createTextNode(Xinha._lc("Click a color...")));
+td.style.borderBottom="1px solid WindowFrame";
+tr.appendChild(td);
+td=null;
+var td=document.createElement("td");
+td.className="title";
+td.colSpan=2;
+td.style.fontFamily="Tahoma,Verdana,sans-serif";
+td.style.borderBottom="1px solid WindowFrame";
+td.style.paddingRight="0";
+tr.appendChild(td);
+var _c=document.createElement("div");
+_c.title=Xinha._lc("Close");
+_c.className="buttonColor";
+_c.style.height="11px";
+_c.style.width="11px";
+_c.style.cursor="pointer";
+_c.onclick=function(){
+_2.close();
+};
+_c.appendChild(document.createTextNode("×"));
+_c.align="center";
+_c.style.verticalAlign="top";
+_c.style.position="relative";
+_c.style.cssFloat="right";
+_c.style.styleFloat="right";
+_c.style.padding="0";
+_c.style.margin="2px";
+_c.style.backgroundColor="transparent";
+_c.style.fontSize="11px";
+if(!Xinha.is_ie){
+_c.style.lineHeight="9px";
+}
+_c.style.letterSpacing="0";
+td.appendChild(_c);
+this.tbody.appendChild(tr);
+_c=tr=td=null;
+this.constrain_cb=document.createElement("input");
+this.constrain_cb.type="checkbox";
+this.chosenColor=document.createElement("input");
+this.chosenColor.type="text";
+this.chosenColor.maxLength=7;
+this.chosenColor.style.width="50px";
+this.chosenColor.style.fontSize="11px";
+this.chosenColor.onchange=function(){
+if(/#[0-9a-f]{6,6}/i.test(this.value)){
+_2.backSample.style.backgroundColor=this.value;
+_2.foreSample.style.color=this.value;
+}
+};
+this.backSample=document.createElement("div");
+this.backSample.appendChild(document.createTextNode(" "));
+this.backSample.style.fontWeight="bold";
+this.backSample.style.fontFamily="small-caption,caption,sans-serif";
+this.backSample.fontSize="x-small";
+this.foreSample=document.createElement("div");
+this.foreSample.appendChild(document.createTextNode(Xinha._lc("Sample")));
+this.foreSample.style.fontWeight="bold";
+this.foreSample.style.fontFamily="small-caption,caption,sans-serif";
+this.foreSample.fontSize="x-small";
+function toHex(_d){
+var h=_d.toString(16);
+if(h.length<2){
+h="0"+h;
+}
+return h;
+};
+function tupleToColor(_f){
+return "#"+toHex(_f.red)+toHex(_f.green)+toHex(_f.blue);
+};
+function nearestPowerOf(num,_11){
+return Math.round(Math.round(num/_11)*_11);
+};
+function doubleHexDec(dec){
+return parseInt(dec.toString(16)+dec.toString(16),16);
+};
+function rgbToWebsafe(_13){
+_13.red=doubleHexDec(nearestPowerOf(parseInt(toHex(_13.red).charAt(0),16),3));
+_13.blue=doubleHexDec(nearestPowerOf(parseInt(toHex(_13.blue).charAt(0),16),3));
+_13.green=doubleHexDec(nearestPowerOf(parseInt(toHex(_13.green).charAt(0),16),3));
+return _13;
+};
+function hsvToRGB(h,s,v){
+var _17;
+if(s===0){
+_17={red:v,green:v,blue:v};
+}else{
+h/=60;
+var i=Math.floor(h);
+var f=h-i;
+var p=v*(1-s);
+var q=v*(1-s*f);
+var t=v*(1-s*(1-f));
+switch(i){
+case 0:
+_17={red:v,green:t,blue:p};
+break;
+case 1:
+_17={red:q,green:v,blue:p};
+break;
+case 2:
+_17={red:p,green:v,blue:t};
+break;
+case 3:
+_17={red:p,green:q,blue:v};
+break;
+case 4:
+_17={red:t,green:p,blue:v};
+break;
+default:
+_17={red:v,green:p,blue:q};
+break;
+}
+}
+_17.red=Math.ceil(_17.red*255);
+_17.green=Math.ceil(_17.green*255);
+_17.blue=Math.ceil(_17.blue*255);
+return _17;
+};
+var _1d=this;
+function closeOnBodyClick(ev){
+ev=ev?ev:window.event;
+el=ev.target?ev.target:ev.srcElement;
+do{
+if(el==_1d.table){
+return;
+}
+}while(el=el.parentNode);
+_1d.close();
+};
+this.open=function(_1f,_20,_21){
+this.table.style.display="";
+this.pick_color();
+if(_21&&/#[0-9a-f]{6,6}/i.test(_21)){
+this.chosenColor.value=_21;
+this.backSample.style.backgroundColor=_21;
+this.foreSample.style.color=_21;
+}
+Xinha._addEvent(document.body,"mousedown",closeOnBodyClick);
+this.table.style.position="absolute";
+var e=_20;
+var top=0;
+var _24=0;
+do{
+if(e.style.position=="fixed"){
+this.table.style.position="fixed";
+}
+top+=e.offsetTop-e.scrollTop;
+_24+=e.offsetLeft-e.scrollLeft;
+e=e.offsetParent;
+}while(e);
+var x,y;
+if(/top/.test(_1f)||(top+this.table.offsetHeight>document.body.offsetHeight)){
+if(top-this.table.offsetHeight>0){
+this.table.style.top=(top-this.table.offsetHeight)+"px";
+}else{
+this.table.style.top=0;
+}
+}else{
+this.table.style.top=(top+_20.offsetHeight)+"px";
+}
+if(/left/.test(_1f)||(_24+this.table.offsetWidth>document.body.offsetWidth)){
+if(_24-(this.table.offsetWidth-_20.offsetWidth)>0){
+this.table.style.left=(_24-(this.table.offsetWidth-_20.offsetWidth))+"px";
+}else{
+this.table.style.left=0;
+}
+}else{
+this.table.style.left=_24+"px";
+}
+if(this.is_ie_6){
+this.iframe.style.top=this.table.style.top;
+this.iframe.style.left=this.table.style.left;
+}
+};
+function pickCell(_27){
+_2.chosenColor.value=_27.colorCode;
+_2.backSample.style.backgroundColor=_27.colorCode;
+_2.foreSample.style.color=_27.colorCode;
+if((_27.hue>=195&&_27.saturation>0.5)||(_27.hue===0&&_27.saturation===0&&_27.value<0.5)||(_27.hue!==0&&_2.value<0.75)){
+_27.style.borderColor="#fff";
+}else{
+_27.style.borderColor="#000";
+}
+_5=_27.thisrow;
+_6=_27.thiscol;
+};
+function pickValue(_28){
+if(_2.value<0.5){
+_28.style.borderColor="#fff";
+}else{
+_28.style.borderColor="#000";
+}
+_9=_28.thisrow;
+_8=_28.thiscol;
+_2.chosenColor.value=_2.saved_cells[_5][_6].colorCode;
+_2.backSample.style.backgroundColor=_2.saved_cells[_5][_6].colorCode;
+_2.foreSample.style.color=_2.saved_cells[_5][_6].colorCode;
+};
+function unpickCell(row,col){
+_2.saved_cells[row][col].style.borderColor=_2.saved_cells[row][col].colorCode;
+};
+this.pick_color=function(){
+var _2b,_2c;
+var _2d=this;
+var _2e=359/(this.side);
+var _2f=1/(this.side-1);
+var _30=1/(this.side-1);
+var _31=this.constrain_cb.checked;
+if(this.saved_cells===null){
+this.saved_cells=[];
+for(var row=0;row<this.side;row++){
+var tr=document.createElement("tr");
+this.saved_cells[row]=[];
+for(var col=0;col<this.side;col++){
+var td=document.createElement("td");
+if(_31){
+td.colorCode=tupleToColor(rgbToWebsafe(hsvToRGB(_2e*row,_2f*col,this.value)));
+}else{
+td.colorCode=tupleToColor(hsvToRGB(_2e*row,_2f*col,this.value));
+}
+this.saved_cells[row][col]=td;
+td.style.height=this.cellsize+"px";
+td.style.width=this.cellsize-2+"px";
+td.style.borderWidth="1px";
+td.style.borderStyle="solid";
+td.style.borderColor=td.colorCode;
+td.style.backgroundColor=td.colorCode;
+if(row==_5&&col==_6){
+td.style.borderColor="#000";
+this.chosenColor.value=td.colorCode;
+this.backSample.style.backgroundColor=td.colorCode;
+this.foreSample.style.color=td.colorCode;
+}
+td.hue=_2e*row;
+td.saturation=_2f*col;
+td.thisrow=row;
+td.thiscol=col;
+td.onmousedown=function(){
+_3=true;
+_2d.saved_cells[_5][_6].style.borderColor=_2d.saved_cells[_5][_6].colorCode;
+pickCell(this);
+};
+td.onmouseover=function(){
+if(_3){
+pickCell(this);
+}
+};
+td.onmouseout=function(){
+if(_3){
+this.style.borderColor=this.colorCode;
+}
+};
+td.ondblclick=function(){
+Xinha.colorPicker.remember(this.colorCode,_2d.savecolors);
+_2d.callback(this.colorCode);
+_2d.close();
+};
+td.appendChild(document.createTextNode(" "));
+td.style.cursor="pointer";
+tr.appendChild(td);
+td=null;
+}
+var td=document.createElement("td");
+td.appendChild(document.createTextNode(" "));
+td.style.width=this.cellsize+"px";
+tr.appendChild(td);
+td=null;
+var td=document.createElement("td");
+this.saved_cells[row][col+1]=td;
+td.appendChild(document.createTextNode(" "));
+td.style.width=this.cellsize-2+"px";
+td.style.height=this.cellsize+"px";
+td.constrainedColorCode=tupleToColor(rgbToWebsafe(hsvToRGB(0,0,_30*row)));
+td.style.backgroundColor=td.colorCode=tupleToColor(hsvToRGB(0,0,_30*row));
+td.style.borderWidth="1px";
+td.style.borderStyle="solid";
+td.style.borderColor=td.colorCode;
+if(row==_9){
+td.style.borderColor="black";
+}
+td.hue=_2e*row;
+td.saturation=_2f*col;
+td.hsv_value=_30*row;
+td.thisrow=row;
+td.thiscol=col+1;
+td.onmousedown=function(){
+_4=true;
+_2d.saved_cells[_9][_8].style.borderColor=_2d.saved_cells[_9][_8].colorCode;
+_2d.value=this.hsv_value;
+_2d.pick_color();
+pickValue(this);
+};
+td.onmouseover=function(){
+if(_4){
+_2d.value=this.hsv_value;
+_2d.pick_color();
+pickValue(this);
+}
+};
+td.onmouseout=function(){
+if(_4){
+this.style.borderColor=this.colorCode;
+}
+};
+td.style.cursor="pointer";
+tr.appendChild(td);
+td=null;
+this.tbody.appendChild(tr);
+tr=null;
+}
+var tr=document.createElement("tr");
+this.saved_cells[row]=[];
+for(var col=0;col<this.side;col++){
+var td=document.createElement("td");
+if(_31){
+td.colorCode=tupleToColor(rgbToWebsafe(hsvToRGB(0,0,_30*(this.side-col-1))));
+}else{
+td.colorCode=tupleToColor(hsvToRGB(0,0,_30*(this.side-col-1)));
+}
+this.saved_cells[row][col]=td;
+td.style.height=this.cellsize+"px";
+td.style.width=this.cellsize-2+"px";
+td.style.borderWidth="1px";
+td.style.borderStyle="solid";
+td.style.borderColor=td.colorCode;
+td.style.backgroundColor=td.colorCode;
+td.hue=0;
+td.saturation=0;
+td.value=_30*(this.side-col-1);
+td.thisrow=row;
+td.thiscol=col;
+td.onmousedown=function(){
+_3=true;
+_2d.saved_cells[_5][_6].style.borderColor=_2d.saved_cells[_5][_6].colorCode;
+pickCell(this);
+};
+td.onmouseover=function(){
+if(_3){
+pickCell(this);
+}
+};
+td.onmouseout=function(){
+if(_3){
+this.style.borderColor=this.colorCode;
+}
+};
+td.ondblclick=function(){
+Xinha.colorPicker.remember(this.colorCode,_2d.savecolors);
+_2d.callback(this.colorCode);
+_2d.close();
+};
+td.appendChild(document.createTextNode(" "));
+td.style.cursor="pointer";
+tr.appendChild(td);
+td=null;
+}
+this.tbody.appendChild(tr);
+tr=null;
+var tr=document.createElement("tr");
+var td=document.createElement("td");
+tr.appendChild(td);
+td.colSpan=this.side+2;
+td.style.padding="3px";
+if(this.websafe){
+var div=document.createElement("div");
+var _37=document.createElement("label");
+_37.appendChild(document.createTextNode(Xinha._lc("Web Safe: ")));
+this.constrain_cb.onclick=function(){
+_2d.pick_color();
+};
+_37.appendChild(this.constrain_cb);
+_37.style.fontFamily="small-caption,caption,sans-serif";
+_37.style.fontSize="x-small";
+div.appendChild(_37);
+td.appendChild(div);
+div=null;
+}
+var div=document.createElement("div");
+var _37=document.createElement("label");
+_37.style.fontFamily="small-caption,caption,sans-serif";
+_37.style.fontSize="x-small";
+_37.appendChild(document.createTextNode(Xinha._lc("Color: ")));
+_37.appendChild(this.chosenColor);
+div.appendChild(_37);
+var but=document.createElement("span");
+but.className="buttonColor ";
+but.style.fontSize="13px";
+but.style.width="24px";
+but.style.marginLeft="2px";
+but.style.padding="0px 4px";
+but.style.cursor="pointer";
+but.onclick=function(){
+Xinha.colorPicker.remember(_2d.chosenColor.value,_2d.savecolors);
+_2d.callback(_2d.chosenColor.value);
+_2d.close();
+};
+but.appendChild(document.createTextNode(Xinha._lc("OK")));
+but.align="center";
+div.appendChild(but);
+td.appendChild(div);
+var _39=document.createElement("table");
+_39.style.width="100%";
+var _3a=document.createElement("tbody");
+_39.appendChild(_3a);
+var _3b=document.createElement("tr");
+_3a.appendChild(_3b);
+var _3c=document.createElement("td");
+_3b.appendChild(_3c);
+_3c.appendChild(this.backSample);
+_3c.style.width="50%";
+var _3d=document.createElement("td");
+_3b.appendChild(_3d);
+_3d.appendChild(this.foreSample);
+_3d.style.width="50%";
+td.appendChild(_39);
+var _3e=document.createElement("div");
+_3e.style.clear="both";
+function createSavedColors(_3f){
+var _40=Xinha.is_ie;
+var div=document.createElement("div");
+div.style.width=_2d.cellsize+"px";
+div.style.height=_2d.cellsize+"px";
+div.style.margin="1px";
+div.style.border="1px solid black";
+div.style.cursor="pointer";
+div.style.backgroundColor=_3f;
+div.style[_40?"styleFloat":"cssFloat"]="left";
+div.ondblclick=function(){
+_2d.callback(_3f);
+_2d.close();
+};
+div.onclick=function(){
+_2d.chosenColor.value=_3f;
+_2d.backSample.style.backgroundColor=_3f;
+_2d.foreSample.style.color=_3f;
+};
+_3e.appendChild(div);
+};
+for(var _42=0;_42<Xinha.colorPicker.savedColors.length;_42++){
+createSavedColors(Xinha.colorPicker.savedColors[_42]);
+}
+td.appendChild(_3e);
+this.tbody.appendChild(tr);
+document.body.appendChild(this.table);
+if(this.is_ie_6){
+if(!this.iframe){
+this.iframe=document.createElement("iframe");
+this.iframe.frameBorder=0;
+this.iframe.src="javascript:;";
+this.iframe.style.position="absolute";
+this.iframe.style.width=this.table.offsetWidth;
+this.iframe.style.height=this.table.offsetHeight;
+this.iframe.style.zIndex="1049";
+document.body.insertBefore(this.iframe,this.table);
+}
+this.iframe.style.display="";
+}
+}else{
+for(var row=0;row<this.side;row++){
+for(var col=0;col<this.side;col++){
+if(_31){
+this.saved_cells[row][col].colorCode=tupleToColor(rgbToWebsafe(hsvToRGB(_2e*row,_2f*col,this.value)));
+}else{
+this.saved_cells[row][col].colorCode=tupleToColor(hsvToRGB(_2e*row,_2f*col,this.value));
+}
+this.saved_cells[row][col].style.backgroundColor=this.saved_cells[row][col].colorCode;
+this.saved_cells[row][col].style.borderColor=this.saved_cells[row][col].colorCode;
+}
+}
+var _43=this.saved_cells[_5][_6];
+this.chosenColor.value=_43.colorCode;
+this.backSample.style.backgroundColor=_43.colorCode;
+this.foreSample.style.color=_43.colorCode;
+if((_43.hue>=195&&_43.saturation>0.5)||(_43.hue===0&&_43.saturation===0&&_43.value<0.5)||(_43.hue!==0&&_2d.value<0.75)){
+_43.style.borderColor="#fff";
+}else{
+_43.style.borderColor="#000";
+}
+}
+};
+this.close=function(){
+Xinha._removeEvent(document.body,"mousedown",closeOnBodyClick);
+this.table.style.display="none";
+if(this.is_ie_6){
+if(this.iframe){
+this.iframe.style.display="none";
+}
+}
+};
+};
+Xinha.colorPicker.savedColors=[];
+Xinha.colorPicker.remember=function(_44,_45){
+for(var i=Xinha.colorPicker.savedColors.length;i--;){
+if(Xinha.colorPicker.savedColors[i]==_44){
+return false;
+}
+}
+Xinha.colorPicker.savedColors.splice(0,0,_44);
+Xinha.colorPicker.savedColors=Xinha.colorPicker.savedColors.slice(0,_45);
+var _47=new Date();
+_47.setMonth(_47.getMonth()+1);
+document.cookie="XinhaColorPicker="+escape(Xinha.colorPicker.savedColors.join("-"))+";expires="+_47.toGMTString();
+return true;
+};
+Xinha.colorPicker.loadColors=function(){
+var _48=document.cookie.indexOf("XinhaColorPicker");
+if(_48!=-1){
+var _49=(document.cookie.indexOf("=",_48)+1);
+var end=document.cookie.indexOf(";",_48);
+if(end==-1){
+end=document.cookie.length;
+}
+Xinha.colorPicker.savedColors=unescape(document.cookie.substring(_49,end)).split("-");
+}
+};
+Xinha.colorPicker.InputBinding=function(_4b,_4c){
+var doc=_4b.ownerDocument;
+var _4e=doc.createElement("span");
+_4e.className="buttonColor";
+var _4f=this.chooser=doc.createElement("span");
+_4f.className="chooser";
+if(_4b.value){
+_4f.style.backgroundColor=_4b.value;
+}
+_4f.onmouseover=function(){
+_4f.className="chooser buttonColor-hilite";
+};
+_4f.onmouseout=function(){
+_4f.className="chooser";
+};
+_4f.appendChild(doc.createTextNode(" "));
+_4e.appendChild(_4f);
+var _50=doc.createElement("span");
+_50.className="nocolor";
+_50.onmouseover=function(){
+_50.className="nocolor buttonColor-hilite";
+_50.style.color="#f00";
+};
+_50.onmouseout=function(){
+_50.className="nocolor";
+_50.style.color="#000";
+};
+_50.onclick=function(){
+_4b.value="";
+_4f.style.backgroundColor="";
+};
+_50.appendChild(doc.createTextNode("×"));
+_4e.appendChild(_50);
+_4b.parentNode.insertBefore(_4e,_4b.nextSibling);
+Xinha._addEvent(_4b,"change",function(){
+_4f.style.backgroundColor=this.value;
+});
+_4c=(_4c)?Xinha.cloneObject(_4c):{cellsize:"5px"};
+_4c.callback=(_4c.callback)?_4c.callback:function(_51){
+_4f.style.backgroundColor=_51;
+_4b.value=_51;
+};
+_4f.onclick=function(){
+var _52=new Xinha.colorPicker(_4c);
+_52.open("",_4f,_4b.value);
+};
+Xinha.freeLater(this,"chooser");
+};
+Xinha.colorPicker.InputBinding.prototype.setColor=function(_53){
+this.chooser.style.backgroundColor=_53;
+};
+

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/ColorPicker/lang/pt_br.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/ColorPicker/lang/pt_br.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/ColorPicker/lang/pt_br.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/ColorPicker/lang/pt_br.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,22 @@
+// I18N constants
+//
+// LANG: "pt_br", ENCODING: UTF-8
+// Portuguese Brazilian Translation
+//
+// Author: Marcio Barbosa, <ma...@mpg.com.br>
+// MSN: tomarshall@msn.com - ICQ: 69419933
+// Site: http://www.mpg.com.br
+//
+// Last revision: 06 september 2007
+// Please don´t remove this information
+// If you modify any source, please insert a comment with your name and e-mail
+//
+// Distributed under the same terms as HTMLArea itself.
+// This notice MUST stay intact for use (see license.txt).
+{
+  "Click a color...": "Selecione uma côr...",
+  "Close": "Fechar",
+  "Color: ": "Côr:",
+  "Sample": "Exemplo",
+  "Web Safe: ": "Web Segura:"
+}

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/dialog.html
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/dialog.html?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/dialog.html (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/dialog.html Tue Jul 22 17:35:00 2014
@@ -0,0 +1,28 @@
+<h1 id="[h1]"><l10n>Insert/Modify Link</l10n></h1>
+<table border="0" style="margin-top:10px;width: 100%;">
+  <tr>
+    <td class="label"><l10n>URL:</l10n></td>
+    <td style="width: 70%"><input type="text" id="[f_href]" name="[f_href]" style="width: 90%" /></td>
+  </tr>
+  <tr>
+    <td class="label"><l10n>Title (tooltip):</l10n></td>
+    <td><input type="text" id="[f_title]" name="[f_title]" style="width: 90%" /></td>
+  </tr>
+  <tr>
+    <td class="label"><span id="[f_target_label]"><l10n>Target:</l10n></span></td>
+    <td><select id="[f_target]" name="[f_target]">
+      <option value=""><l10n>None (use implicit)</l10n></option>
+      <option value="_blank"><l10n>New window (_blank)</l10n></option>
+      <option value="_self"><l10n>Same frame (_self)</l10n></option>
+      <option value="_top"><l10n>Top frame (_top)</l10n></option>
+      <option value="_other"><l10n>Other</l10n></option>
+    </select>
+    <input type="text" name="[f_other_target]" id="[f_other_target]" size="10" style="visibility: hidden" />
+    </td>
+  </tr>
+</table>
+
+<div class="buttons" id="[buttons]">
+  <input type="button" id="[ok]"     value="_(OK)"     />
+  <input type="button" id="[cancel]" value="_(Cancel)" />
+</div>
\ No newline at end of file

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/lang/pt_br.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/lang/pt_br.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/lang/pt_br.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/lang/pt_br.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,18 @@
+// I18N constants
+//
+// LANG: "pt_br", ENCODING: UTF-8
+// Portuguese Brazilian Translation
+//
+// Author: Marcio Barbosa, <ma...@mpg.com.br>
+// MSN: tomarshall@msn.com - ICQ: 69419933
+// Site: http://www.mpg.com.br
+//
+// Last revision: 06 september 2007
+// Please don´t remove this information
+// If you modify any source, please insert a comment with your name and e-mail
+//
+// Distributed under the same terms as HTMLArea itself.
+// This notice MUST stay intact for use (see license.txt).
+{
+  "You need to select some text before creating a link": "Você precisa selecionar um texto antes de criar um link"
+}

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/link.html
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/link.html?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/link.html (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/link.html Tue Jul 22 17:35:00 2014
@@ -0,0 +1,136 @@
+<html>
+
+<head>
+  <title>Insert/Modify Link</title>
+  <script type="text/javascript" src="../../popups/popup.js"></script>
+  <link rel="stylesheet" type="text/css" href="../../popups/popup.css" />
+
+  <script type="text/javascript">
+    window.resizeTo(400, 200);
+
+Xinha = window.opener.Xinha;
+
+function i18n(str) {
+  return (Xinha._lc(str, 'Xinha'));
+}
+
+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";
+}
+
+function Init() {
+  __dlg_translate('Xinha');
+  __dlg_init();
+
+  // Make sure the translated string appears in the drop down. (for gecko)
+  document.getElementById("f_target").selectedIndex = 1;
+  document.getElementById("f_target").selectedIndex = 0;
+
+  var param = window.dialogArguments;
+  var target_select = document.getElementById("f_target");
+  var use_target = true;
+  if (param) {
+    if ( typeof param["f_usetarget"] != "undefined" ) {
+      use_target = param["f_usetarget"];
+    }
+    if ( typeof param["f_href"] != "undefined" ) {
+      document.getElementById("f_href").value = param["f_href"];
+      document.getElementById("f_title").value = param["f_title"];
+      comboSelectValue(target_select, param["f_target"]);
+      if (target_select.value != param.f_target) {
+        var opt = document.createElement("option");
+        opt.value = param.f_target;
+        opt.innerHTML = opt.value;
+        target_select.appendChild(opt);
+        opt.selected = true;
+      }
+    }
+  }
+  if (! use_target) {
+    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");
+  target_select.appendChild(opt);
+  target_select.onchange = onTargetChanged;
+  document.getElementById("f_href").focus();
+  document.getElementById("f_href").select();
+}
+
+function onOK() {
+  var required = {
+    // f_href shouldn't be required or otherwise removing the link by entering an empty
+    // url isn't possible anymore.
+    // "f_href": i18n("You must enter the URL where this link points to")
+  };
+  for (var i in required) {
+    var el = document.getElementById(i);
+    if (!el.value) {
+      alert(required[i]);
+      el.focus();
+      return false;
+    }
+  }
+  // pass data back to the calling window
+  var fields = ["f_href", "f_title", "f_target" ];
+  var param = new Object();
+  for (var i in fields) {
+    var id = fields[i];
+    var el = document.getElementById(id);
+    param[id] = el.value;
+  }
+  if (param.f_target == "_other")
+    param.f_target = document.getElementById("f_other_target").value;
+  __dlg_close(param);
+  return false;
+}
+
+function onCancel() {
+  __dlg_close(null);
+  return false;
+}
+
+</script>
+
+</head>
+
+<body class="dialog" onload="Init()">
+<div class="title">Insert/Modify Link</div>
+<form>
+<table border="0" style="width: 100%;">
+  <tr>
+    <td class="label">URL:</td>
+    <td><input type="text" id="f_href" style="width: 100%" /></td>
+  </tr>
+  <tr>
+    <td class="label">Title (tooltip):</td>
+    <td><input type="text" id="f_title" style="width: 100%" /></td>
+  </tr>
+  <tr>
+    <td class="label"><span id="f_target_label">Target:</span></td>
+    <td><select id="f_target">
+      <option value="">None (use implicit)</option>
+      <option value="_blank">New window (_blank)</option>
+      <option value="_self">Same frame (_self)</option>
+      <option value="_top">Top frame (_top)</option>
+    </select>
+    <input type="text" name="f_other_target" id="f_other_target" size="10" style="visibility: hidden" />
+    </td>
+  </tr>
+</table>
+
+<div id="buttons">
+  <button type="submit" name="ok" onclick="return onOK();">OK</button>
+  <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
+</div>
+</form>
+</body>
+</html>
\ No newline at end of file

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/link.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/link.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/link.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/link.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,67 @@
+/* This compressed file is part of Xinha. For uncompressed sources, forum, and bug reports, go to xinha.org */
+/* The URL of the most recent version of this file is http://svn.xinha.org/trunk/modules/CreateLink/link.js */
+function CreateLink(_1){
+this.editor=_1;
+var _2=_1.config;
+var _3=this;
+_1.config.btnList.createlink[3]=function(){
+_3.show(_3._getSelectedAnchor());
+};
+};
+CreateLink._pluginInfo={name:"CreateLink",origin:"Xinha Core",version:"$LastChangedRevision: 1084 $".replace(/^[^:]*:\s*(.*)\s*\$$/,"$1"),developer:"The Xinha Core Developer Team",developer_url:"$HeadURL: http://svn.xinha.org/tags/0.96.1/modules/CreateLink/link.js $".replace(/^[^:]*:\s*(.*)\s*\$$/,"$1"),sponsor:"",sponsor_url:"",license:"htmlArea"};
+CreateLink.prototype._lc=function(_4){
+return Xinha._lc(_4,"Xinha");
+};
+CreateLink.prototype.onGenerateOnce=function(){
+CreateLink.loadAssets();
+};
+CreateLink.loadAssets=function(){
+var _5=CreateLink;
+if(_5.loading){
+return;
+}
+_5.loading=true;
+Xinha._getback(_editor_url+"modules/CreateLink/dialog.html",function(_6){
+_5.html=_6;
+_5.dialogReady=true;
+});
+Xinha._getback(_editor_url+"modules/CreateLink/pluginMethods.js",function(_7){
+eval(_7);
+_5.methodsReady=true;
+});
+};
+CreateLink.prototype.onUpdateToolbar=function(){
+if(!(CreateLink.dialogReady&&CreateLink.methodsReady)){
+this.editor._toolbarObjects.createlink.state("enabled",false);
+}else{
+this.onUpdateToolbar=null;
+}
+};
+CreateLink.prototype.prepareDialog=function(){
+var _8=this;
+var _9=this.editor;
+var _a=this.dialog=new Xinha.Dialog(_9,CreateLink.html,"Xinha",{width:400});
+_a.getElementById("ok").onclick=function(){
+_8.apply();
+};
+_a.getElementById("cancel").onclick=function(){
+_8.dialog.hide();
+};
+if(!_9.config.makeLinkShowsTarget){
+_a.getElementById("f_target_label").style.visibility="hidden";
+_a.getElementById("f_target").style.visibility="hidden";
+_a.getElementById("f_other_target").style.visibility="hidden";
+}
+_a.getElementById("f_target").onchange=function(){
+var f=_a.getElementById("f_other_target");
+if(this.value=="_other"){
+f.style.visibility="visible";
+f.select();
+f.focus();
+}else{
+f.style.visibility="hidden";
+}
+};
+this.dialogReady=true;
+};
+

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/pluginMethods.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/pluginMethods.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/pluginMethods.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/CreateLink/pluginMethods.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,109 @@
+/* This compressed file is part of Xinha. For uncompressed sources, forum, and bug reports, go to xinha.org */
+/* The URL of the most recent version of this file is http://svn.xinha.org/trunk/modules/CreateLink/pluginMethods.js */
+CreateLink.prototype.show=function(a){
+if(!this.dialog){
+this.prepareDialog();
+}
+var _2=this.editor;
+this.a=a;
+if(!a&&this.editor.selectionEmpty(this.editor.getSelection())){
+alert(this._lc("You need to select some text before creating a link"));
+return false;
+}
+var _3={f_href:"",f_title:"",f_target:"",f_other_target:""};
+if(a&&a.tagName.toLowerCase()=="a"){
+_3.f_href=this.editor.fixRelativeLinks(a.getAttribute("href"));
+_3.f_title=a.title;
+if(a.target){
+if(!/_self|_top|_blank/.test(a.target)){
+_3.f_target="_other";
+_3.f_other_target=a.target;
+}else{
+_3.f_target=a.target;
+_3.f_other_target="";
+}
+}
+}
+this.dialog.show(_3);
+};
+CreateLink.prototype.apply=function(){
+var _4=this.dialog.hide();
+var a=this.a;
+var _6=this.editor;
+var _7={href:"",target:"",title:""};
+if(_4.f_href){
+_7.href=_4.f_href;
+_7.title=_4.f_title;
+if(_4.f_target.value){
+if(_4.f_target.value=="other"){
+_7.target=_4.f_other_target;
+}else{
+_7.target=_4.f_target.value;
+}
+}
+}
+if(_4.f_target.value){
+if(_4.f_target.value!="_other"){
+_7.target=_4.f_target.value;
+}else{
+_7.target=_4.f_other_target;
+}
+}
+if(a&&a.tagName.toLowerCase()=="a"){
+if(!_7.href){
+if(confirm(this._lc("Are you sure you wish to remove this link?"))){
+var p=a.parentNode;
+while(a.hasChildNodes()){
+p.insertBefore(a.removeChild(a.childNodes[0]),a);
+}
+p.removeChild(a);
+_6.updateToolbar();
+return;
+}
+}else{
+for(var i in _7){
+a.setAttribute(i,_7[i]);
+}
+if(Xinha.is_ie){
+if(/mailto:([^?<>]*)(\?[^<]*)?$/i.test(a.innerHTML)){
+a.innerHTML=RegExp.$1;
+}
+}
+}
+}else{
+if(!_7.href){
+return true;
+}
+var _a=Xinha.uniq("http://www.example.com/Link");
+_6._doc.execCommand("createlink",false,_a);
+var _b=_6._doc.getElementsByTagName("a");
+for(var i=0;i<_b.length;i++){
+var _c=_b[i];
+if(_c.href==_a){
+if(!a){
+a=_c;
+}
+for(var j in _7){
+_c.setAttribute(j,_7[j]);
+}
+}
+}
+}
+_6.selectNodeContents(a);
+_6.updateToolbar();
+};
+CreateLink.prototype._getSelectedAnchor=function(){
+var _e=this.editor.getSelection();
+var _f=this.editor.createRange(_e);
+var a=this.editor.activeElement(_e);
+if(a!=null&&a.tagName.toLowerCase()=="a"){
+return a;
+}else{
+a=this.editor._getFirstAncestor(_e,"a");
+if(a!=null){
+return a;
+}
+}
+return null;
+};
+

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/DetachedDialog.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/DetachedDialog.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/DetachedDialog.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/DetachedDialog.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,24 @@
+/* This compressed file is part of Xinha. For uncompressed sources, forum, and bug reports, go to xinha.org */
+/* The URL of the most recent version of this file is http://svn.xinha.org/trunk/modules/Dialogs/DetachedDialog.js */
+Xinha.DetachedDialog=function(_1,_2,_3,_4){
+var _5={"config":new Xinha.Config(),"scrollPos":Xinha.prototype.scrollPos,"_someEditorHasBeenActivated":false,"saveSelection":function(){
+},"deactivateEditor":function(){
+},"_textArea":document.createElement("textarea"),"_iframe":document.createElement("div"),"_doc":document,"hidePanels":function(){
+},"showPanels":function(){
+},"_isFullScreen":false,"activateEditor":function(){
+},"restoreSelection":function(){
+},"updateToolbar":function(){
+},"focusEditor":function(){
+}};
+Xinha.Dialog.initialZ=100;
+this.attached=false;
+Xinha.DetachedDialog.parentConstructor.call(this,_5,_1,_2,_3,_4);
+};
+Xinha.extend(Xinha.DetachedDialog,Xinha.Dialog);
+Xinha.DetachedDialog.prototype.attachToPanel=function(){
+return false;
+};
+Xinha.DetachedDialog.prototype.detachFromToPanel=function(){
+return false;
+};
+

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/XinhaDialog.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/XinhaDialog.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/XinhaDialog.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/XinhaDialog.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,916 @@
+/* This compressed file is part of Xinha. For uncompressed sources, forum, and bug reports, go to xinha.org */
+/* The URL of the most recent version of this file is http://svn.xinha.org/trunk/modules/Dialogs/XinhaDialog.js */
+Xinha.Dialog=function(_1,_2,_3,_4,_5){
+var _6=this;
+this.id={};
+this.r_id={};
+this.editor=_1;
+this.document=document;
+this.size=_4;
+this.modal=(_5&&_5.modal===false)?false:true;
+this.closable=(_5&&_5.closable===false)?false:true;
+this.resizable=(_5&&_5.resizable===false)?false:true;
+this.layer=(_5&&_5.layer)?_5.layer:0;
+this.centered=(_5&&_5.centered===true)?true:false;
+this.closeOnEscape=(_5&&_5.closeOnEscape===true)?true:false;
+this.rootElem=null;
+this.captionBar=null;
+this.main=null;
+this.background=null;
+this.centered=null;
+this.greyout=null;
+this.buttons=null;
+this.closer=null;
+this.icon=null;
+this.resizer=null;
+this.initialZ=null;
+var _7=_1.config.dialogOptions;
+if(_7){
+if(typeof _7.centered!="undefined"){
+this.centered=_7.centered;
+}
+if(typeof _7.resizable!="undefined"){
+this.resizable=_7.resizable;
+}
+if(typeof _7.closable!="undefined"){
+this.closable=_7.closable;
+}
+if(typeof _7.greyout!="undefined"){
+this.greyout=_7.greyout;
+}
+if(typeof _7.closeOnEscape!="undefined"){
+this.closeOnEscape=_7.closeOnEscape;
+}
+}
+var _8;
+if(Xinha.is_ie){
+_8=document.createElement("iframe");
+_8.src="about:blank";
+_8.onreadystatechange=function(){
+var _9=window.event.srcElement.contentWindow.document;
+if(this.readyState=="complete"&&_9&&_9.body){
+var _a=_9.createElement("div");
+var _b,_c=document.styleSheets;
+for(var i=0;i<_c.length;i++){
+if(_c[i].id.indexOf("Xinha")!=-1&&_c[i].cssText){
+_b+=_c[i].cssText;
+}
+}
+_a.innerHTML="<br><style type=\"text/css\">\n"+_b+"\n</style>";
+_9.getElementsByTagName("body")[0].appendChild(_a);
+_9.body.className="xinha_dialog_background";
+if(_6.modal){
+_9.body.className+="_modal";
+}
+if(_6.greyout){
+_9.body.className+="_greyout";
+}
+}
+};
+}else{
+_8=document.createElement("div");
+}
+_8.className="xinha_dialog_background";
+if(this.modal){
+_8.className+="_modal";
+}
+if(this.greyout){
+_8.className+="_greyout";
+}
+var z=1000;
+if(!Xinha.Dialog.initialZ){
+var p=_1._htmlArea;
+while(p){
+if(p.style&&parseInt(p.style.zIndex,10)>z){
+z=parseInt(p.style.zIndex,10);
+}
+p=p.parentNode;
+}
+Xinha.Dialog.initialZ=z;
+}
+z=Xinha.Dialog.initialZ;
+var s=_8.style;
+s.position="absolute";
+s.top=0;
+s.left=0;
+s.border="none";
+s.overflow="hidden";
+s.display="none";
+s.zIndex=(this.modal?z+25:z+1)+this.layer;
+document.body.appendChild(_8);
+this.background=_8;
+_8=null;
+Xinha.freeLater(this,"background");
+var _11=document.createElement("div");
+_11.style.position=(Xinha.is_ie||!this.modal)?"absolute":"fixed";
+_11.style.zIndex=(this.modal?z+27:z+3)+this.layer;
+_11.style.display="none";
+if(!this.modal){
+Xinha._addEvent(_11,"mousedown",function(){
+Xinha.Dialog.activateModeless(_6);
+});
+}
+_11.className="dialog"+(this.modal?"":" modeless");
+if(Xinha.is_chrome){
+_11.className+=" chrome";
+}
+document.body.appendChild(_11);
+_11.style.paddingBottom="10px";
+_11.style.width=(_4&&_4.width)?_4.width+"px":"";
+if(_4&&_4.height){
+if(Xinha.ie_version<7){
+_11.style.height=_4.height+"px";
+}else{
+_11.style.minHeight=_4.height+"px";
+}
+}
+_2=this.translateHtml(_2,_3);
+var _12=document.createElement("div");
+_11.appendChild(_12);
+_12.innerHTML=_2;
+this.fixupDOM(_12,_3);
+var _13=_12.removeChild(_12.getElementsByTagName("h1")[0]);
+_11.insertBefore(_13,_12);
+Xinha._addEvent(_13,"mousedown",function(ev){
+_6.dragStart(ev);
+});
+_13.style.MozUserSelect="none";
+_13.style.WebkitUserSelect="none";
+_13.unselectable="on";
+_13.onselectstart=function(){
+return false;
+};
+this.buttons=document.createElement("div");
+s=this.buttons.style;
+s.position="absolute";
+s.top="0";
+s.right="2px";
+_11.appendChild(this.buttons);
+if(this.closable&&this.closeOnEscape){
+Xinha._addEvent(document,"keypress",function(ev){
+if(ev.keyCode==27){
+if(Xinha.Dialog.activeModeless==_6||_6.modal){
+_6.hide();
+return true;
+}
+}
+});
+}
+this.closer=null;
+if(this.closable){
+this.closer=document.createElement("div");
+this.closer.className="closeButton";
+this.closer.onmousedown=function(ev){
+this.className="closeButton buttonClick";
+Xinha._stopEvent(Xinha.getEvent(ev));
+return false;
+};
+this.closer.onmouseout=function(ev){
+this.className="closeButton";
+Xinha._stopEvent(Xinha.getEvent(ev));
+return false;
+};
+this.closer.onmouseup=function(){
+this.className="closeButton";
+_6.hide();
+return false;
+};
+this.buttons.appendChild(this.closer);
+var _18=document.createElement("span");
+_18.className="innerX";
+_18.style.position="relative";
+_18.style.top="-3px";
+_18.appendChild(document.createTextNode("×"));
+this.closer.appendChild(_18);
+_18=null;
+}
+this.icon=document.createElement("img");
+var _19=this.icon;
+_19.className="icon";
+_19.src=_1.config.iconList.dialogCaption;
+_19.style.position="absolute";
+_19.style.top="3px";
+_19.style.left="2px";
+_19.ondrag=function(){
+return false;
+};
+_11.appendChild(this.icon);
+var all=_11.getElementsByTagName("*");
+for(var i=0;i<all.length;i++){
+var el=all[i];
+if(el.tagName.toLowerCase()=="textarea"||el.tagName.toLowerCase()=="input"){
+}else{
+el.unselectable="on";
+}
+}
+this.resizer=null;
+if(this.resizable){
+this.resizer=document.createElement("div");
+this.resizer.className="resizeHandle";
+s=this.resizer.style;
+s.position="absolute";
+s.bottom="0px";
+s.right="0px";
+s.MozUserSelect="none";
+Xinha._addEvent(this.resizer,"mousedown",function(ev){
+_6.resizeStart(ev);
+});
+_11.appendChild(this.resizer);
+}
+this.rootElem=_11;
+this.captionBar=_13;
+this.main=_12;
+_13=null;
+_11=null;
+_12=null;
+Xinha.freeLater(this,"rootElem");
+Xinha.freeLater(this,"captionBar");
+Xinha.freeLater(this,"main");
+Xinha.freeLater(this,"buttons");
+Xinha.freeLater(this,"closer");
+Xinha.freeLater(this,"icon");
+Xinha.freeLater(this,"resizer");
+Xinha.freeLater(this,"document");
+this.size={};
+};
+Xinha.Dialog.prototype.onresize=function(){
+return true;
+};
+Xinha.Dialog.prototype.show=function(_1e){
+var _1f=this.rootElem;
+var _20=_1f.style;
+var _21=this.modal;
+var _22=this.editor.scrollPos();
+this.scrollPos=_22;
+var _23=this;
+if(this.attached){
+this.editor.showPanel(_1f);
+}
+if(Xinha._someEditorHasBeenActivated){
+this._lastRange=this.editor.saveSelection();
+if(Xinha.is_ie&&!_21){
+_23.saveSelection=function(){
+_23._lastRange=_23.editor.saveSelection();
+};
+Xinha._addEvent(this.editor._doc,"mouseup",_23.saveSelection);
+}
+}
+if(_21){
+this.editor.deactivateEditor();
+this.editor.suspendUpdateToolbar=true;
+this.editor.currentModal=_23;
+}
+if(Xinha.is_ff2&&_21){
+this._restoreTo=[this.editor._textArea.style.display,this.editor._iframe.style.visibility,this.editor.hidePanels()];
+this.editor._textArea.style.display="none";
+this.editor._iframe.style.visibility="hidden";
+}
+if(!this.attached){
+if(_21){
+this.showBackground();
+this.posBackground({top:0,left:0});
+this.resizeBackground(Xinha.Dialog.calcFullBgSize());
+}else{
+this.background.style.display="";
+}
+Xinha.Dialog.fadeIn(this.rootElem,100,function(){
+if(_21){
+var _24=_23.rootElem.getElementsByTagName("input");
+for(var i=0;i<_24.length;i++){
+if(_24[i].type=="text"){
+try{
+_24[i].focus();
+break;
+}
+catch(e){
+}
+}
+}
+}
+});
+var _26=_1f.offsetHeight;
+var _27=_1f.offsetWidth;
+var _28=Xinha.viewportSize();
+var _29=_28.y;
+var _2a=_28.x;
+if(_26>_29){
+_20.height=_29+"px";
+if(_1f.scrollHeight>_26){
+_23.main.style.overflowY="auto";
+}
+}
+if(this.size.top&&this.size.left){
+_20.top=parseInt(this.size.top,10)+"px";
+_20.left=parseInt(this.size.left,10)+"px";
+}else{
+if(this.editor.btnClickEvent&&!this.centered){
+var _2b=this.editor.btnClickEvent;
+if(_20.position=="absolute"){
+_20.top=_2b.clientY+this.scrollPos.y+"px";
+}else{
+_20.top=_2b.clientY+"px";
+}
+if(_26+_1f.offsetTop>_29){
+_20.top=(_20.position=="absolute"?this.scrollPos.y:0)+"px";
+}
+if(_20.position=="absolute"){
+_20.left=_2b.clientX+this.scrollPos.x+"px";
+}else{
+_20.left=_2b.clientX+"px";
+}
+if(_27+_1f.offsetLeft>_2a){
+_20.left=_2b.clientX-_27+"px";
+if(_1f.offsetLeft<0){
+_20.left=0;
+}
+}
+this.editor.btnClickEvent=null;
+}else{
+var top=(_29-_26)/2;
+var _2d=(_2a-_27)/2;
+_20.top=((top>0)?top:0)+"px";
+_20.left=((_2d>0)?_2d:0)+"px";
+}
+}
+}
+this.width=_27;
+this.height=_26;
+if(!_21){
+this.resizeBackground({width:_27+"px",height:_26+"px"});
+this.posBackground({top:_20.top,left:_20.left});
+}
+if(typeof _1e!="undefined"){
+this.setValues(_1e);
+}
+this.dialogShown=true;
+};
+Xinha.Dialog.prototype.hide=function(){
+if(this.attached){
+this.editor.hidePanel(this.rootElem);
+}else{
+Xinha.Dialog.fadeOut(this.rootElem);
+this.hideBackground();
+var _2e=this;
+if(Xinha.is_ff2&&this.modal){
+this.editor._textArea.style.display=this._restoreTo[0];
+this.editor._iframe.style.visibility=this._restoreTo[1];
+this.editor.showPanels(this._restoreTo[2]);
+}
+if(!this.editor._isFullScreen&&this.modal){
+window.scroll(this.scrollPos.x,this.scrollPos.y);
+}
+if(Xinha.is_ie&&!this.modal){
+Xinha._removeEvent(this.editor._doc,"mouseup",_2e.saveSelection);
+}
+if(this.modal){
+this.editor.suspendUpdateToolbar=false;
+this.editor.currentModal=null;
+this.editor.activateEditor();
+}
+}
+if(this.modal){
+this.editor.restoreSelection(this._lastRange);
+}
+this.dialogShown=false;
+this.editor.updateToolbar();
+this.editor.focusEditor();
+return this.getValues();
+};
+Xinha.Dialog.prototype.toggle=function(){
+if(this.rootElem.style.display=="none"){
+this.show();
+}else{
+this.hide();
+}
+};
+Xinha.Dialog.prototype.collapse=function(){
+if(this.collapsed){
+this.collapsed=false;
+this.show();
+}else{
+this.main.style.height=0;
+this.collapsed=true;
+}
+};
+Xinha.Dialog.prototype.getElementById=function(id){
+if(!this.rootElem.parentNode){
+this.document.body.appendChild(this.rootElem);
+}
+return this.document.getElementById(this.id[id]?this.id[id]:id);
+};
+Xinha.Dialog.prototype.getElementsByName=function(_30){
+if(!this.rootElem.parentNode){
+this.document.body.appendChild(this.rootElem);
+}
+var els=this.document.getElementsByName(this.id[_30]?this.id[_30]:_30);
+return Xinha.collectionToArray(els);
+};
+Xinha.Dialog.prototype.getElementsByClassName=function(_32){
+return Xinha.getElementsByClassName(this.rootElem,_32);
+};
+Xinha.Dialog.prototype.dragStart=function(ev){
+if(this.attached||this.dragging){
+return;
+}
+if(!this.modal){
+this.posBackground({top:0,left:0});
+this.resizeBackground(Xinha.Dialog.calcFullBgSize());
+this.editor.suspendUpdateToolbar=true;
+}
+ev=Xinha.getEvent(ev);
+var _34=this;
+_34.dragging=true;
+_34.scrollPos=_34.editor.scrollPos();
+var st=_34.rootElem.style;
+_34.xOffs=ev.offsetX||ev.layerX;
+_34.yOffs=ev.offsetY||ev.layerY;
+_34.mouseMove=function(ev){
+_34.dragIt(ev);
+};
+Xinha._addEvent(document,"mousemove",_34.mouseMove);
+if(Xinha.is_ie){
+Xinha._addEvent(this.background.contentWindow.document,"mousemove",_34.mouseMove);
+}
+_34.mouseUp=function(ev){
+_34.dragEnd(ev);
+};
+Xinha._addEvent(document,"mouseup",_34.mouseUp);
+if(Xinha.is_ie){
+Xinha._addEvent(this.background.contentWindow.document,"mouseup",_34.mouseUp);
+}
+};
+Xinha.Dialog.prototype.dragIt=function(ev){
+var _39=this;
+if(!_39.dragging){
+return false;
+}
+var _3a,_3b,_3c;
+if(_39.rootElem.style.position=="absolute"){
+_3a=(ev.clientY+this.scrollPos.y)-_39.yOffs+"px";
+_3b=(ev.clientX+this.scrollPos.x)-_39.xOffs+"px";
+_3c={top:_3a,left:_3b};
+}else{
+if(_39.rootElem.style.position=="fixed"){
+_3a=ev.clientY-_39.yOffs+"px";
+_3b=ev.clientX-_39.xOffs+"px";
+_3c={top:_3a,left:_3b};
+}
+}
+_39.posDialog(_3c);
+};
+Xinha.Dialog.prototype.dragEnd=function(ev){
+var _3e=this;
+if(!this.modal){
+this.editor.suspendUpdateToolbar=false;
+}
+if(!_3e.dragging){
+return false;
+}
+_3e.dragging=false;
+Xinha._removeEvent(document,"mousemove",_3e.mouseMove);
+if(Xinha.is_ie){
+Xinha._removeEvent(this.background.contentWindow.document,"mousemove",_3e.mouseMove);
+}
+Xinha._removeEvent(document,"mouseup",_3e.mouseUp);
+if(Xinha.is_ie){
+Xinha._removeEvent(this.background.contentWindow.document,"mouseup",_3e.mouseUp);
+}
+var _3f=_3e.rootElem.style;
+_3e.size.top=_3f.top;
+_3e.size.left=_3f.left;
+if(!this.modal){
+this.sizeBgToDialog();
+}
+};
+Xinha.Dialog.prototype.resizeStart=function(ev){
+var _41=this;
+if(_41.resizing){
+return;
+}
+_41.resizing=true;
+if(!this.modal){
+this.editor.suspendUpdateToolbar=true;
+this.posBackground({top:0,left:0});
+this.resizeBackground(Xinha.Dialog.calcFullBgSize());
+}
+_41.scrollPos=_41.editor.scrollPos();
+var st=_41.rootElem.style;
+st.minHeight="";
+st.overflow="hidden";
+_41.xOffs=parseInt(st.left,10);
+_41.yOffs=parseInt(st.top,10);
+_41.mouseMove=function(ev){
+_41.resizeIt(ev);
+};
+Xinha._addEvent(document,"mousemove",_41.mouseMove);
+if(Xinha.is_ie){
+Xinha._addEvent(this.background.contentWindow.document,"mousemove",_41.mouseMove);
+}
+_41.mouseUp=function(ev){
+_41.resizeEnd(ev);
+};
+Xinha._addEvent(document,"mouseup",_41.mouseUp);
+if(Xinha.is_ie){
+Xinha._addEvent(this.background.contentWindow.document,"mouseup",_41.mouseUp);
+}
+};
+Xinha.Dialog.prototype.resizeIt=function(ev){
+var _46=this;
+if(!_46.resizing){
+return false;
+}
+var _47,_48;
+if(_46.rootElem.style.position=="absolute"){
+_47=ev.clientY+_46.scrollPos.y;
+_48=ev.clientX+_46.scrollPos.x;
+}else{
+_47=ev.clientY;
+_48=ev.clientX;
+}
+_48-=_46.xOffs;
+_47-=_46.yOffs;
+var _49={};
+_49.width=((_48>10)?_48:10)+8+"px";
+_49.height=((_47>10)?_47:10)+"px";
+_46.sizeDialog(_49);
+_46.width=_46.rootElem.offsetWidth;
+_46.height=_46.rootElem.offsetHeight;
+_46.onresize();
+};
+Xinha.Dialog.prototype.resizeEnd=function(ev){
+var _4b=this;
+_4b.resizing=false;
+if(!this.modal){
+this.editor.suspendUpdateToolbar=false;
+}
+Xinha._removeEvent(document,"mousemove",_4b.mouseMove);
+if(Xinha.is_ie){
+Xinha._removeEvent(this.background.contentWindow.document,"mouseup",_4b.mouseUp);
+}
+Xinha._removeEvent(document,"mouseup",_4b.mouseUp);
+if(Xinha.is_ie){
+Xinha._removeEvent(this.background.contentWindow.document,"mouseup",_4b.mouseUp);
+}
+_4b.size.width=_4b.rootElem.offsetWidth;
+_4b.size.height=_4b.rootElem.offsetHeight;
+if(!this.modal){
+this.sizeBgToDialog();
+}
+};
+Xinha.Dialog.prototype.attachToPanel=function(_4c){
+var _4d=this;
+var _4e=this.rootElem;
+var _4f=this.editor;
+this.attached=true;
+this.rootElem.side=_4c;
+this.captionBar.ondblclick=function(ev){
+_4d.detachFromPanel(Xinha.getEvent(ev));
+};
+_4e.style.position="static";
+_4e.parentNode.removeChild(_4e);
+this.background.style.display="none";
+this.captionBar.style.paddingLeft="3px";
+this.resizer.style.display="none";
+if(this.closable){
+this.closer.style.display="none";
+}
+this.icon.style.display="none";
+if(_4c=="left"||_4c=="right"){
+_4e.style.width=_4f.config.panel_dimensions[_4c];
+}else{
+_4e.style.width="";
+}
+Xinha.addClasses(_4e,"panel");
+_4f._panels[_4c].panels.push(_4e);
+_4f._panels[_4c].div.appendChild(_4e);
+_4f.notifyOf("panel_change",{"action":"add","panel":_4e});
+};
+Xinha.Dialog.prototype.detachFromPanel=function(){
+var _51=this;
+var _52=_51.rootElem;
+var _53=_52.style;
+var _54=_51.editor;
+_51.attached=false;
+var pos=Xinha.getElementTopLeft(_52);
+_53.position="absolute";
+_53.top=pos.top+"px";
+_53.left=pos.left+"px";
+_51.resizer.style.display="";
+if(_51.closable){
+_51.closer.style.display="";
+}
+_51.icon.style.display="";
+if(_51.size.width){
+_52.style.width=_51.size.width+"px";
+}
+Xinha.removeClasses(_52,"panel");
+_54.removePanel(_52);
+document.body.appendChild(_52);
+_51.captionBar.ondblclick=function(){
+_51.attachToPanel(_52.side);
+};
+this.background.style.display="";
+this.sizeBgToDialog();
+};
+Xinha.Dialog.calcFullBgSize=function(){
+var _56=Xinha.pageSize();
+var _57=Xinha.viewportSize();
+return {width:(_56.x>_57.x?_56.x:_57.x)+"px",height:(_56.x>_57.y?_56.y:_57.y)+"px"};
+};
+Xinha.Dialog.prototype.sizeBgToDialog=function(){
+var _58=this.rootElem.style;
+var _59=this.background.style;
+_59.top=_58.top;
+_59.left=_58.left;
+_59.width=_58.width;
+_59.height=_58.height;
+};
+Xinha.Dialog.prototype.hideBackground=function(){
+Xinha.Dialog.fadeOut(this.background);
+};
+Xinha.Dialog.prototype.showBackground=function(){
+Xinha.Dialog.fadeIn(this.background,70);
+};
+Xinha.Dialog.prototype.posBackground=function(pos){
+if(this.background.style.display!="none"){
+this.background.style.top=pos.top;
+this.background.style.left=pos.left;
+}
+};
+Xinha.Dialog.prototype.resizeBackground=function(_5b){
+if(this.background.style.display!="none"){
+this.background.style.width=_5b.width;
+this.background.style.height=_5b.height;
+}
+};
+Xinha.Dialog.prototype.posDialog=function(pos){
+var st=this.rootElem.style;
+st.left=pos.left;
+st.top=pos.top;
+};
+Xinha.Dialog.prototype.sizeDialog=function(_5e){
+var st=this.rootElem.style;
+st.height=_5e.height;
+st.width=_5e.width;
+var _60=parseInt(_5e.width,10);
+var _61=parseInt(_5e.height,10)-this.captionBar.offsetHeight;
+this.main.style.height=(_61>20)?_61:20+"px";
+this.main.style.width=(_60>10)?_60:10+"px";
+};
+Xinha.Dialog.prototype.setValues=function(_62){
+for(var i in _62){
+if(typeof i=="string"){
+var _64=this.getElementsByName(i);
+if(!_64){
+continue;
+}
+for(var x=0;x<_64.length;x++){
+var e=_64[x];
+switch(e.tagName.toLowerCase()){
+case "select":
+for(var j=0;j<e.options.length;j++){
+if(typeof _62[i]=="object"){
+for(var k=0;k<_62[i].length;k++){
+if(_62[i][k]==e.options[j].value){
+e.options[j].selected=true;
+}
+}
+}else{
+if(_62[i]==e.options[j].value){
+e.options[j].selected=true;
+}
+}
+}
+break;
+case "textarea":
+case "input":
+switch(e.getAttribute("type")){
+case "radio":
+if(e.value==_62[i]){
+e.checked=true;
+}
+break;
+case "checkbox":
+if(typeof _62[i]=="object"){
+for(j in _62[i]){
+if(_62[i][j]==e.value){
+e.checked=true;
+}
+}
+}else{
+if(_62[i]==e.value){
+e.checked=true;
+}
+}
+break;
+default:
+e.value=_62[i];
+break;
+}
+}
+}
+}
+}
+};
+Xinha.Dialog.prototype.getValues=function(){
+var _69=[];
+var _6a=Xinha.collectionToArray(this.rootElem.getElementsByTagName("input")).append(Xinha.collectionToArray(this.rootElem.getElementsByTagName("textarea"))).append(Xinha.collectionToArray(this.rootElem.getElementsByTagName("select")));
+for(var x=0;x<_6a.length;x++){
+var i=_6a[x];
+if(!(i.name&&this.r_id[i.name])){
+continue;
+}
+if(typeof _69[this.r_id[i.name]]=="undefined"){
+_69[this.r_id[i.name]]=null;
+}
+var v=_69[this.r_id[i.name]];
+switch(i.tagName.toLowerCase()){
+case "select":
+if(i.multiple){
+if(!v.push){
+if(v!==null){
+v=[v];
+}else{
+v=[];
+}
+}
+for(var j=0;j<i.options.length;j++){
+if(i.options[j].selected){
+v.push(i.options[j].value);
+}
+}
+}else{
+if(i.selectedIndex>=0){
+v=i.options[i.selectedIndex];
+}
+}
+break;
+default:
+switch(i.type.toLowerCase()){
+case "radio":
+if(i.checked){
+v=i.value;
+}
+break;
+case "checkbox":
+if(v===null){
+if(this.getElementsByName(this.r_id[i.name]).length>1){
+v=[];
+}
+}
+if(i.checked){
+if(v!==null&&typeof v=="object"&&v.push){
+v.push(i.value);
+}else{
+v=i.value;
+}
+}
+break;
+default:
+v=i.value;
+break;
+}
+}
+_69[this.r_id[i.name]]=v;
+}
+return _69;
+};
+Xinha.Dialog.prototype.setLocalizer=function(_6f){
+var _70=this;
+if(typeof _6f=="function"){
+_70._lc=_6f;
+}else{
+if(_6f){
+this._lc=function(_71){
+return Xinha._lc(_71,_6f);
+};
+}else{
+this._lc=function(_72){
+return _72;
+};
+}
+}
+};
+Xinha.Dialog.prototype.translateHtml=function(_73,_74){
+var _75=this;
+if(_74){
+this.setLocalizer(_74);
+}
+_73=_73.replace(/((?:name)|(?:id))=(['"])\[([a-z0-9_]+)\]\2/ig,function(_76,_77,_78,id){
+return _77+"="+_78+_75.createId(id)+_78;
+}).replace(/<l10n>(.*?)<\/l10n>/ig,function(_7a,_7b){
+return _75._lc(_7b);
+}).replace(/\="_\((.*?)\)"/g,function(_7c,_7d){
+return "=\""+_75._lc(_7d)+"\"";
+});
+return _73;
+};
+Xinha.Dialog.prototype.fixupDOM=function(_7e,_7f){
+var _80=this;
+if(typeof _7f!="string"){
+_7f="GenericPlugin";
+}
+var _81=function(_82,_83){
+switch(_83){
+case "editor":
+return _editor_url;
+case "plugin":
+return Xinha.getPluginDir(_7f);
+case "images":
+return _80.editor.imgURL("images");
+}
+};
+var _84=Xinha.collectionToArray(_7e.getElementsByTagName("img"));
+for(var _85=0;_85<_84.length;++_85){
+var _86=_84[_85];
+var _87=_86.getAttribute("src");
+if(_87){
+var _88=_87.replace(/^\[(editor|plugin|images)\]/,_81);
+if(_88!=_87){
+_86.setAttribute("src",_88);
+}
+}
+}
+var _89=Xinha.collectionToArray(_7e.getElementsByTagName("a"));
+for(var _85=0;_85<_89.length;++_85){
+var _8a=_89[_85];
+var _87=_8a.getAttribute("href");
+if(_87){
+var _88=_87.replace(/^\[(editor|plugin|images)\]/,_81);
+if(_88!=_87){
+_8a.setAttribute("href",_88);
+}
+}
+}
+};
+Xinha.Dialog.prototype.createId=function(id){
+var _8c=this;
+if(typeof _8c.id[id]=="undefined"){
+_8c.id[id]=Xinha.uniq("Dialog");
+_8c.r_id[_8c.id[id]]=id;
+}
+return _8c.id[id];
+};
+Xinha.Dialog.activateModeless=function(_8d){
+if(Xinha.Dialog.activeModeless==_8d||_8d.attached){
+return;
+}
+if(Xinha.Dialog.activeModeless){
+Xinha.Dialog.activeModeless.rootElem.style.zIndex=parseInt(Xinha.Dialog.activeModeless.rootElem.style.zIndex,10)-10;
+}
+Xinha.Dialog.activeModeless=_8d;
+Xinha.Dialog.activeModeless.rootElem.style.zIndex=parseInt(Xinha.Dialog.activeModeless.rootElem.style.zIndex,10)+10;
+};
+Xinha.Dialog.setOpacity=function(el,_8f){
+if(typeof el.style.filter!="undefined"){
+el.style.filter=(_8f<100)?"alpha(opacity="+_8f+")":"";
+}else{
+el.style.opacity=_8f/100;
+}
+};
+Xinha.Dialog.fadeIn=function(el,_91,_92,_93,_94){
+_93=_93||1;
+_94=_94||25;
+_91=_91||100;
+el.op=el.op||0;
+var op=el.op;
+if(el.style.display=="none"){
+Xinha.Dialog.setOpacity(el,0);
+el.style.display="";
+}
+if(op<_91){
+el.op+=_94;
+Xinha.Dialog.setOpacity(el,op);
+el.timeOut=setTimeout(function(){
+Xinha.Dialog.fadeIn(el,_91,_92,_93,_94);
+},_93);
+}else{
+Xinha.Dialog.setOpacity(el,_91);
+el.op=_91;
+el.timeOut=null;
+if(typeof _92=="function"){
+_92.call();
+}
+}
+};
+Xinha.Dialog.fadeOut=function(el,_97,_98){
+_97=_97||1;
+_98=_98||30;
+if(typeof el.op=="undefined"){
+el.op=100;
+}
+var op=el.op;
+if(op>=0){
+el.op-=_98;
+Xinha.Dialog.setOpacity(el,op);
+el.timeOut=setTimeout(function(){
+Xinha.Dialog.fadeOut(el,_97,_98);
+},_97);
+}else{
+Xinha.Dialog.setOpacity(el,0);
+el.style.display="none";
+el.op=0;
+el.timeOut=null;
+}
+};
+

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/dialog.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/dialog.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/dialog.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/dialog.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,74 @@
+/* This compressed file is part of Xinha. For uncompressed sources, forum, and bug reports, go to xinha.org */
+/* The URL of the most recent version of this file is http://svn.xinha.org/trunk/modules/Dialogs/dialog.js */
+function Dialog(_1,_2,_3){
+if(typeof _3=="undefined"){
+_3=window;
+}
+if(typeof window.showModalDialog=="function"&&!Xinha.is_webkit){
+Dialog._return=function(_4){
+if(typeof _2=="function"){
+_2(_4);
+}
+};
+var r=window.showModalDialog(_1,_3,"dialogheight=300;dialogwidth=400;resizable=yes");
+}else{
+Dialog._geckoOpenModal(_1,_2,_3);
+}
+};
+Dialog._parentEvent=function(ev){
+setTimeout(function(){
+if(Dialog._modal&&!Dialog._modal.closed){
+Dialog._modal.focus();
+}
+},50);
+try{
+if(Dialog._modal&&!Dialog._modal.closed){
+Xinha._stopEvent(ev);
+}
+}
+catch(e){
+}
+};
+Dialog._return=null;
+Dialog._modal=null;
+Dialog._arguments=null;
+Dialog._selection=null;
+Dialog._geckoOpenModal=function(_7,_8,_9){
+var _a=window.open(_7,"hadialog","toolbar=no,menubar=no,personalbar=no,width=10,height=10,"+"scrollbars=no,resizable=yes,modal=yes,dependable=yes");
+Dialog._modal=_a;
+Dialog._arguments=_9;
+function capwin(w){
+Xinha._addEvent(w,"click",Dialog._parentEvent);
+Xinha._addEvent(w,"mousedown",Dialog._parentEvent);
+Xinha._addEvent(w,"focus",Dialog._parentEvent);
+};
+function relwin(w){
+Xinha._removeEvent(w,"click",Dialog._parentEvent);
+Xinha._removeEvent(w,"mousedown",Dialog._parentEvent);
+Xinha._removeEvent(w,"focus",Dialog._parentEvent);
+};
+capwin(window);
+for(var i=0;i<window.frames.length;i++){
+try{
+capwin(window.frames[i]);
+}
+catch(e){
+}
+}
+Dialog._return=function(_e){
+if(_e&&_8){
+_8(_e);
+}
+relwin(window);
+for(var i=0;i<window.frames.length;i++){
+try{
+relwin(window.frames[i]);
+}
+catch(e){
+}
+}
+Dialog._modal=null;
+};
+Dialog._modal.focus();
+};
+

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/div-dialog.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/div-dialog.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/div-dialog.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/div-dialog.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,26 @@
+/* This compressed file is part of Xinha. For uncompressed sources, forum, and bug reports, go to xinha.org */
+/* The URL of the most recent version of this file is http://svn.xinha.org/trunk/modules/Dialogs/div-dialog.js */
+Xinha.DivDialog=function(_1,_2,_3){
+this.id={};
+this.r_id={};
+this.document=document;
+this.rootElem=_1;
+this.rootElem.className+=" dialog";
+this.rootElem.style.display="none";
+this.width=this.rootElem.offsetWidth+"px";
+this.height=this.rootElem.offsetHeight+"px";
+this.setLocalizer(_3);
+this.rootElem.innerHTML=this.translateHtml(_2);
+};
+Xinha.extend(Xinha.DivDialog,Xinha.Dialog);
+Xinha.DivDialog.prototype.show=function(_4){
+if(typeof _4!="undefined"){
+this.setValues(_4);
+}
+this.rootElem.style.display="";
+};
+Xinha.DivDialog.prototype.hide=function(){
+this.rootElem.style.display="none";
+return this.getValues();
+};
+

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/panel-dialog.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/panel-dialog.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/panel-dialog.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/panel-dialog.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,50 @@
+/* This compressed file is part of Xinha. For uncompressed sources, forum, and bug reports, go to xinha.org */
+/* The URL of the most recent version of this file is http://svn.xinha.org/trunk/modules/Dialogs/panel-dialog.js */
+Xinha.PanelDialog=function(_1,_2,_3,_4){
+this.id={};
+this.r_id={};
+this.editor=_1;
+this.document=document;
+this.rootElem=_1.addPanel(_2);
+var _5=this;
+if(typeof _4=="function"){
+this._lc=_4;
+}else{
+if(_4){
+this._lc=function(_6){
+return Xinha._lc(_6,_4);
+};
+}else{
+this._lc=function(_7){
+return _7;
+};
+}
+}
+_3=_3.replace(/\[([a-z0-9_]+)\]/ig,function(_8,id){
+if(typeof _5.id[id]=="undefined"){
+_5.id[id]=Xinha.uniq("Dialog");
+_5.r_id[_5.id[id]]=id;
+}
+return _5.id[id];
+}).replace(/<l10n>(.*?)<\/l10n>/ig,function(_a,_b){
+return _5._lc(_b);
+}).replace(/="_\((.*?)\)"/g,function(_c,_d){
+return "=\""+_5._lc(_d)+"\"";
+});
+this.rootElem.innerHTML=_3;
+};
+Xinha.PanelDialog.prototype.show=function(_e){
+this.setValues(_e);
+this.editor.showPanel(this.rootElem);
+};
+Xinha.PanelDialog.prototype.hide=function(){
+this.editor.hidePanel(this.rootElem);
+return this.getValues();
+};
+Xinha.PanelDialog.prototype.onresize=Xinha.Dialog.prototype.onresize;
+Xinha.PanelDialog.prototype.toggle=Xinha.Dialog.prototype.toggle;
+Xinha.PanelDialog.prototype.setValues=Xinha.Dialog.prototype.setValues;
+Xinha.PanelDialog.prototype.getValues=Xinha.Dialog.prototype.getValues;
+Xinha.PanelDialog.prototype.getElementById=Xinha.Dialog.prototype.getElementById;
+Xinha.PanelDialog.prototype.getElementsByName=Xinha.Dialog.prototype.getElementsByName;
+

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/popupwin.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/popupwin.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/popupwin.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/Dialogs/popupwin.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,122 @@
+/* This compressed file is part of Xinha. For uncompressed sources, forum, and bug reports, go to xinha.org */
+/* The URL of the most recent version of this file is http://svn.xinha.org/trunk/modules/Dialogs/popupwin.js */
+function PopupWin(_1,_2,_3,_4){
+this.editor=_1;
+this.handler=_3;
+var _5=window.open("","__ha_dialog","toolbar=no,menubar=no,personalbar=no,width=600,height=600,left=20,top=40,scrollbars=no,resizable=yes");
+this.window=_5;
+var _6=_5.document;
+this.doc=_6;
+var _7=this;
+var _8=document.baseURI||document.URL;
+if(_8&&_8.match(/(.*)\/([^\/]+)/)){
+_8=RegExp.$1+"/";
+}
+if(typeof _editor_url!="undefined"&&!(/^\//.test(_editor_url))&&!(/http:\/\//.test(_editor_url))){
+_8+=_editor_url;
+}else{
+_8=_editor_url;
+}
+if(!(/\/$/.test(_8))){
+_8+="/";
+}
+this.baseURL=_8;
+_6.open();
+var _9="<html><head><title>"+_2+"</title>\n";
+_9+="<style type=\"text/css\">@import url("+_editor_url+"Xinha.css);</style>\n";
+if(_editor_skin!=""){
+_9+="<style type=\"text/css\">@import url("+_editor_url+"skins/"+_editor_skin+"/skin.css);</style>\n";
+}
+_9+="</head>\n";
+_9+="<body class=\"dialog popupwin\" id=\"--HA-body\"></body></html>";
+_6.write(_9);
+_6.close();
+function init2(){
+var _a=_6.body;
+if(!_a){
+setTimeout(init2,25);
+return false;
+}
+_5.title=_2;
+_6.documentElement.style.padding="0px";
+_6.documentElement.style.margin="0px";
+var _b=_6.createElement("div");
+_b.className="content";
+_7.content=_b;
+_a.appendChild(_b);
+_7.element=_a;
+_4(_7);
+_5.focus();
+};
+init2();
+};
+PopupWin.prototype.callHandler=function(){
+var _c=["input","textarea","select"];
+var _d={};
+for(var ti=_c.length;--ti>=0;){
+var _f=_c[ti];
+var els=this.content.getElementsByTagName(_f);
+for(var j=0;j<els.length;++j){
+var el=els[j];
+var val=el.value;
+if(el.tagName.toLowerCase()=="input"){
+if(el.type=="checkbox"){
+val=el.checked;
+}
+}
+_d[el.name]=val;
+}
+}
+this.handler(this,_d);
+return false;
+};
+PopupWin.prototype.close=function(){
+this.window.close();
+};
+PopupWin.prototype.addButtons=function(){
+var _14=this;
+var div=this.doc.createElement("div");
+this.content.appendChild(div);
+div.id="buttons";
+div.className="buttons";
+for(var i=0;i<arguments.length;++i){
+var btn=arguments[i];
+var _18=this.doc.createElement("button");
+div.appendChild(_18);
+_18.innerHTML=Xinha._lc(btn,"Xinha");
+switch(btn.toLowerCase()){
+case "ok":
+Xinha.addDom0Event(_18,"click",function(){
+_14.callHandler();
+_14.close();
+return false;
+});
+break;
+case "cancel":
+Xinha.addDom0Event(_18,"click",function(){
+_14.close();
+return false;
+});
+break;
+}
+}
+};
+PopupWin.prototype.showAtElement=function(){
+var _19=this;
+setTimeout(function(){
+var w=_19.content.offsetWidth+4;
+var h=_19.content.offsetHeight+4;
+var el=_19.content;
+var s=el.style;
+s.position="absolute";
+s.left=parseInt((w-el.offsetWidth)/2,10)+"px";
+s.top=parseInt((h-el.offsetHeight)/2,10)+"px";
+if(Xinha.is_gecko){
+_19.window.innerWidth=w;
+_19.window.innerHeight=h;
+}else{
+_19.window.resizeTo(w+8,h+70);
+}
+},25);
+};
+

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/full-screen.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/full-screen.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/full-screen.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/full-screen.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,154 @@
+/* This compressed file is part of Xinha. For uncompressed sources, forum, and bug reports, go to xinha.org */
+/* The URL of the most recent version of this file is http://svn.xinha.org/trunk/modules/FullScreen/full-screen.js */
+function FullScreen(_1,_2){
+this.editor=_1;
+this.originalSizes=null;
+_1._superclean_on=false;
+var _3=_1.config;
+_3.registerIcon("fullscreen",[_editor_url+_3.imgURL+"ed_buttons_main.png",8,0]);
+_3.registerIcon("fullscreenrestore",[_editor_url+_3.imgURL+"ed_buttons_main.png",9,0]);
+_3.registerButton("fullscreen",this._lc("Maximize/Minimize Editor"),_3.iconList.fullscreen,true,function(e,_5,_6){
+e._fullScreen();
+});
+_3.addToolbarElement("fullscreen","popupeditor",0);
+};
+FullScreen._pluginInfo={name:"FullScreen",version:"1.0",developer:"James Sleeman",developer_url:"http://www.gogo.co.nz/",c_owner:"Gogo Internet Services",license:"htmlArea",sponsor:"Gogo Internet Services",sponsor_url:"http://www.gogo.co.nz/"};
+FullScreen.prototype._lc=function(_7){
+return Xinha._lc(_7,{url:_editor_url+"modules/FullScreen/lang/",context:"FullScreen"});
+};
+Xinha.prototype._fullScreen=function(){
+var e=this;
+var _9=e.config;
+function sizeItUp(){
+if(!e._isFullScreen||e._sizing){
+return false;
+}
+e._sizing=true;
+var _a=Xinha.viewportSize();
+if(e.config.fullScreenSizeDownMethod=="restore"){
+e.originalSizes={x:parseInt(e._htmlArea.style.width),y:parseInt(e._htmlArea.style.height),dim:_a};
+}
+var h=_a.y-e.config.fullScreenMargins[0]-e.config.fullScreenMargins[2];
+var w=_a.x-e.config.fullScreenMargins[1]-e.config.fullScreenMargins[3];
+e.sizeEditor(w+"px",h+"px",true,true);
+e._sizing=false;
+if(e._toolbarObjects.fullscreen){
+e._toolbarObjects.fullscreen.swapImage(_9.iconList.fullscreenrestore);
+}
+};
+function sizeItDown(){
+if(e._isFullScreen||e._sizing){
+return false;
+}
+e._sizing=true;
+if(e.originalSizes!=null){
+var os=e.originalSizes;
+var _e=Xinha.viewportSize();
+var nW=os.x+(_e.x-os.dim.x);
+var nH=os.y+(_e.y-os.dim.y);
+e.sizeEditor(nW+"px",nH+"px",e.config.sizeIncludesBars,e.config.sizeIncludesPanels);
+e.originalSizes=null;
+}else{
+e.initSize();
+}
+e._sizing=false;
+if(e._toolbarObjects.fullscreen){
+e._toolbarObjects.fullscreen.swapImage(_9.iconList.fullscreen);
+}
+};
+function resetScroll(){
+if(e._isFullScreen){
+window.scroll(0,0);
+window.setTimeout(resetScroll,150);
+}
+};
+if(typeof this._isFullScreen=="undefined"){
+this._isFullScreen=false;
+if(e.target!=e._iframe){
+Xinha._addEvent(window,"resize",sizeItUp);
+}
+}
+if(Xinha.is_gecko){
+this.deactivateEditor();
+}
+if(this._isFullScreen){
+this._htmlArea.style.position="";
+if(!Xinha.is_ie){
+this._htmlArea.style.border="";
+}
+try{
+if(Xinha.is_ie&&document.compatMode=="CSS1Compat"){
+var bod=document.getElementsByTagName("html");
+}else{
+var bod=document.getElementsByTagName("body");
+}
+bod[0].style.overflow="";
+}
+catch(e){
+}
+this._isFullScreen=false;
+sizeItDown();
+var _12=this._htmlArea;
+while((_12=_12.parentNode)&&_12.style){
+_12.style.position=_12._xinha_fullScreenOldPosition;
+_12._xinha_fullScreenOldPosition=null;
+}
+if(Xinha.ie_version<7){
+var _13=document.getElementsByTagName("select");
+for(var i=0;i<_13.length;++i){
+_13[i].style.visibility="visible";
+}
+}
+window.scroll(this._unScroll.x,this._unScroll.y);
+}else{
+this._unScroll={x:(window.pageXOffset)?(window.pageXOffset):(document.documentElement)?document.documentElement.scrollLeft:document.body.scrollLeft,y:(window.pageYOffset)?(window.pageYOffset):(document.documentElement)?document.documentElement.scrollTop:document.body.scrollTop};
+var _12=this._htmlArea;
+while((_12=_12.parentNode)&&_12.style){
+_12._xinha_fullScreenOldPosition=_12.style.position;
+_12.style.position="static";
+}
+if(Xinha.ie_version<7){
+var _13=document.getElementsByTagName("select");
+var s,_16;
+for(var i=0;i<_13.length;++i){
+s=_13[i];
+_16=false;
+while(s=s.parentNode){
+if(s==this._htmlArea){
+_16=true;
+break;
+}
+}
+if(!_16&&_13[i].style.visibility!="hidden"){
+_13[i].style.visibility="hidden";
+}
+}
+}
+window.scroll(0,0);
+this._htmlArea.style.position="absolute";
+this._htmlArea.style.zIndex=999;
+this._htmlArea.style.left=e.config.fullScreenMargins[3]+"px";
+this._htmlArea.style.top=e.config.fullScreenMargins[0]+"px";
+if(!Xinha.is_ie&&!Xinha.is_webkit){
+this._htmlArea.style.border="none";
+}
+this._isFullScreen=true;
+resetScroll();
+try{
+if(Xinha.is_ie&&document.compatMode=="CSS1Compat"){
+var bod=document.getElementsByTagName("html");
+}else{
+var bod=document.getElementsByTagName("body");
+}
+bod[0].style.overflow="hidden";
+}
+catch(e){
+}
+sizeItUp();
+}
+if(Xinha.is_gecko){
+this.activateEditor();
+}
+this.focusEditor();
+};
+

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/de.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/de.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/de.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/de.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,6 @@
+// I18N constants
+// LANG: "de", ENCODING: UTF-8
+// translated: Raimund Meyer xinha@ray-of-light.org
+{
+  "Maximize/Minimize Editor": "Editor maximieren/verkleinern"
+};

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/es.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/es.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/es.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/es.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,6 @@
+// I18N constants
+// LANG: "es", ENCODING: UTF-8
+// translated: Derick Leony <dl...@gmail.com>
+{
+  "Maximize/Minimize Editor": "Maximizar/Minimizar Editor"
+};
\ No newline at end of file

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/fr.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/fr.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/fr.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/fr.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,5 @@
+// I18N constants
+// LANG: "fr", ENCODING: UTF-8
+{
+  "Maximize/Minimize Editor": "Agrandir/Réduire l'éditeur"
+};
\ No newline at end of file

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/ja.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/ja.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/ja.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/ja.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,5 @@
+// I18N constants
+// LANG: "ja", ENCODING: UTF-8
+{
+  "Maximize/Minimize Editor": "エディタの最大化/最小化"
+};
\ No newline at end of file

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/nb.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/nb.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/nb.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/nb.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,6 @@
+// I18N constants
+// LANG: "nb", ENCODING: UTF-8
+// translated: Kim Steinhaug, http://www.steinhaug.com/, kim@steinhaug.com
+{
+  "Maximize/Minimize Editor": "Maksimer/Minimer WYSIWYG vindu"
+};
\ No newline at end of file

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/nl.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/nl.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/nl.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/nl.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,6 @@
+// I18N constants
+// LANG: "nl", ENCODING: UTF-8
+// translated: Arthur Bogaart a.bogaart@onehippo.org
+{
+  "Maximize/Minimize Editor": "Editor maximaliseren/verkleinen"
+};

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/pl.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/pl.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/pl.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/pl.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,6 @@
+// I18N constants
+// LANG: "pl", ENCODING: UTF-8
+// translated: Krzysztof Kotowicz, koto1sa@o2.pl, http://www.eskot.krakow.pl/portfolio
+{
+  "Maximize/Minimize Editor": "Maksymalizuj/minimalizuj edytor"
+};

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/pt_br.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/pt_br.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/pt_br.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/pt_br.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,18 @@
+// I18N constants
+//
+// LANG: "pt_br", ENCODING: UTF-8
+// Portuguese Brazilian Translation
+//
+// Author: Marcio Barbosa, <ma...@mpg.com.br>
+// MSN: tomarshall@msn.com - ICQ: 69419933
+// Site: http://www.mpg.com.br
+//
+// Last revision: 06 september 2007
+// Please don´t remove this information
+// If you modify any source, please insert a comment with your name and e-mail
+//
+// Distributed under the same terms as HTMLArea itself.
+// This notice MUST stay intact for use (see license.txt).
+{
+  "Maximize/Minimize Editor": "Maximizar/Minimizar Editor"
+};

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/ru.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/ru.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/ru.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/ru.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,6 @@
+// I18N constants
+// LANG: "ru", ENCODING: UTF-8
+// Author: Andrei Blagorazumov, a@fnr.ru
+{
+  "Maximize/Minimize Editor": "Развернуть/Свернуть редактор"
+};
\ No newline at end of file

Added: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/sv.js
URL: http://svn.apache.org/viewvc/roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/sv.js?rev=1612622&view=auto
==============================================================================
--- roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/sv.js (added)
+++ roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/sv.js Tue Jul 22 17:35:00 2014
@@ -0,0 +1,6 @@
+// I18N constants
+// LANG: "sv" (Swedish), ENCODING: UTF-8
+// translated: Erik Dalén, <da...@jpl.se>
+{
+  "Maximize/Minimize Editor": "Maximera/Minimera WYSIWYG fönster"
+};

Propchange: roller/trunk/app/src/main/webapp/roller-ui/authoring/editors/xinha-0.96.1/modules/FullScreen/lang/sv.js
------------------------------------------------------------------------------
    svn:executable = *