Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

331 lines
12 KiB

  1. <HTML id=dlgFind STYLE="font-family: MS Shell Dlg; font-size: 8pt;
  2. width: 33.5em; height: 16.2em">
  3. <HEAD>
  4. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  5. <META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
  6. <TITLE id=dialogTitle>
  7. Find
  8. </TITLE>
  9. <SCRIPT LANGUAGE="JavaScript" defer src="findinc.dlg">
  10. </SCRIPT>
  11. <SCRIPT LANGUAGE="JavaScript" defer>
  12. //Find Text dialog box
  13. #define IDH_FIND_WHOLE 50022 // was 0x3063
  14. #define IDH_FIND_CASE 50023 // was 0x3064
  15. #define IDH_FIND_UP 50025 // was 0x3065
  16. #define IDH_FIND_DOWN 50024 // was 0x3066
  17. #define IDH_FIND_NEXT 50026 // was 0x3067
  18. #define IDH_FIND_WHAT 50027 // was 0x3068
  19. #define IDH_FIND_DIACRITIC 50401
  20. #define IDH_FIND_KASHIDA 50402
  21. #define IDH_FIND_ALEF_HAMZA 50403
  22. //+---------------------------------------------------------------------
  23. //
  24. // Synopsis: Checks the status of the appropriate checkboxes and
  25. // sets the flags for the findText method.
  26. //
  27. // Arguments: none
  28. //
  29. // returns: a number representing the flags for the findText
  30. // method. (See OM spec for more info.)
  31. //
  32. //----------------------------------------------------------------------
  33. function findFlags()
  34. {
  35. var htmlMatchWord = 2;
  36. var htmlMatchCase = 4;
  37. var htmlMatchDiacritic = 536870912; // 0x20000000 FR_MATCHDIAC
  38. var htmlMatchKashida = 1073741824; // 0x40000000 FR_MATCHKASHIDA
  39. var htmlMatchAlefHamza = 2147483648; // 0x80000000 FR_MATCHALEFHAMZA
  40. return (htmlMatchWord * document.all.chkWholeWord.checked)
  41. | (htmlMatchCase * document.all.chkMatchCase.checked)
  42. | (htmlMatchDiacritic * document.all.chkMatchDiacritic.checked)
  43. | (htmlMatchKashida * document.all.chkMatchKashida.checked)
  44. | (htmlMatchAlefHamza * document.all.chkMatchAlefHamza.checked)
  45. } // findFlags
  46. //+---------------------------------------------------------------------
  47. //
  48. // Synopsis: Sets the focus to the find button. Also determines
  49. // whether something is selected in the document.
  50. //
  51. // Arguments: none
  52. //
  53. // Returns: nothing
  54. //
  55. //-----------------------------------------------------------------------
  56. function loadBdy()
  57. {
  58. //
  59. // Bind events to controls. This is done here to load the dialog
  60. // quicker.
  61. //
  62. btnFind.onclick = new
  63. Function("btnFindClick()");
  64. btnFind.ondblclick = new
  65. Function("btnFindClick()");
  66. btnCancel.onclick = new Function("btnCancelClick2()");
  67. document.onhelp = new Function("callHelp(window.event.srcElement)");
  68. document.onmouseup = new Function("mouseClick()");
  69. txtFindText.onpropertychange = new Function("setFindState(true)");
  70. txtFindText.onfocus = new Function("txtFindText.select()");
  71. txtFindText.onkeypress = new Function("txtDefaultESC()");
  72. g_fFindStartPoint = true;
  73. //
  74. // enable RTL search items if document supports RTL charset - default is disabled=1
  75. //
  76. var docCharset = window.dialogArguments.document.charset;
  77. if(docCharset == "" || // plain text/unknown
  78. docCharset == "utf-8" || // unicode
  79. docCharset == "unicode-1-1-utf-8" ||
  80. docCharset == "unicode-2-0-utf-8" ||
  81. docCharset == "windows-1255" || // hebrew
  82. docCharset == "dos-862" ||
  83. docCharset == "iso-8859-8" ||
  84. docCharset == "iso-8859-8-i" ||
  85. docCharset == "windows-1256" || // arabic
  86. docCharset == "asmo-708" ||
  87. docCharset == "asmo-720" ||
  88. docCharset == "dos-720" ||
  89. docCharset == "iso-8859-6")
  90. {
  91. chkMatchDiacritic.disabled = 0;
  92. if(docCharset == "windows-1255" || // hebrew does not have kashida or alef hamza
  93. docCharset == "dos-862" ||
  94. docCharset == "iso-8859-8" ||
  95. docCharset == "iso-8859-8-i")
  96. {
  97. chkMatchKashida.checked = 1;
  98. chkMatchKashida.disabled = 1;
  99. chkMatchAlefHamza.checked = 1;
  100. chkMatchAlefHamza.disabled = 1;
  101. }
  102. }
  103. if ("" != window.dialogArguments.findText)
  104. {
  105. txtFindText.value = window.dialogArguments.findText;
  106. }
  107. txtFindText.focus();
  108. txtFindText.select();
  109. } // loadBdy
  110. function findStartPoint()
  111. {
  112. if (g_fFindStartPoint)
  113. {
  114. g_fFindStartPoint = false;
  115. var win = window.dialogArguments.unsecuredWindowOfDocument;
  116. var doc = window.dialogArguments.document;
  117. //
  118. // Are we in a frameset?
  119. //
  120. if (!g_fError && win.frames.length)
  121. {
  122. var win2;
  123. g_fFrameset = true;
  124. g_arrFrames[0] = 0;
  125. g_arrFrames[1] = -1;
  126. //
  127. // Search through the frameset for a selection
  128. //
  129. win2 = CrawlPath();
  130. // the find dialog gets it's own error handler
  131. // until while we're not sure if the iframe
  132. // is hosting trident. (It could host Word,
  133. // explorer, etc.)
  134. window.onerror = FindHandleError;
  135. doc2 = win2.document;
  136. window.onerror = HandleError;
  137. while (doc2.selection.type == "None")
  138. {
  139. if (MoveDoc(true))
  140. {
  141. win2 = CrawlPath();
  142. doc2 = win2.document;
  143. }
  144. else // no selection. reset search
  145. {
  146. g_arrFrames[0] = 0;
  147. g_arrFrames[1] = -1;
  148. break;
  149. }
  150. }
  151. doc = GetFirstDoc();
  152. g_docLastFound = doc;
  153. }
  154. //
  155. // if a control is selected, select it as a text range
  156. //
  157. if (doc.selection.type == "Control")
  158. {
  159. var r = doc.selection.createRange();
  160. r = getTextRange(r(0));
  161. r.select();
  162. }
  163. }
  164. } // findStartPoint
  165. </SCRIPT>
  166. </HEAD>
  167. <BODY ID=bdy onLoad="loadBdy()" style="color: windowtext;
  168. font-family: 'MS Shell Dlg';
  169. font-size: 8pt; background: threedface;" topmargin=0 scroll=no>
  170. <BUTTON id=btnFind ACCESSKEY=f DISABLED=1 tabIndex=55 helpid=IDH_FIND_NEXT
  171. helpfile="iexplore.hlp"
  172. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  173. left: 24.78em; top: 1.0647em; width: 7em; height: 2.2em; " type=submit>
  174. <U>F</U>ind Next
  175. </BUTTON>
  176. <DIV align=absMiddle id=divFindText
  177. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  178. left: 0.98em; top: 1.2168em; width: 4.8em; height: 1.2168em; ">
  179. <LABEL FOR=txtFindText ID=lblFindText tabIndex=-1 helpid=IDH_FIND_WHAT
  180. helpfile="iexplore.hlp">
  181. Fi<U>n</U>d what:
  182. </LABEL>
  183. </DIV>
  184. <INPUT type=text id=txtFindText ACCESSKEY=n tabIndex=15 helpid=IDH_FIND_WHAT
  185. helpfile="iexplore.hlp"
  186. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  187. left: 6.16em; top: 1.0647em; width: 17.36em; height: 2.1294em; ">
  188. <BUTTON id=btnCancel tabIndex=60 helpid="0x6F1C" helpfile="windows.hlp"
  189. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  190. left: 24.78em; top: 3.6504em; width: 7em; height: 2.2em; " type=reset>
  191. Cancel
  192. </BUTTON>
  193. <INPUT id=chkWholeWord ACCESSKEY=w type=checkbox tabIndex=25
  194. helpfile="iexplore.hlp" helpid=IDH_FIND_WHOLE
  195. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  196. left: 1em; top: 4.2em; width: 1.2em; height: 1.2em; ">
  197. <INPUT ACCESSKEY=c type=checkbox tabIndex=35 helpid=IDH_FIND_CASE
  198. helpfile="iexplore.hlp"
  199. id=chkMatchCase style="font-family: MS Shell Dlg; font-size: 8pt;
  200. position: absolute; left: 1em; top: 6em; width: 1.2em;
  201. height: 1.2em; ">
  202. <INPUT id=chkMatchDiacritic ACCESSKEY=i type=checkbox tabIndex=36
  203. helpfile="iexplore.hlp" helpid=IDH_FIND_DIACRITIC
  204. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  205. left: 1em; top: 7.9em; width: 1.2em; height: 1.2em">
  206. <INPUT id=chkMatchKashida ACCESSKEY=k type=checkbox tabIndex=37
  207. helpfile="iexplore.hlp" helpid=IDH_FIND_KASHIDA
  208. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  209. left: 1em; top: 9.7em; width: 1.2em; height: 1.2em">
  210. <INPUT id=chkMatchAlefHamza ACCESSKEY=a type=checkbox tabIndex=38
  211. helpfile="iexplore.hlp" helpid=IDH_FIND_ALEF_HAMZA
  212. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  213. left: 1em; top: 11.5em; width: 1.2em; height: 1.2em">
  214. <DIV id=divWholeWord
  215. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  216. left: 2.6em; top: 4.2588em; width: 12.46em; height: 1.521em; ">
  217. <LABEL FOR=chkWholeWord ID=lblWholeWord tabIndex=-1 helpid=IDH_FIND_WHOLE
  218. helpfile="iexplore.hlp">
  219. Match <U>w</U>hole word only
  220. </LABEL>
  221. </DIV>
  222. <DIV id=divMatchCase style="font-family: MS Shell Dlg; font-size: 8pt;
  223. position: absolute; left: 2.6em; top: 6.084em; width: 7.42em;
  224. height: 1.521em; ">
  225. <LABEL FOR=chkMatchCase ID=lblMatchCase tabIndex=-1 helpid=IDH_FIND_CASE
  226. helpfile="iexplore.hlp">
  227. Match <U>c</U>ase
  228. </LABEL>
  229. </DIV>
  230. <DIV id=divMatchDiacritic
  231. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  232. left: 2.6em; top: 7.9092em; width: 12.46em; height: 1.521em">
  233. <LABEL FOR=chkMatchDiacritic ID=lblMatchDiacritic tabIndex=-1
  234. helpid=IDH_FIND_DIACRITIC
  235. helpfile="iexplore.hlp">
  236. Match d<U>i</U>acritic
  237. </LABEL>
  238. </DIV>
  239. <DIV id=divMatchKashida
  240. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  241. left: 2.6em; top: 9.7344em; width: 12.46em; height: 1.521em">
  242. <LABEL FOR=chkMatchKashida ID=lblMatchKashida tabIndex=-1
  243. helpid=IDH_FIND_KASHIDA
  244. helpfile="iexplore.hlp">
  245. Match <U>k</U>ashida
  246. </LABEL>
  247. </DIV>
  248. <DIV id=divMatchAlefHamza
  249. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  250. left: 2.6em; top: 11.5596em; width: 12.46em; height: 1.521em">
  251. <LABEL FOR=chkMatchAlefHamza ID=lblMatchAlefHamza tabIndex=-1
  252. helpid=IDH_FIND_ALEF_HAMZA
  253. helpfile="iexplore.hlp">
  254. Match <U>a</U>lef hamza
  255. </LABEL>
  256. </DIV>
  257. <FIELDSET id=fldDirection style="font-family: MS Shell Dlg; font-size: 8pt;
  258. position: absolute; left: 13.7em; top: 3.5em; width: 9.7em;
  259. height: 6.3em;">
  260. <LEGEND id=lgdDirection>
  261. Direction
  262. </LEGEND>
  263. </FIELDSET>
  264. <INPUT id=radDirectionUp type=radio name=radDirection ACCESSKEY=u
  265. tabIndex=42 helpid=IDH_FIND_UP helpfile="iexplore.hlp"
  266. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  267. left: 14.6em; top: 5.4em; width: 1.1em; height: 1.1em; ">
  268. <DIV id=divDirectionUp style="font-family: MS Shell Dlg;
  269. font-size: 8pt; position: absolute; left: 16.2em; top: 5.3235em;
  270. width: 3.5em; height: 1.521em; ">
  271. <LABEL ID=lblDirectionUp style="font-family: 'MS Shell Dlg'; font-size: 8pt"
  272. FOR=radDirectionUp
  273. helpid=IDH_FIND_UP
  274. helpfile="iexplore.hlp"> <U>U</U>p </LABEL>
  275. </DIV>
  276. <INPUT id=radDirectionDown type=radio CHECKED name=radDirection
  277. ACCESSKEY=d tabIndex=47 helpid=IDH_FIND_DOWN helpfile="iexplore.hlp"
  278. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  279. left: 14.6em; top: 7.4em; width: 1.1em; height: 1.1em; ">
  280. <DIV id=divDirectionDown style="font-family: MS Shell Dlg;
  281. font-size: 8pt; position: absolute; left: 16.2em; top: 7.3em;
  282. width: 4.9em; height: 1.521em; ">
  283. <LABEL ID=lblDirectionDown style="font-family: 'MS Shell Dlg'; font-size: 8pt"
  284. FOR=radDirectionDown helpid=IDH_FIND_DOWN helpfile="iexplore.hlp">
  285. <U>D</U>own </LABEL>
  286. </DIV>
  287. </BODY>
  288. </HTML>