event refactor, landing on HEAD!
[freeside.git] / httemplate / elements / fckeditor / editor / dialog / fck_spellerpages / spellerpages / controls.html
1 <html>\r
2         <head>\r
3                 <link rel="stylesheet" type="text/css" href="spellerStyle.css" />\r
4                 <script type="text/javascript" src="controlWindow.js"></script>\r
5                 <script type="text/javascript">\r
6 var spellerObject;\r
7 var controlWindowObj;\r
8 \r
9 if( parent.opener ) {\r
10         spellerObject = parent.opener.speller;\r
11 }\r
12 \r
13 function ignore_word() {\r
14         if( spellerObject ) {\r
15                 spellerObject.ignoreWord();\r
16         }\r
17 }\r
18 \r
19 function ignore_all() {\r
20         if( spellerObject ) {\r
21                 spellerObject.ignoreAll();\r
22         }\r
23 }\r
24 \r
25 function replace_word() {\r
26         if( spellerObject ) {\r
27                 spellerObject.replaceWord();\r
28         }\r
29 }\r
30 \r
31 function replace_all() {\r
32         if( spellerObject ) {\r
33                 spellerObject.replaceAll();\r
34         }\r
35 }\r
36 \r
37 function end_spell() {\r
38         if( spellerObject ) {\r
39                 spellerObject.terminateSpell();\r
40         }\r
41 }\r
42 \r
43 function undo() {\r
44         if( spellerObject ) {\r
45                 spellerObject.undo();\r
46         }\r
47 }\r
48 \r
49 function suggText() {\r
50         if( controlWindowObj ) {\r
51                 controlWindowObj.setSuggestedText();\r
52         }\r
53 }\r
54 \r
55 var FCKLang = window.parent.parent.FCKLang ;    // by FredCK\r
56 \r
57 function init_spell() {\r
58         // By FredCK (fckLang attributes have been added to the HTML source of this page)\r
59         window.parent.parent.OnSpellerControlsLoad( this ) ;\r
60 \r
61         var controlForm = document.spellcheck;\r
62 \r
63         // create a new controlWindow object\r
64         controlWindowObj = new controlWindow( controlForm );\r
65 \r
66         // call the init_spell() function in the parent frameset\r
67         if( parent.frames.length ) {\r
68                 parent.init_spell( controlWindowObj );\r
69         } else {\r
70                 alert( 'This page was loaded outside of a frameset. It might not display properly' );\r
71         }\r
72 }\r
73 \r
74 </script>\r
75         </head>\r
76         <body class="controlWindowBody" onLoad="init_spell();" style="OVERFLOW: hidden" scroll="no">    <!-- by FredCK -->\r
77                 <form name="spellcheck">\r
78                         <table border="0" cellpadding="0" cellspacing="0" border="0" align="center">\r
79                                 <tr>\r
80                                         <td colspan="3" class="normalLabel"><span fckLang="DlgSpellNotInDic">Not in dictionary:</span></td>\r
81                                 </tr>\r
82                                 <tr>\r
83                                         <td colspan="3"><input class="readonlyInput" type="text" name="misword" readonly /></td>\r
84                                 </tr>\r
85                                 <tr>\r
86                                         <td colspan="3" height="5"></td>\r
87                                 </tr>\r
88                                 <tr>\r
89                                         <td class="normalLabel"><span fckLang="DlgSpellChangeTo">Change to:</span></td>\r
90                                 </tr>\r
91                                 <tr valign="top">\r
92                                         <td>\r
93                                                 <table border="0" cellpadding="0" cellspacing="0" border="0">\r
94                                                         <tr>\r
95                                                                 <td class="normalLabel">\r
96                                                                         <input class="textDefault" type="text" name="txtsugg" />\r
97                                                                 </td>\r
98                                                         </tr>\r
99                                                         <tr>\r
100                                                                 <td>\r
101                                                                         <select class="suggSlct" name="sugg" size="7" onChange="suggText();" onDblClick="replace_word();">\r
102                                                                                 <option></option>\r
103                                                                         </select>\r
104                                                                 </td>\r
105                                                         </tr>\r
106                                                 </table>\r
107                                         </td>\r
108                                         <td>&nbsp;&nbsp;</td>\r
109                                         <td>\r
110                                                 <table border="0" cellpadding="0" cellspacing="0" border="0">\r
111                                                         <tr>\r
112                                                                 <td>\r
113                                                                         <input class="buttonDefault" type="button" fckLang="DlgSpellBtnIgnore" value="Ignore" onClick="ignore_word();">\r
114                                                                 </td>\r
115                                                                 <td>&nbsp;&nbsp;</td>\r
116                                                                 <td>\r
117                                                                         <input class="buttonDefault" type="button" fckLang="DlgSpellBtnIgnoreAll" value="Ignore All" onClick="ignore_all();">\r
118                                                                 </td>\r
119                                                         </tr>\r
120                                                         <tr>\r
121                                                                 <td colspan="3" height="5"></td>\r
122                                                         </tr>\r
123                                                         <tr>\r
124                                                                 <td>\r
125                                                                         <input class="buttonDefault" type="button" fckLang="DlgSpellBtnReplace" value="Replace" onClick="replace_word();">\r
126                                                                 </td>\r
127                                                                 <td>&nbsp;&nbsp;</td>\r
128                                                                 <td>\r
129                                                                         <input class="buttonDefault" type="button" fckLang="DlgSpellBtnReplaceAll" value="Replace All" onClick="replace_all();">\r
130                                                                 </td>\r
131                                                         </tr>\r
132                                                         <tr>\r
133                                                                 <td colspan="3" height="5"></td>\r
134                                                         </tr>\r
135                                                         <tr>\r
136                                                                 <td>\r
137                                                                         <input class="buttonDefault" type="button" name="btnUndo" fckLang="DlgSpellBtnUndo" value="Undo" onClick="undo();"\r
138                                                                                 disabled>\r
139                                                                 </td>\r
140                                                                 <td>&nbsp;&nbsp;</td>\r
141                                                                 <td>\r
142                                                                         <!-- by FredCK\r
143                                                                         <input class="buttonDefault" type="button" value="Close" onClick="end_spell();">\r
144                                                                         -->\r
145                                                                 </td>\r
146                                                         </tr>\r
147                                                 </table>\r
148                                         </td>\r
149                                 </tr>\r
150                         </table>\r
151                 </form>\r
152         </body>\r
153 </html>\r