svn commit: r578051 [25/31] - in /lenya/branches/revolution/1.3.x/src: java/org/apache/lenya/cms/content/flat/ webapp/lenya/modules/xinha/ webapp/lenya/modules/xinha/contrib/ webapp/lenya/modules/xinha/examples/ webapp/lenya/modules/xinha/images/ webap...

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/dTree/img/plus.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/dTree/img/plusbottom.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/dTree/img/plusbottom.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/dTree/img/plusbottom.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/dTree/img/question.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/dTree/img/question.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/dTree/img/question.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/dTree/img/trash.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/dTree/img/trash.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/dTree/img/trash.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/dialog.html
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/dialog.html?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/dialog.html (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/dialog.html Fri Sep 21 03:36:30 2007
@@ -0,0 +1,107 @@
+<h1 id="[h1]"><l10n>Insert/Modify Link</l10n></h1>
+<div style="position:relative">
+<div id="[dTree]">(the dTree goes in here)</div>
+<div id="[options]" >
+  <fieldset>
+    <legend><label><input type="radio" name="[type]" value="url" checked="checked" onclick="
+      document.getElementById('[urltable]').style.display=this.checked?'':'none';
+      document.getElementById('[mailtable]').style.display=this.checked?'none':'';
+      document.getElementById('[anchortable]').style.display=this.checked?'none':'';
+    " /> <l10n>URL Link</l10n></label></legend>
+    <table id="[urltable]" width="100%">
+      <tr>
+        <th><label for="[href]"><l10n>URL:</l10n> </label></th>
+        <td><input type="text" name="[href]" style="width:100%" value="http://www.example.com/" onfocus="if (this.value == 'http://www.example.com/') this.value = '';" /></td>
+      </tr>
+      <tr valign="top">
+        <th><l10n>Target:</l10n></th>
+        <td>
+          <div><label><input type="radio" name="[target]" value="" onclick="document.getElementById('[popuptable]').style.display='none';"  checked="checked" /> <l10n>Ordinary Link</l10n></label></div>
+          <div><label><input type="radio" name="[target]" value="_top" onclick="document.getElementById('[popuptable]').style.display='none';"   /> <l10n>Same Window (jump out of frames)</l10n></label></div>
+          <div><label><input type="radio" name="[target]" value="_blank" onclick="document.getElementById('[popuptable]').style.display='none';"/> <l10n>New Window</l10n> </label></div>
+          <div>
+            <label><input type="radio" name="[target]" value="popup"    onclick="document.getElementById('[popuptable]').style.display='';" /> <l10n>Popup Window</l10n> </label>
+             <div style="padding-left:10px">
+              <table id="[popuptable]">
+                <tr>
+                  <th align="left"><l10n>Size:</l10n></th>
+                  <td colspan="3"><input type="text" name="[p_width]" size="4" />x<input type="text" name="[p_height]" size="4" /> <l10n>(px)</l10n></td>
+                </tr>
+                <tr>
+                  <th align="left"><l10n>Name:</l10n></th>
+                  <td colspan="3"><input type="text" name="[p_name]" atyle="width:100%" value="_(PopupWindow)" /></td>
+                </tr>
+                <tr>
+                  <th align="left"><l10n>Menu Bar:</l10n></th>
+                  <td><input type="checkbox" name="[p_options]" value="menubar=yes" /></td>
+
+                  <th align="left"><l10n>Toolbar:</l10n></th>
+                  <td><input type="checkbox" name="[p_options]" value="toolbar=yes" checked="checked" /></td>
+                </tr>
+                <tr>
+                  <th align="left"><l10n>Location Bar:</l10n></th>
+                  <td><input type="checkbox" name="[p_options]" value="location=yes" /></td>
+
+                  <th align="left"><l10n>Status Bar:</l10n></th>
+                  <td><input type="checkbox" name="[p_options]" value="status=yes"   /></td>
+                </tr>
+                <tr>
+                  <th align="left"><l10n>Scrollbars:</l10n></th>
+                  <td><input type="checkbox" name="[p_options]" value="scrollbars=yes" checked="checked" /></td>
+
+                  <th align="left"><l10n>Resizeable:</l10n></th>
+                  <td><input type="checkbox" name="[p_options]" value="resizeable=yes" checked="checked" /></td>
+                </tr>
+              </table>
+            </div>
+          </div>
+        </td>
+      </tr>
+    </table>
+  </fieldset>
+  <fieldset>
+    <legend><label><input type="radio" name="[type]" value="mailto" onclick="
+      document.getElementById('[mailtable]').style.display=this.checked?'':'none';
+      document.getElementById('[urltable]').style.display=this.checked?'none':'';
+      document.getElementById('[anchortable]').style.display=this.checked?'none':'';
+    "/> <l10n>Email Link</l10n></label></legend>
+    <table id="[mailtable]" width="100%">
+      <tr>
+        <th><label for="[to]"><l10n>Email Address:</l10n> </label></th>
+        <td><input type="text" name="[to]" style="width:100%" value="[email protected]" onfocus="if (this.value == '[email protected]') this.value = '';" /></td>
+      </tr>
+      <tr>
+        <th><label for="[subject]"><l10n>Subject:</l10n> </label></th>
+        <td><input type="text" name="[subject]" style="width:100%" value="" /></td>
+      </tr>
+      <tr>
+        <th><label for="[body]"><l10n>Message Template:</l10n> </label></th>
+        <td><textarea name="[body]" style="width:100%" rows="5"></textarea></td>
+      </tr>
+    </table>
+  </fieldset>
+
+  <fieldset id="[anchorfieldset]">
+    <legend><label><input type="radio" name="[type]" value="anchor" onclick="
+      document.getElementById('[urltable]').style.display=this.checked?'none':'';
+      document.getElementById('[mailtable]').style.display=this.checked?'none':'';
+      document.getElementById('[anchortable]').style.display=this.checked?'':'none';
+    "/> <l10n>Anchor-Link</l10n></label></legend>
+    <table id="[anchortable]" width="100%">
+      <tr>
+        <th><label for="[anchor]"><l10n>Anchor:</l10n> </label></th>
+        <td>
+            <select name="[anchor]" id="[anchor]">
+            </select>
+        </td>
+      </tr>
+    </table>
+  </fieldset>
+
+  <div style="text-align:right">
+    <input type="button" id="[ok]"     value="_(OK)"     />
+    <input type="button" id="[clear]"  value="_(Remove Link)" onclick="this.form['[href]'].value='';this.form['[to]'].value='';document.getElementById('[ok]').click();" />
+    <input type="button" id="[cancel]" value="_(Cancel)" />
+  </div>
+</div>
+</div>
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/de.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/de.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/de.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/de.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,19 @@
+// I18N constants
+// LANG: "de", ENCODING: UTF-8
+// translated: Udo Schmal (gocher), http://www.schaffrath-neuemedien.de/, [email protected]
+{
+  "You must select some text before making a new link.": "Sie müssen einen Text markieren um einen Link zu erstellen",
+  "Are you sure you wish to remove this link?": "Wollen Sie diesen Link wirklich entfernen?",
+  "Remove Link": "Link entfernen",
+  "URL Link": "URL Adresse",
+  "Ordinary Link": "Standard Link",
+  "Same Window (jump out of frames)": "Selbes Fenster (ganzer Bereich)",
+  "New Window": "Neues Fenster",
+  "Popup Window": "Pop-Up Fenster",
+  "Email Link": "Email Link",
+  "Email Address:": "Email Adresse",
+  "Subject:": "Betreff:",
+  "Message Template:": "Nachrichten Vorlage:",
+  "Size:": "Größe:",
+  "Name:": "Name:"
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/fr.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/fr.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/fr.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/fr.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,18 @@
+// I18N constants
+// LANG: "fr", ENCODING: UTF-8
+{
+  "You must select some text before making a new link.": "Vous devez sélectionner un texte avant de créer un nouveau lien",
+  "Are you sure you wish to remove this link?": "Confirmez-vous la suppression de ce lien ?",
+  "Remove Link": "Supprimer",
+  "URL Link": "Lien URL",
+  "Ordinary Link": "Lien standard",
+  "Same Window (jump out of frames)": "Même fenêtre (sort des frames)",
+  "New Window": "Nouvelle fenêtre",
+  "Popup Window": "Fenêtre popup",
+  "Email Link": "Lien email",
+  "Email Address:": "Adresse email",
+  "Subject:": "Sujet",
+  "Message Template:": "Message",
+  "Size:": "Taille",
+  "Name:": "Nom"
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/ja.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/ja.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/ja.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/ja.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,24 @@
+// I18N constants
+// LANG: "ja", ENCODING: UTF-8
+{
+  "You must select some text before making a new link.": "リンクを作成するにはテキストを選択する必要があります",
+  "Are you sure you wish to remove this link?": "本当にこのリンクを削除しますか?",
+  "Remove Link": "リンク削除",
+  "URL Link": "URLリンク",
+  "Ordinary Link": "標準リンク",
+  "Same Window (jump out of frames)": "同一ウィンドウ (フレーム最上位)",
+  "New Window": "新しいウィンドウ",
+  "Popup Window": "ポップアップウィンドウ",
+  "Email Link": "Eメールリンク",
+  "Email Address:": "アドレス:",
+  "Subject:": "件名:",
+  "Message Template:": "本文雛形:",
+  "Size:": "サイズ:",
+  "Name:": "名前:",
+  "Menu Bar:": "メニュー",
+  "Toolbar:": "ツールバー",
+  "Location Bar:": "アドレスバー",
+  "Status Bar:": "ステータスバー",
+  "Scrollbars:": "スクロール",
+  "Resizeable:": "リサイズ"
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/nb.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/nb.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/nb.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/nb.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,7 @@
+// I18N constants
+// LANG: "nb", ENCODING: UTF-8
+// translated: Kim Steinhaug, http://www.steinhaug.com/, [email protected]
+{
+  "You must select some text before making a new link.": "Du må markere tekst eller et bilde før du kan lage en lenke.",
+  "Are you sure you wish to remove this link?": "Er du sikker på at du vil fjerne lenken?"
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/pl.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/pl.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/pl.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/lang/pl.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,19 @@
+// I18N constants
+// LANG: "pl", ENCODING: UTF-8
+// translated: Krzysztof Kotowicz, http://www.eskot.krakow.pl/portfolio/, [email protected]
+{
+  "You must select some text before making a new link.": "Zaznacz tekst przed dodaniem odnośnika.",
+  "Are you sure you wish to remove this link?": "Na pewno chcesz usunąć odnośnik?",
+  "Remove Link": "USUŃ ODNOŚNIK",
+  "URL Link": "Adres URL",
+  "Ordinary Link": "Zwykły odnośnik",
+  "Same Window (jump out of frames)": "To samo okno (wyskocz z ramek)",
+  "New Window": "Nowe okno",
+  "Popup Window": "Okienko pop-up",
+  "Email Link": "Link do e-maila",
+  "Email Address:": "Adres e-mail",
+  "Subject:": "Temat:",
+  "Message Template:": "Szablon wiadmości:",
+  "Size:": "Rozmiar:",
+  "Name:": "Nazwa:"
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/linker.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/linker.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/linker.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/linker.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,385 @@
+Linker._pluginInfo={name:"Linker",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/"};
+Xinha.loadStyle("dTree/dtree.css","Linker");
+Xinha.Config.prototype.Linker={"treeCaption":document.location.host,"backend":_editor_url+"plugins/Linker/scan.php","backend_data":null,"files":null};
+function Linker(_1,_2){
+this.editor=_1;
+this.lConfig=_1.config.Linker;
+var _3=this;
+if(_1.config.btnList.createlink){
+_1.config.btnList.createlink[3]=function(e,_5,_6){
+_3._createLink(_3._getSelectedAnchor());
+};
+}else{
+_1.config.registerButton("createlink","Insert/Modify Hyperlink",[_editor_url+"images/ed_buttons_main.gif",6,1],false,function(e,_8,_9){
+_3._createLink(_3._getSelectedAnchor());
+});
+}
+_1.config.addToolbarElement("createlink","createlink",0);
+}
+Linker.prototype._lc=function(_a){
+return Xinha._lc(_a,"Linker");
+};
+Linker.prototype._createLink=function(a){
+if(!a&&this.editor.selectionEmpty(this.editor.getSelection())){
+alert(this._lc("You must select some text before making a new link."));
+return false;
+}
+var _c={type:"url",href:"http://www.example.com/",target:"",p_width:"",p_height:"",p_options:["menubar=no","toolbar=yes","location=no","status=no","scrollbars=yes","resizeable=yes"],to:"[email protected]",subject:"",body:"",anchor:""};
+if(a&&a.tagName.toLowerCase()=="a"){
+var _d=this.editor.fixRelativeLinks(a.getAttribute("href"));
+var m=_d.match(/^mailto:(.*@[^?&]*)(\?(.*))?$/);
+var _f=_d.match(/^#(.*)$/);
+if(m){
+_c.type="mailto";
+_c.to=m[1];
+if(m[3]){
+var _10=m[3].split("&");
+for(var x=0;x<_10.length;x++){
+var j=_10[x].match(/(subject|body)=(.*)/);
+if(j){
+_c[j[1]]=decodeURIComponent(j[2]);
+}
+}
+}
+}else{
+if(_f){
+_c.type="anchor";
+_c.anchor=_f[1];
+}else{
+if(a.getAttribute("onclick")){
+var m=a.getAttribute("onclick").match(/window\.open\(\s*this\.href\s*,\s*'([a-z0-9_]*)'\s*,\s*'([a-z0-9_=,]*)'\s*\)/i);
+_c.href=_d?_d:"";
+_c.target="popup";
+_c.p_name=m[1];
+_c.p_options=[];
+var _10=m[2].split(",");
+for(var x=0;x<_10.length;x++){
+var i=_10[x].match(/(width|height)=([0-9]+)/);
+if(i){
+_c["p_"+i[1]]=parseInt(i[2]);
+}else{
+_c.p_options.push(_10[x]);
+}
+}
+}else{
+_c.href=_d;
+_c.target=a.target;
+}
+}
+}
+}
+var _14=this;
+this.a=a;
+var _15=function(){
+var a=_14.a;
+var _17=_14._dialog.hide();
+var atr={href:"",target:"",title:"",onclick:""};
+if(_17.type=="url"){
+if(_17.href){
+atr.href=_17.href;
+atr.target=_17.target;
+if(_17.target=="popup"){
+if(_17.p_width){
+_17.p_options.push("width="+_17.p_width);
+}
+if(_17.p_height){
+_17.p_options.push("height="+_17.p_height);
+}
+atr.onclick="if(window.top && window.top.Xinha){return false}window.open(this.href, '"+(_17.p_name.replace(/[^a-z0-9_]/i,"_"))+"', '"+_17.p_options.join(",")+"');return false;";
+}
+}
+}else{
+if(_17.type=="anchor"){
+if(_17.anchor){
+atr.href=_17.anchor.value;
+}
+}else{
+if(_17.to){
+atr.href="mailto:"+_17.to;
+if(_17.subject){
+atr.href+="?subject="+encodeURIComponent(_17.subject);
+}
+if(_17.body){
+atr.href+=(_17.subject?"&":"?")+"body="+encodeURIComponent(_17.body);
+}
+}
+}
+}
+if(a&&a.tagName.toLowerCase()=="a"){
+if(!atr.href){
+if(confirm(_14._dialog._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);
+_14.editor.updateToolbar();
+return;
+}
+}else{
+for(var i in atr){
+a.setAttribute(i,atr[i]);
+}
+if(Xinha.is_ie){
+if(/mailto:([^?<>]*)(\?[^<]*)?$/i.test(a.innerHTML)){
+a.innerHTML=RegExp.$1;
+}
+}
+}
+}else{
+if(!atr.href){
+return true;
+}
+var tmp=Xinha.uniq("http://www.example.com/Link");
+_14.editor._doc.execCommand("createlink",false,tmp);
+var _1c=_14.editor._doc.getElementsByTagName("a");
+for(var i=0;i<_1c.length;i++){
+var _1d=_1c[i];
+if(_1d.href==tmp){
+if(!a){
+a=_1d;
+}
+for(var j in atr){
+_1d.setAttribute(j,atr[j]);
+}
+}
+}
+}
+_14.editor.selectNodeContents(a);
+_14.editor.updateToolbar();
+};
+this._dialog.show(_c,_15);
+};
+Linker.prototype._getSelectedAnchor=function(){
+var sel=this.editor.getSelection();
+var rng=this.editor.createRange(sel);
+var a=this.editor.activeElement(sel);
+if(a!=null&&a.tagName.toLowerCase()=="a"){
+return a;
+}else{
+a=this.editor._getFirstAncestor(sel,"a");
+if(a!=null){
+return a;
+}
+}
+return null;
+};
+Linker.prototype.onGenerateOnce=function(){
+this._dialog=new Linker.Dialog(this);
+};
+Linker.Dialog_dTrees=[];
+Linker.Dialog=function(_22){
+var _23=this;
+this.Dialog_nxtid=0;
+this.linker=_22;
+this.id={};
+this.ready=false;
+this.files=false;
+this.html=false;
+this.dialog=false;
+this._prepareDialog();
+};
+Linker.Dialog.prototype._prepareDialog=function(){
+var _24=this;
+var _25=this.linker;
+if(typeof dTree=="undefined"){
+Xinha._loadback(_editor_url+"plugins/Linker/dTree/dtree.js",function(){
+_24._prepareDialog();
+});
+return;
+}
+if(this.files==false){
+if(_25.lConfig.backend){
+Xinha._postback(_25.lConfig.backend,_25.lConfig.backend_data,function(txt){
+try{
+_24.files=eval(txt);
+}
+catch(Error){
+_24.files=[{url:"",title:Error.toString()}];
+}
+_24._prepareDialog();
+});
+}else{
+if(_25.lConfig.files!=null){
+_24.files=_25.lConfig.files;
+_24._prepareDialog();
+}
+}
+return;
+}
+var _27=this.files;
+if(this.html==false){
+Xinha._getback(_editor_url+"plugins/Linker/dialog.html",function(txt){
+_24.html=txt;
+_24._prepareDialog();
+});
+return;
+}
+var _29=this.html;
+var _2a=this.dialog=new Xinha.Dialog(_25.editor,this.html,"Linker");
+var _2b=Xinha.uniq("dTree_");
+this.dTree=new dTree(_2b,_editor_url+"plugins/Linker/dTree/");
+eval(_2b+" = this.dTree");
+this.dTree.add(this.Dialog_nxtid++,-1,_25.lConfig.treeCaption,null,_25.lConfig.treeCaption);
+this.makeNodes(_27,0);
+var _2c=this.dialog.getElementById("dTree");
+_2c.innerHTML="";
+_2c.style.position="absolute";
+_2c.style.left=1+"px";
+_2c.style.top=0+"px";
+_2c.style.overflow="auto";
+_2c.style.backgroundColor="white";
+this.ddTree=_2c;
+this.dTree._linker_premade=this.dTree.toString();
+var _2d=this.dialog.getElementById("options");
+_2d.style.position="absolute";
+_2d.style.top=0+"px";
+_2d.style.right=0+"px";
+_2d.style.width=320+"px";
+_2d.style.overflow="auto";
+this.dialog.onresize=function(){
+var h=parseInt(_2a.height)-_2a.getElementById("h1").offsetHeight;
+var w=parseInt(_2a.width)-322;
+if(w<0){
+w=0;
+}
+if(h<0){
+h=0;
+}
+_2d.style.height=_2c.style.height=h+"px";
+_2c.style.width=w+"px";
+};
+this.ready=true;
+};
+Linker.Dialog.prototype.makeNodes=function(_30,_31){
+for(var i=0;i<_30.length;i++){
+if(typeof _30[i]=="string"){
+this.dTree.add(Linker.nxtid++,_31,_30[i].replace(/^.*\//,""),"javascript:document.getElementsByName('"+this.dialog.id.href+"')[0].value=decodeURIComponent('"+encodeURIComponent(_30[i])+"');document.getElementsByName('"+this.dialog.id.type+"')[0].click();document.getElementsByName('"+this.dialog.id.href+"')[0].focus();void(0);",_30[i]);
+}else{
+if(_30[i].length){
+var id=this.Dialog_nxtid++;
+this.dTree.add(id,_31,_30[i][0].replace(/^.*\//,""),null,_30[i][0]);
+this.makeNodes(_30[i][1],id);
+}else{
+if(typeof _30[i]=="object"){
+if(_30[i].children){
+var id=this.Dialog_nxtid++;
+}else{
+var id=Linker.nxtid++;
+}
+if(_30[i].title){
+var _34=_30[i].title;
+}else{
+if(_30[i].url){
+var _34=_30[i].url.replace(/^.*\//,"");
+}else{
+var _34="no title defined";
+}
+}
+if(_30[i].url){
+var _35="javascript:document.getElementsByName('"+this.dialog.id.href+"')[0].value=decodeURIComponent('"+encodeURIComponent(_30[i].url)+"');document.getElementsByName('"+this.dialog.id.type+"')[0].click();document.getElementsByName('"+this.dialog.id.href+"')[0].focus();void(0);";
+}else{
+var _35="";
+}
+this.dTree.add(id,_31,_34,_35,_34);
+if(_30[i].children){
+this.makeNodes(_30[i].children,id);
+}
+}
+}
+}
+}
+};
+Linker.Dialog.prototype._lc=Linker.prototype._lc;
+Linker.Dialog.prototype.show=function(_36,ok,_38){
+if(!this.ready){
+var _39=this;
+window.setTimeout(function(){
+_39.show(_36,ok,_38);
+},100);
+return;
+}
+if(this.ddTree.innerHTML==""){
+this.ddTree.innerHTML=this.dTree._linker_premade;
+}
+if(_36.type=="url"){
+this.dialog.getElementById("urltable").style.display="";
+this.dialog.getElementById("mailtable").style.display="none";
+this.dialog.getElementById("anchortable").style.display="none";
+}else{
+if(_36.type=="anchor"){
+this.dialog.getElementById("urltable").style.display="none";
+this.dialog.getElementById("mailtable").style.display="none";
+this.dialog.getElementById("anchortable").style.display="";
+}else{
+this.dialog.getElementById("urltable").style.display="none";
+this.dialog.getElementById("mailtable").style.display="";
+this.dialog.getElementById("anchortable").style.display="none";
+}
+}
+if(_36.target=="popup"){
+this.dialog.getElementById("popuptable").style.display="";
+}else{
+this.dialog.getElementById("popuptable").style.display="none";
+}
+var _3a=this.dialog.getElementById("anchor");
+for(var i=_3a.length;i>=0;i--){
+_3a[i]=null;
+}
+var _3c=this.linker.editor.getHTML();
+var _3d=new Array();
+var m=_3c.match(/<a[^>]+name="([^"]+)"/gi);
+if(m){
+for(i=0;i<m.length;i++){
+var n=m[i].match(/name="([^"]+)"/i);
+if(!_3d.contains(n[1])){
+_3d.push(n[1]);
+}
+}
+}
+m=_3c.match(/id="([^"]+)"/gi);
+if(m){
+for(i=0;i<m.length;i++){
+n=m[i].match(/id="([^"]+)"/i);
+if(!_3d.contains(n[1])){
+_3d.push(n[1]);
+}
+}
+}
+for(i=0;i<_3d.length;i++){
+var opt=new Option(_3d[i],"#"+_3d[i],false,(_36.anchor==_3d[i]));
+_3a[_3a.length]=opt;
+}
+if(_3a.length==0){
+this.dialog.getElementById("anchorfieldset").style.display="none";
+}
+if(_36.href=="http://www.example.com/"&&_36.to=="[email protected]"){
+this.dialog.getElementById("clear").style.display="none";
+}else{
+this.dialog.getElementById("clear").style.display="";
+}
+var _41=this.dialog;
+var _39=this;
+if(ok){
+this.dialog.getElementById("ok").onclick=ok;
+}else{
+this.dialog.getElementById("ok").onclick=function(){
+_39.hide();
+};
+}
+if(_38){
+this.dialog.getElementById("cancel").onclick=_38;
+}else{
+this.dialog.getElementById("cancel").onclick=function(){
+_39.hide();
+};
+}
+this.linker.editor.disableToolbar(["fullscreen","linker"]);
+this.dialog.show(_36);
+this.dialog.onresize();
+};
+Linker.Dialog.prototype.hide=function(){
+this.linker.editor.enableToolbar();
+return this.dialog.hide();
+};
+

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/scan.php
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/scan.php?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/scan.php (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/Linker/scan.php Fri Sep 21 03:36:30 2007
@@ -0,0 +1,106 @@
+<?php
+    // /home/username/foo/public_html/
+    $dir          = dirname(__FILE__)."/../..";
+    $include      = '/\.(php|shtml|html|htm|shtm|cgi|txt|doc|pdf|rtf|xls|csv)$/';
+    $exclude      = '';
+    $dirinclude   = '';
+    $direxclude   = '/(^|\/)[._]|htmlarea/'; // Exclude the htmlarea tree by default
+
+    // New backend config data passing
+    //  if data was passed using xinha_pass_to_backend() we extract and use it
+    //  as the items above    
+    require_once(realpath(dirname(__FILE__) . '/../../contrib/php-xinha.php'));
+    if($passed_data = xinha_read_passed_data())
+    {
+      extract($passed_data);      
+    }
+
+    // Old deprecated backend config data passing
+    //  not described because you shouldn't use it.
+    //------------------------------------------------------------------------    
+    $hash = '';
+    foreach(explode(',', 'dir,include,exclude,dirinclude,direxclude') as $k)
+    {
+      if(isset($_REQUEST[$k]))
+      {
+        if(get_magic_quotes_gpc())
+        {
+          $_REQUEST[$k] = stripslashes($_REQUEST[$k]);
+        }
+        $hash .= $k . '=' . $_REQUEST[$k];
+        $$k = $_REQUEST[$k];
+      }
+    }
+
+    if($hash)
+    {
+      session_start();
+      if(!isset($_SESSION[sha1($hash)]))
+      {
+        ?>
+        [ ];
+        <?php
+        exit;
+      }
+    }
+    //------------------------------------------------------------------------
+
+
+    function scan($dir, $durl = '')
+    {
+      global $include, $exclude, $dirinclude, $direxclude;
+      static $seen = array();
+
+      $files = array();
+
+      $dir = realpath($dir);
+      if(isset($seen[$dir]))
+      {
+        return $files;
+      }
+      $seen[$dir] = TRUE;
+      $dh = @opendir($dir);
+
+
+      while($dh && ($file = readdir($dh)))
+      {
+        if($file !== '.' && $file !== '..')
+        {
+          $path = realpath($dir . '/' . $file);
+          $url  = $durl . '/' . $file;
+
+          if(($dirinclude && !preg_match($dirinclude, $url)) || ($direxclude && preg_match($direxclude, $url))) continue;
+          if(is_dir($path))
+          {
+            if($subdir = scan($path, $url))
+            {
+              $files[] = array('url'=>$url, 'children'=>$subdir);
+            }
+          }
+          elseif(is_file($path))
+          {
+            if(($include && !preg_match($include, $url)) || ($exclude && preg_match($exclude, $url))) continue;
+            $files[] = array('url'=>$url);
+          }
+
+        }
+      }
+      @closedir($dh);
+      return dirsort($files);
+    }
+
+    function dirsort($files)
+    {
+      usort($files, 'dircomp');
+      return $files;
+    }
+
+    function dircomp($a, $b)
+    {
+      if(is_array($a)) $a = array_shift($a);
+      if(is_array($b)) $b = array_shift($b);
+      return strcmp(strtolower($a), strtolower($b));
+    }
+   
+    echo xinha_to_js(scan($dir));
+?>

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/ListType.css
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/ListType.css?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/ListType.css (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/ListType.css Fri Sep 21 03:36:30 2007
@@ -0,0 +1,43 @@
+.ListType { }
+.ListType a {
+  display:block;
+  float:left;
+  margin:2px 0 0 5px;
+  padding:0;
+  width:50px;
+  height:40px;
+  border:1px solid #9c96a5;
+}
+.ListType a:hover {
+  border:1px solid #ffd760;
+}
+.ListType a.active {
+  border:1px solid #000084;
+}
+.ListType a.circle {
+  background:url(img/circle.png);
+}
+.ListType a.disc {
+  background:url(img/disc.png);
+}
+.ListType a.square {
+  background:url(img/square.png);
+}
+.ListType a.decimal {
+  background:url(img/decimal.png);
+}
+.ListType a.lower-alpha {
+  background:url(img/lower-alpha.png);
+}
+.ListType a.upper-alpha {
+  background:url(img/upper-alpha.png);
+}
+.ListType a.lower-roman {
+  background:url(img/lower-roman.png);
+}
+.ListType a.upper-roman {
+  background:url(img/upper-roman.png);
+}
+.ListType a.none {
+  background:url(img/none.png);
+}

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/circle.png
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/circle.png?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/circle.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/decimal.png
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/decimal.png?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/decimal.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/disc.png
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/disc.png?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/disc.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/lower-alpha.png
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/lower-alpha.png?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/lower-alpha.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/lower-roman.png
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/lower-roman.png?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/lower-roman.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/none.png
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/none.png?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/none.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/square.png
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/square.png?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/square.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/upper-alpha.png
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/upper-alpha.png?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/upper-alpha.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/upper-roman.png
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/upper-roman.png?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/img/upper-roman.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/de.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/de.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/de.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/de.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,12 @@
+// I18N constants
+// LANG: "de", ENCODING: UTF-8
+// translated: Raimund Meyer [email protected]
+{
+  "Decimal numbers": "Zahlen",
+  "Lower roman numbers": "Römisch klein",
+  "Upper roman numbers": "Römisch groß",
+  "Lower latin letters": "Zeichen klein",
+  "Upper latin letters": "Zeichen groß",
+  "Lower greek letters": "Griechisch",
+  "Choose list style type (for ordered lists)": "Wählen Sie einen Typ für die Nummerierung aus"
+};

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/fr.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/fr.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/fr.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/fr.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,11 @@
+// I18N constants
+// LANG: "fr", ENCODING: UTF-8
+{
+  "Decimal numbers": "Nombres décimaux",
+  "Lower roman numbers": "Nombres romains minuscule",
+  "Upper roman numbers": "Nombres romains majuscule",
+  "Lower latin letters": "Lettres latines minuscule",
+  "Upper latin letters": "Lettres latines majuscule",
+  "Lower greek letters": "Lettres grecques minuscule",
+  "Choose list style type (for ordered lists)": "Choisissez le style de liste (pour les listes ordonnées)"
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/ja.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/ja.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/ja.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/ja.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,11 @@
+// I18N constants
+// LANG: "ja", ENCODING: UTF-8
+{
+  "Decimal numbers": "10進数",
+  "Lower roman numbers": "ローマ数字(小文字)",
+  "Upper roman numbers": "ローマ数字(大文字)",
+  "Lower latin letters": "アルファベット(小文字)",
+  "Upper latin letters": "アルファベット(大文字)",
+  "Lower greek letters": "ギリシャ文字(小文字)",
+  "Choose list style type (for ordered lists)": "リスト形式の選択(順序付けリスト用)"
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/nb.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/nb.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/nb.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/nb.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,12 @@
+// I18N constants
+// LANG: "nb", ENCODING: UTF-8
+// translated: Kim Steinhaug, http://www.steinhaug.com/, [email protected]
+{
+  "Decimal numbers": "Desimaltall",
+  "Lower roman numbers": "Lower roman numbers",
+  "Upper roman numbers": "Upper roman numbers",
+  "Lower latin letters": "Lower latin letters",
+  "Upper latin letters": "Upper latin letters",
+  "Lower greek letters": "Lower greek letters",
+  "Choose list style type (for ordered lists)": "Velg listetype (for nummererte lister)"
+};

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/nl.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/nl.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/nl.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/nl.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,12 @@
+// I18N constants
+// LANG: "nl", ENCODING: UTF-8
+// Author: Mihai Bazon, http://dynarch.com/mishoo
+{
+  "Decimal numbers": "Decimale nummers",
+  "Lower roman numbers": "Romeinse nummers klein",
+  "Upper roman numbers": "Romeinse nummers groot",
+  "Lower latin letters": "Latijnse letters klein",
+  "Upper latin letters": "Latijnse letters groot",
+  "Lower greek letters": "Griekse letters",
+  "Choose list style type (for ordered lists)": "Kies stijl type (voor ordered lists)"
+};

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/pl.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/pl.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/pl.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/pl.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,12 @@
+// I18N constants
+// LANG: "pl", ENCODING: UTF-8
+// translated: Krzysztof Kotowicz, [email protected], http://www.eskot.krakow.pl/portfolio
+{
+  "Decimal numbers": "Cyfry arabskie",
+  "Lower roman numbers": "Małe rzymskie",
+  "Upper roman numbers": "Duże rzymskie",
+  "Lower latin letters": "Małe litery",
+  "Upper latin letters": "Duże litery",
+  "Lower greek letters": "Małe litery greckie",
+  "Choose list style type (for ordered lists)": "Wybierz typ listy numerowanej"
+};

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/ru.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/ru.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/ru.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/ru.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,12 @@
+// I18N constants
+// LANG: "ru", ENCODING: UTF-8
+// Author: Andrei Blagorazumov, [email protected]
+{
+  "Decimal numbers": "Десятичные числа",
+  "Lower roman numbers": "Строчные романские числа",
+  "Upper roman numbers": "Заглавные романские числа",
+  "Lower latin letters": "Строчные латинские символы",
+  "Upper latin letters": "Заглавные латинские символы",
+  "Lower greek letters": "Строчные греческие символы",
+  "Choose list style type (for ordered lists)": "Выберите стиль списков (для упорядоченных списков)"
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/sv.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/sv.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/sv.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/lang/sv.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,12 @@
+// I18N constants
+// LANG: "sv" (Swedish), ENCODING: UTF-8
+// translated: Erik Dalén, <[email protected]>
+{
+  "Decimal numbers": "Desimaltal",
+  "Lower roman numbers": "Små romerska siffror",
+  "Upper roman numbers": "Stora romerska siffror",
+  "Lower latin letters": "Små latinska bokstäver",
+  "Upper latin letters": "Stora latinska bokstäver",
+  "Lower greek letters": "Små grekiska bokstäver",
+  "Choose list style type (for ordered lists)": "Välj listtyp (för numrerade listor)"
+};

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/list-type.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/list-type.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/list-type.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/ListType/list-type.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,137 @@
+HTMLArea.loadStyle("ListType.css","ListType");
+function ListType(_1){
+this.editor=_1;
+var _2=_1.config;
+var _3=this;
+if(_2.ListType.mode=="toolbar"){
+var _4={};
+_4[HTMLArea._lc("Decimal numbers","ListType")]="decimal";
+_4[HTMLArea._lc("Lower roman numbers","ListType")]="lower-roman";
+_4[HTMLArea._lc("Upper roman numbers","ListType")]="upper-roman";
+_4[HTMLArea._lc("Lower latin letters","ListType")]="lower-alpha";
+_4[HTMLArea._lc("Upper latin letters","ListType")]="upper-alpha";
+if(!HTMLArea.is_ie){
+_4[HTMLArea._lc("Lower greek letters","ListType")]="lower-greek";
+}
+var _5={id:"listtype",tooltip:HTMLArea._lc("Choose list style type (for ordered lists)","ListType"),options:_4,action:function(_6){
+_3.onSelect(_6,this);
+},refresh:function(_7){
+_3.updateValue(_7,this);
+},context:"ol"};
+_2.registerDropdown(_5);
+_2.addToolbarElement("listtype",["insertorderedlist","orderedlist"],1);
+}else{
+_1._ListType=_1.addPanel("right");
+HTMLArea.freeLater(_1,"_ListType");
+HTMLArea.addClass(_1._ListType,"ListType");
+HTMLArea.addClass(_1._ListType.parentNode,"dialog");
+_1.notifyOn("modechange",function(e,_9){
+if(_9.mode=="text"){
+_1.hidePanel(_1._ListType);
+}
+});
+var _a=["disc","circle","square","none"];
+var _b=["decimal","lower-alpha","upper-alpha","lower-roman","upper-roman","none"];
+var _c=document.createElement("div");
+_c.style.height="90px";
+var _d=document.createElement("div");
+_d.id="LTdivUL";
+_d.style.display="none";
+for(var i=0;i<_a.length;i++){
+_d.appendChild(this.createImage(_a[i]));
+}
+_c.appendChild(_d);
+var _d=document.createElement("div");
+_d.id="LTdivOL";
+_d.style.display="none";
+for(var i=0;i<_b.length;i++){
+_d.appendChild(this.createImage(_b[i]));
+}
+_c.appendChild(_d);
+_1._ListType.appendChild(_c);
+_1.hidePanel(_1._ListType);
+}
+}
+HTMLArea.Config.prototype.ListType={"mode":"toolbar"};
+ListType._pluginInfo={name:"ListType",version:"2.1",developer:"Laurent Vilday",developer_url:"http://www.mokhet.com/",c_owner:"Xinha community",sponsor:"",sponsor_url:"",license:"Creative Commons Attribution-ShareAlike License"};
+ListType.prototype.onSelect=function(_f,_10){
+var _11=_f._toolbarObjects[_10.id].element;
+var _12=_f.getParentElement();
+while(!/^ol$/i.test(_12.tagName)){
+_12=_12.parentNode;
+}
+_12.style.listStyleType=_11.value;
+};
+ListType.prototype.updateValue=function(_13,_14){
+var _15=_13._toolbarObjects[_14.id].element;
+var _16=_13.getParentElement();
+while(_16&&!/^ol$/i.test(_16.tagName)){
+_16=_16.parentNode;
+}
+if(!_16){
+_15.selectedIndex=0;
+return;
+}
+var _17=_16.style.listStyleType;
+if(!_17){
+_15.selectedIndex=0;
+}else{
+for(var i=_15.firstChild;i;i=i.nextSibling){
+i.selected=(_17.indexOf(i.value)!=-1);
+}
+}
+};
+ListType.prototype.onUpdateToolbar=function(){
+if(this.editor.config.ListType.mode=="toolbar"){
+return;
+}
+var _19=this.editor.getParentElement();
+while(_19&&!/^[o|u]l$/i.test(_19.tagName)){
+_19=_19.parentNode;
+}
+if(_19&&/^[o|u]l$/i.test(_19.tagName)){
+this.showPanel(_19);
+}else{
+if(this.editor._ListType.style.display!="none"){
+this.editor.hidePanel(this.editor._ListType);
+}
+}
+};
+ListType.prototype.createImage=function(_1a){
+var _1b=this;
+var _1c=this.editor;
+var a=document.createElement("a");
+a.href="javascript:void(0)";
+HTMLArea._addClass(a,_1a);
+HTMLArea._addEvent(a,"click",function(){
+var _1e=_1c._ListType.currentListTypeParent;
+_1e.style.listStyleType=_1a;
+_1b.showActive(_1e);
+return false;
+});
+return a;
+};
+ListType.prototype.showActive=function(_1f){
+var _20=document.getElementById((_1f.tagName.toLowerCase()=="ul")?"LTdivUL":"LTdivOL");
+document.getElementById("LTdivUL").style.display="none";
+document.getElementById("LTdivOL").style.display="none";
+_20.style.display="block";
+var _21=_1f.style.listStyleType;
+if(""==_21){
+_21=(_1f.tagName.toLowerCase()=="ul")?"disc":"decimal";
+}
+for(var i=0;i<_20.childNodes.length;i++){
+var elt=_20.childNodes[i];
+if(HTMLArea._hasClass(elt,_21)){
+HTMLArea._addClass(elt,"active");
+}else{
+HTMLArea._removeClass(elt,"active");
+}
+}
+};
+ListType.prototype.showPanel=function(_24){
+this.editor._ListType.currentListTypeParent=_24;
+this.showActive(_24);
+this.editor.showPanel(this.editor._ListType);
+};
+

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/img/note.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/img/note.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/img/note.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/lang/de.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/lang/de.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/lang/de.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/lang/de.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,21 @@
+// I18N constants
+// LANG: "de", ENCODING: UTF-8 | ISO-8859-1
+// Sponsored by http://www.systemconcept.de
+// Author: Holger Hees, <[email protected]>
+// (c) systemconcept.de 2004
+// Distributed under the same terms as HTMLArea itself.
+// This notice MUST stay intact for use (see license.txt).
+{
+  "Insert GUIDO Music Notation": "Einfügung einer GUIDO Musik-Tonfolge",
+  "Guido code": "Guido code",
+  "Options": "Einstellungen",
+  "Format": "Format",
+  "Image in applet": "Bild im Applet",
+  "Zoom": "Zoom",
+  "MIDI File": "MIDI Datei",
+  "Image Preview": "Bild Voransicht",
+  "Source Code": "Quell-Code",
+  "Preview": "Voransicht",
+  "Add MIDI link to allow students to hear the music": "MIDI-Link hinzufügen um Studenten das hören der Musik zu ermöglichen",
+  "Add GUIDO Code in a textbox on the page": "GUIDO Code in einer Textbox auf der Seite anzeigen"
+};

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/lang/fr.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/lang/fr.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/lang/fr.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/lang/fr.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,16 @@
+// I18N constants
+// LANG: "fr", ENCODING: UTF-8
+{
+  "Insert GUIDO Music Notation": "Insérer une partition musicale GUIDO",
+  "Guido code": "Code Guido",
+  "Options": "Options",
+  "Format": "Format",
+  "Image in applet": "Image dans une applet",
+  "Zoom": "Zoom",
+  "MIDI File": "Fichier MIDI",
+  "Image Preview": "Aperçu de l'image",
+  "Source Code": "Code source",
+  "Preview": "Aperçu ",
+  "Add MIDI link to allow students to hear the music": "Ajouter un lien MIDI pour permettre aux étudiants d'écouter la partition",
+  "Add GUIDO Code in a textbox on the page": "Ajouter le code source GUIDO dans un cadre"
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/lang/ja.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/lang/ja.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/lang/ja.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/lang/ja.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,18 @@
+// I18N constants
+// LANG: "ja", ENCODING: UTF-8
+// This string is for auto detection of multi-encoding editor : 国際化文字検出用文字列
+{
+  "Insert GUIDO Music Notation": "GUIDO Music Notationの挿入",
+  "Guido code": "GUIDOコード",
+  "Options": "オプション",
+  "Format": "フォーマット",
+  "Image in applet": "アプレット画像",
+  "Zoom": "拡大率:",
+  "MIDI File": "MIDIファイル",
+  "Image Preview": "画像プレビュー",
+  "Source Code": "ソースコード",
+  "Preview": "表示",
+  "Add MIDI link to allow students to hear the music": "MIDIへのリンクを追加し、楽曲を聴かせてもよい",
+  "Add GUIDO Code in a textbox on the page": "ページ内のテキストボックスにGUIDOコードを追加",
+  "With Mozilla, the applet will not be visible in editor, but only in Web page after submitting.": "Mozillaではエディタ内にアプレットは表示されませんが、送信後のWebページ内では有効です。"
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/lang/nb.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/lang/nb.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/lang/nb.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/lang/nb.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,17 @@
+// I18N constants
+// LANG: "nb", ENCODING: UTF-8
+// translated: Kim Steinhaug, http://www.steinhaug.com/, [email protected]
+{
+  "Insert GUIDO Music Notation": "Sett inn GUIDO-noter",
+  "Guido code": "GUIDO-kode",
+  "Options": "Muligheter",
+  "Format": "Format",
+  "Image in applet": "Bilde i applet",
+  "Zoom": "Forstørr",
+  "MIDI File": "MIDIfil",
+  "Image Preview": "Bilde forhåndsvisning",
+  "Source Code": "Kildekode",
+  "Preview": "Preview",
+  "Add MIDI link to allow students to hear the music": "Legg til MIDI-link for at studenter kan høre musikken",
+  "Add GUIDO Code in a textbox on the page": "Sett inn GUIDO-kode i et tekstfelt på siden"
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/note-server.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/note-server.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/note-server.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/note-server.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,90 @@
+function NoteServer(_1){
+this.editor=_1;
+var _2=_1.config;
+var _3=this;
+_2.registerButton({id:"insertscore",tooltip:this._lc("Insert GUIDO Music Notation"),image:_1.imgURL("note.gif","NoteServer"),textMode:false,action:function(_4){
+_3.buttonPress(_4);
+}});
+_2.addToolbarElement("insertscore","insertimage",1);
+}
+NoteServer._pluginInfo={name:"NoteServer",version:"1.1",developer:"Richard Christophe",developer_url:"http://piano-go.chez.tiscali.fr/guido.html",c_owner:"Richard Christophe",sponsor:"",sponsor_url:"",license:"htmlArea"};
+NoteServer.prototype._lc=function(_5){
+return HTMLArea._lc(_5,"NoteServer");
+};
+NoteServer.prototype.buttonPress=function(_6){
+_6._popupDialog("plugin://NoteServer/codenote",function(_7){
+if(!_7){
+return false;
+}else{
+IncludeGuido(_6,_7);
+}
+},null);
+};
+var noteserveraddress="clef.cs.ubc.ca";
+var htmlbase="/salieri/nview";
+var versionstring="";
+function GetGIFURL(_8,_9,_a){
+_8=escape(_8);
+_8=_8.replace(/\//g,"%2F");
+if(!_9){
+_9="1.0";
+}
+if(!_a){
+_a="1";
+}
+var _b="http://"+noteserveraddress+"/scripts/salieri"+versionstring+"/gifserv.pl?"+"pagewidth=21"+"&pageheight=29.7"+"&zoomfactor="+_9+"&pagesizeadjust=yes"+"&outputformat=gif87"+"&pagenum="+_a+"&gmndata="+_8;
+return _b;
+}
+function GetMIDIURL(_c){
+_c=escape(_c);
+_c=_c.replace(/\//g,"%2F");
+var _d="http://"+noteserveraddress+"/scripts/salieri"+versionstring+"/midserv.pl?"+"gmndata="+_c;
+return _d;
+}
+function GetAPPLETURL(_e,_f){
+_e=escape(_e);
+_e=_e.replace(/\//g,"%2F");
+var _10="<applet "+"code=\"NoteServerApplet\" "+"codebase=\"http://"+noteserveraddress+htmlbase+"/java\" "+" width=700 height=300>"+"<param name=server value=\""+noteserveraddress+"\">"+"<param name=serverVersion value=\""+versionstring+"\">"+"<param name=zoomFactor value=\""+_f+"\">"+"<param name=pageWidth value=\"21\">"+"<param name=pageHeight value=\"29.7\">"+"<param name=gmn value=\""+_e+"\">"+"</applet>";
+return _10;
+}
+function IncludeGuido(_11,_12){
+if(!_12["f_zoom"]){
+zoom="";
+}
+var _13=GetGIFURL(_12["f_code"],_12["f_zoom"],"");
+var _14=GetMIDIURL(_12["f_code"]);
+var _15="<br>";
+if(_12["f_applet"]==false){
+if(((navigator.userAgent.toLowerCase().indexOf("msie")!=-1)&&(navigator.userAgent.toLowerCase().indexOf("opera")==-1))){
+_11.focusEditor();
+_11.insertHTML("<img src="+_13+">");
+}else{
+img=new Image();
+img.src=_13;
+var doc=_11._doc;
+var sel=_11._getSelection();
+var _18=_11._createRange(sel);
+_11._doc.execCommand("insertimage",false,img.src);
+}
+}else{
+var _19=GetAPPLETURL(_12["f_code"],_12["f_zoom"]);
+_15=_15+_19+"<br>";
+}
+if(_12["f_affcode"]){
+_15=_15+HTMLArea._lc("GUIDO Code","NoteServer")+" : "+_12["f_code"]+"<br>";
+}
+if(_12["f_midi"]){
+_15=_15+"<a href="+_14+">"+HTMLArea._lc("MIDI File","NoteServer")+"</a> <br>";
+}
+_11.focusEditor();
+_11.insertHTML(_15);
+}
+function IncludeGuidoStringAsApplet(_1a,_1b,_1c){
+_1b=escape(_1b);
+_1b=_1b.replace(/\//g,"%2F");
+var _1d="<applet "+"codebase=\"http://"+noteserveraddress+htmlbase+"/java\"\n"+"code=\"NoteServerApplet\" width=480 height=230>"+"<PARAM NAME=server VALUE='"+noteserveraddress+"'>"+"<PARAM NAME=serverVersion VALUE='"+versionstring+"'>"+"<PARAM NAME=zoomFactor VALUE='"+_1c+"'>"+"<param name=pageWidth value=\"21\">"+"<param name=pageHeight value=\"29.7\">"+"<PARAM NAME=gmn VALUE='"+_1b+"'>"+"</applet>";
+alert(_1d);
+_1a.focusEditor();
+_1a.insertHTML(_1d);
+}
+

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/popups/codenote.html
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/popups/codenote.html?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/popups/codenote.html (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/NoteServer/popups/codenote.html Fri Sep 21 03:36:30 2007
@@ -0,0 +1,162 @@
+<html>
+
+<head>
+
+<title>Insert GUIDO Music Notation</title>
+<link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
+<script type="text/javascript"  src="../note-server.js"></script>
+<script type="text/javascript" src="../../../popups/popup.js"></script>
+
+<script type="text/javascript">
+
+window.resizeTo(500, 200);
+
+NoteServer = window.opener.NoteServer;
+
+var editor = null;
+function Init() {
+  __dlg_translate('NoteServer');
+  __dlg_init();
+
+//   var param = window.dialogArguments;
+//  if (param) {
+//    document.getElementById("f_midi").value = param["f_midi"];
+//    document.getElementById("f_code").value = param["f_code"];
+//    document.getElementById("f_zoom").value = param["f_zoom"];
+//    document.getElementById("f_affcode").value = param["f_affcode"];
+//    document.getElementById("f_applet").value = param["f_applet"];
+//  }
+//  editor = param.editor;
+  document.getElementById("f_code").focus();
+//  document.getElementById("f_code").select();
+}
+
+function onOK() {
+  var f_code = document.getElementById("f_code");
+  if (!f_code.value) {
+    alert("You have to enter GUIDO code");
+    f_code.focus();
+    return false;
+}
+
+  // pass data back to the calling window
+
+  var param = {};
+  param["f_code"] = f_code.value;
+  var f_zoom = document.getElementById("f_zoom");
+  var z = "1.0";
+  if (f_zoom.value == "1.0" || f_zoom.value == "100%") z = 1.0;
+  else if (f_zoom.value == "0.8" || f_zoom.value == "80%") z = 0.8;
+  else if (f_zoom.value == "1.2" || f_zoom.value == "120%") z = 1.2;
+  else if (f_zoom.value == "1.5" || f_zoom.value == "150%") z = 1.5;
+
+  param["f_zoom"] = z;
+
+  param["f_midi"] = document.getElementById("f_midi").checked;
+
+  param["f_affcode"] = document.getElementById("f_affcode").checked;
+  param["f_applet"] = document.getElementById("f_applet").checked;
+
+  __dlg_close(param);
+  return false;
+}
+
+function onCancel() {
+  __dlg_close(null);
+  return false;
+
+}
+
+
+function message(){
+if (document.getElementById("f_applet").checked)
+  if (!((navigator.userAgent.toLowerCase().indexOf("msie") != -1)
+    && (navigator.userAgent.toLowerCase().indexOf("opera") == -1))) {
+    alert(HTMLArea._lc("With Mozilla, the applet will not be visible in editor, but only in Web page after submitting.", 'NoteServer'));
+  }
+}
+
+function onPreview() {
+
+  var f_code = document.getElementById("f_code");
+  var f_zoom = document.getElementById("f_zoom");
+
+var z = "1.0";
+if (f_zoom.value == "1.0" || f_zoom.value == "100%") z = 1.0;
+else if (f_zoom.value == "0.8" || f_zoom.value == "80%") z = 0.8;
+else if (f_zoom.value == "1.2" || f_zoom.value == "120%") z = 1.2;
+else if (f_zoom.value == "1.5" || f_zoom.value == "150%") z = 1.5;
+
+  var url = GetGIFURL(f_code.value,z,"");
+  if (!f_code.value) {
+    alert("You have to enter GUIDO code");
+    f_code.focus();
+    return false;
+ }
+
+
+  window.ipreview.location.replace(url);
+
+  return false;
+}
+
+</script>
+</head>
+
+<body class="Dialog" onload="Init()">
+<div class="title">Insert GUIDO Music Notation</div>
+
+<span>Guido code</span> :
+  <br><textarea rows="7" id="f_code" cols="55"></textarea><br>
+
+<div class="space"></div>
+<fieldset style="float: left; margin-left: 5px;">
+<legend>Options</legend>
+  <input type="checkbox" id="f_midi" value="ON"> <span>Add MIDI link to allow students to hear the music</span>
+  <div class="space"></div>
+  <input type="checkbox" id="f_affcode" value="ON"> <span>Add GUIDO Code in a textbox on the page</span>
+  <div class="space"></div>
+</fieldset>
+
+<fieldset style="float: right; margin-left: 5px;">
+<legend>Format</legend>
+  <input type="checkbox" id="f_applet" value="ON" onclick="message();" > <span>Image in applet</span>
+  <div class="space"></div>
+  <span>Zoom</span> :
+  <select size="1" id="f_zoom" title="Zoom :">
+    <option value="0.8">80%</option>
+    <option selected="1.0">100%</option>
+    <option value="1.2">120%</option>
+    <option value="1.5">150%</option>
+  </select>
+  <div class="space"></div>
+</fieldset>
+
+<br clear="all" />
+
+<table width="100%" style="margin-bottom: 0.2em">
+ <tr>
+  <td valign="bottom">
+    <span>Image Preview</span>:<br />
+    <iframe name="ipreview" id="ipreview" frameborder="0" style="border : 1px solid gray;" height="200" width="350" src=""></iframe>
+  </td>
+
+  <td valign="bottom" style="text-align: right">
+    <button type="button" name="preview" onclick="return onPreview();"
+      title="Preview the image in a new window">Preview</button><br>
+    <button type="button" name="ok" onclick="return onOK();"><span>OK</span></button><br>
+    <button type="button" name="cancel" onclick="return onCancel();"><span>Cancel</span></button>
+  </td>
+ </tr>
+ <tr>
+  <td colspan="2">
+   <p>Sample Guido Codes:</p>
+   <p><a href="http://piano-go.chez.tiscali.fr/rachmaninoff.gmn" target="_blank">Code Sample 1</a> or type [ do re mi fa sol la si ] | <a href="http://www.informatik.tu-darmstadt.de/AFS/SALIERI/guido/demos.html" target="_blank">Code Sample 2</a></p>
+   <p>Resources: </p>
+   <p>The Guido Specification (<a href="http://piano-go.chez.tiscali.fr/GUIDO-Music%20Notation%20Format.pdf" target="_blank">PDF)</a> | <a href="http://www.salieri.org/guido/doc.html" target="_blank">(HTML)</a></p>
+   <p><a href="http://www.salieri.org/guido/" target="_blank">GUIDO Music Notation Format Site</a> | <a href="http://www.noteserver.org/" target="_blank">Guido Note Server</a> | <a href="http://sourceforge.net/projects/guidolib/" target="_blank">SourceForge Homepage</a></p>
+  </td>
+ </tr>
+</table>
+</body>
+</html>
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/img/ed_paste_text.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/img/ed_paste_text.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/img/ed_paste_text.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/de.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/de.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/de.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/de.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,5 @@
+// I18N constants
+// LANG: "de", ENCODING: UTF-8
+{
+  "Paste as Plain Text": "unformatierten Text einfügen"
+};

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/fr.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/fr.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/fr.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/fr.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,5 @@
+// I18N constants
+// LANG: "fr", ENCODING: UTF-8
+{
+  "Paste as Plain Text": "Copier comme texte pur"
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/ja.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/ja.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/ja.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/ja.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,5 @@
+// I18N constants
+// LANG: "ja", ENCODING: UTF-8
+{
+  "Paste as Plain Text": "プレーンテキストとして貼り付け"
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/nb.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/nb.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/nb.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/nb.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,6 @@
+// I18N constants
+// LANG: "nb", ENCODING: UTF-8
+// translated: Kim Steinhaug, http://www.steinhaug.com/, [email protected]
+{
+  "Paste as Plain Text": "Lim inn som ren tekst"
+};

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/pl.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/pl.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/pl.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/lang/pl.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,6 @@
+// I18N constants
+// LANG: "pl", ENCODING: UTF-8
+// translated: Krzysztof Kotowicz, http://www.eskot.krakow.pl/portfolio/, [email protected]
+{
+  "Paste as Plain Text": "Wklej jako czysty tekst"
+};

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/paste-text.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/paste-text.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/paste-text.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/paste-text.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,75 @@
+// Paste Plain Text plugin for Xinha
+
+// Distributed under the same terms as Xinha itself.
+// This notice MUST stay intact for use (see license.txt).
+
+function PasteText(editor) {
+	this.editor = editor;
+	var cfg = editor.config;
+	var self = this;
+        
+	cfg.registerButton({
+                id       : "pastetext",
+                tooltip  : this._lc("Paste as Plain Text"),
+                image    : editor.imgURL("ed_paste_text.gif", "PasteText"),
+                textMode : false,
+                action   : function(editor) {
+                             self.buttonPress(editor);
+                           }
+            });
+
+	cfg.addToolbarElement("pastetext", ["paste", "killword"], 1);
+}
+
+PasteText._pluginInfo = {
+	name          : "PasteText",
+	version       : "1.2",
+	developer     : "Michael Harris",
+	developer_url : "http://www.jonesadvisorygroup.com",
+	c_owner       : "Jones Advisory Group",
+	sponsor       : "Jones International University",
+	sponsor_url   : "http://www.jonesinternational.edu",
+	license       : "htmlArea"
+};
+
+PasteText.prototype._lc = function(string) {
+    return Xinha._lc(string, 'PasteText');
+};
+
+Xinha.Config.prototype.PasteText =
+{
+	showParagraphOption : true,
+	newParagraphDefault :true
+}
+
+PasteText.prototype.buttonPress = function(editor) {
+
+	var editor = this.editor;
+	var outparam = editor.config.PasteText; 
+	var action = function( ret ) {
+		var html = ret.text;
+		var insertParagraphs = ret.insertParagraphs;
+		html = html.replace(/</g, "&lt;");
+  		html = html.replace(/>/g, "&gt;");
+  		if ( ret.insertParagraphs)
+  		{
+  			html = html.replace(/\t/g,"&nbsp;&nbsp;&nbsp;&nbsp;");
+			html = html.replace(/\n/g,"</p><p>");
+			html="<p>" + html + "</p>";
+			if (Xinha.is_ie)
+			{
+				editor.insertHTML(html);
+			}
+			else
+			{
+				editor.execCommand("inserthtml",false,html);
+			}
+		}
+		else
+		{
+			html = html.replace(/\n/g,"<br />");
+			editor.insertHTML(html);
+		}
+	}
+	Dialog( _editor_url+ "plugins/PasteText/popups/paste_text.html", action, outparam);
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/popups/paste_text.html
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/popups/paste_text.html?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/popups/paste_text.html (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/PasteText/popups/paste_text.html Fri Sep 21 03:36:30 2007
@@ -0,0 +1,48 @@
+<!DOCTYPE html
+     PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+  <title>Paste Text</title>
+  <link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
+  <script type="text/javascript" src="../../../popups/popup.js"></script>
+<script type="text/javascript">
+
+function init() {
+
+  __dlg_translate("PasteText");
+  __dlg_init(null,{width:600,height:480});
+
+  var param = window.dialogArguments;
+  document.getElementById("paragraphOption").style.display = (param.showParagraphOption) ? '' : 'none';
+   document.getElementById("insertParagraphs").checked = param.newParagraphDefault;
+  document.getElementById("inputArea").focus();
+}
+
+function onCancel() {
+  __dlg_close( null );
+  return false;
+}
+
+function onOK() {
+  var ret = {};
+  ret.text = document.getElementById("inputArea").value;
+  ret.insertParagraphs = document.getElementById("insertParagraphs").checked;
+  __dlg_close( ret );
+}
+window.onload = init;
+</script>
+</head>
+
+<body class="dialog">
+<div class="title">Paste as Plain Text</div>
+<textarea name="inputArea" id="inputArea" cols=22 rows=5 style="width: 100%; height: 315px; margin-top: 8px; margin-bottom: 4px; font-family: monospace; font-size: 11px;"></textarea>
+<div id="buttons">
+<label for="insertParagraphs" style="float:left;display:none" id="paragraphOption">
+<input type="checkbox" id="insertParagraphs" /> Insert text in new paragraph 
+</label>
+    <button type="button" name="ok" onclick="return onOK();">OK</button>
+    <button type="button" name="cancel" onclick="return onCancel();">Cancel</button>
+</div>
+</body>
+</html>
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/img/ed_quicktag.gif
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/img/ed_quicktag.gif?rev=578051&view=auto
==============================================================================
Binary file - no diff available.

Propchange: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/img/ed_quicktag.gif
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/de.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/de.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/de.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/de.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,16 @@
+// I18N constants
+// LANG: "de", ENCODING: UTF-8
+{ 
+  "Quick Tag Editor": "Quick TAG Editor",
+  "Enter the TAG you want to insert": "Enter the TAG you want to insert",
+  "You have to select some text": "You have to select some text",
+  "There are some unclosed quote": "There are some unclosed quote",
+  "This attribute already exists in the TAG": "This attribute already exists in the TAG",
+  "No CSS class avaiable": "No CSS classes avaiable",
+  "OPTIONS": "OPTIONS",
+  "ATTRIBUTES": "ATTRIBUTES",
+  "TAGs": "TAGs",
+  "Colors": "Colors",
+  "Ok": "Ok",
+  "Cancel": "Cancel"
+};

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/fr.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/fr.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/fr.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/fr.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,16 @@
+// I18N constants
+// LANG: "fr", ENCODING: UTF-8
+{ 
+  "Quick Tag Editor": "Editeur rapide de balise",
+  "Enter the TAG you want to insert": "Entrez la balise que vous voulez insérer",
+  "You have to select some text": "Vous devez sélectionner du texte",
+  "There are some unclosed quote": "Il y a des apostrophes mal fermées",
+  "This attribute already exists in the TAG": "Cet attribute existe déjà sur cette balise",
+  "No CSS class avaiable": "Pas de classe CSS accessible",
+  "OPTIONS": "OPTIONS",
+  "ATTRIBUTES": "ATTRIBUTS",
+  "TAGs": "Balises",
+  "Colors": "Couleurs",
+  "Ok": "OK",
+  "Cancel": "Annuler"
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/ja.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/ja.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/ja.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/ja.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,16 @@
+// I18N constants
+// LANG: "ja", ENCODING: UTF-8
+{
+  "Quick Tag Editor": "クイックタグエディタ",
+  "Enter the TAG you want to insert": "挿入したいタグを入力",
+  "You have to select some text": "テキストを選択しなければなりません",
+  "There are some unclosed quote": "閉じていない引用符があります",
+  "This attribute already exists in the TAG": "タグにはすでに同じ属性があります",
+  "No CSS class avaiable": "CSSクラスがありません",
+  "OPTIONS": "選択肢",
+  "ATTRIBUTES": "属性",
+  "TAGs": "タグ",
+  "Colors": "色",
+  "Ok": "OK",
+  "Cancel": "中止"
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/nb.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/nb.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/nb.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/nb.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,17 @@
+// I18N constants
+// LANG: "nb", ENCODING: UTF-8
+// translated: Kim Steinhaug, http://www.steinhaug.com/, [email protected]
+{ 
+  "Quick Tag Editor": "Kjapp TAGG-Editor",
+  "Enter the TAG you want to insert": "Skriv inn taggen du vil ønsker å sette inn",
+  "You have to select some text": "Du må velge noe tekst",
+  "There are some unclosed quote": "Det mangler et hermetegn",
+  "This attribute already exists in the TAG": "Denne attributten eksisterer allerede i taggen",
+  "No CSS class avaiable": "Ingen CSS klasse tilgjengelig",
+  "OPTIONS": "EGENSKAPER",
+  "ATTRIBUTES": "ATTRIBUTTER",
+  "TAGs": "TAGGer",
+  "Colors": "Farger",
+  "Ok": "OK",
+  "Cancel": "Avbryt"
+};
\ No newline at end of file

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/pl.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/pl.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/pl.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/pl.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,17 @@
+// I18N constants
+// LANG: "pl", ENCODING: UTF-8
+// translated: Krzysztof Kotowicz, http://www.eskot.krakow.pl/portfolio/, [email protected]
+{ 
+  "Quick Tag Editor": "Edytor Quick Tag",
+  "Enter the TAG you want to insert": "Podaj TAG, który chcesz wstawić",
+  "You have to select some text": "Musisz zaznaczyć tekst.",
+  "There are some unclosed quote": "Są jakieś niezamknięte cudzysłowia",
+  "This attribute already exists in the TAG": "TAG posiada już ten atrybut",
+  "No CSS class avaiable": "Brak dostępnych klas CSS",
+  "OPTIONS": "OPCJE",
+  "ATTRIBUTES": "ATRYBUTY",
+  "TAGs": "TAGi",
+  "Colors": "Kolory",
+  "Ok": "Ok",
+  "Cancel": "Anuluj"
+};

Added: lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/pt_br.js
URL: http://svn.apache.org/viewvc/lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/pt_br.js?rev=578051&view=auto
==============================================================================
--- lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/pt_br.js (added)
+++ lenya/branches/revolution/1.3.x/src/webapp/lenya/modules/xinha/plugins/QuickTag/lang/pt_br.js Fri Sep 21 03:36:30 2007
@@ -0,0 +1,16 @@
+// I18N constants
+// LANG: "pt_br", ENCODING: UTF-8
+{ 
+  "Quick Tag Editor": "Editor Rápido",
+  "Enter the TAG you want to insert": "Edite a TAG que deseja inserir",
+  "You have to select some text": "É preciso selecionar algum texto",
+  "No CSS class avaiable": "Não há classes CSS",
+  "There are some unclosed quote...": "Há uma ou mais aspas sem fechamento",
+  "This attribute already exists in the TAG": "Esse atributo já existe na TAG",
+  "OPTIONS": "OPÇÕES",
+  "ATTRIBUTES": "ATRIBUTOS",
+  "TAGs": "TAGs",
+  "Colors": "Cores",
+  "Ok": "Ok",
+  "Cancel": "Cancelar"
+};
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.