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.

256 lines
8.7 KiB

  1. <HTML id=dlgFind STYLE="font-family: MS Shell Dlg; font-size: 8pt;
  2. width: 33.5em; height: 13.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. //
  41. // Note: the CS options work "backwards" and should be
  42. // assumed to be true.
  43. //
  44. return (htmlMatchWord * document.all.chkWholeWord.checked)
  45. | (htmlMatchCase * document.all.chkMatchCase.checked)
  46. | htmlMatchDiacritic | htmlMatchKashida | htmlMatchAlefHamza;
  47. } // findFlags
  48. //+---------------------------------------------------------------------
  49. //
  50. // Synopsis: Sets the focus to the find button. Also determines
  51. // whether something is selected in the document.
  52. //
  53. // Arguments: none
  54. //
  55. // Returns: nothing
  56. //
  57. //-----------------------------------------------------------------------
  58. function loadBdy()
  59. {
  60. //
  61. // Bind events to controls. This is done here to load the dialog
  62. // quicker.
  63. //
  64. btnFind.onclick = new
  65. Function("btnFindClick()");
  66. btnFind.ondblclick = new
  67. Function("btnFindClick()");
  68. btnCancel.onclick = new Function("btnCancelClick2()");
  69. document.onhelp = new Function("callHelp(window.event.srcElement)");
  70. document.onmouseup = new Function("mouseClick()");
  71. txtFindText.onpropertychange = new Function("setFindState(true)");
  72. txtFindText.onfocus = new Function("txtFindText.select()");
  73. txtFindText.onkeypress = new Function("txtDefaultESC()");
  74. g_fFindStartPoint = true;
  75. if ("" != window.dialogArguments.findText)
  76. {
  77. txtFindText.value = window.dialogArguments.findText;
  78. }
  79. txtFindText.focus();
  80. txtFindText.select();
  81. } // loadBdy
  82. function findStartPoint()
  83. {
  84. if (g_fFindStartPoint)
  85. {
  86. g_fFindStartPoint = false;
  87. var win = window.dialogArguments.unsecuredWindowOfDocument;
  88. var doc = window.dialogArguments.document;
  89. //
  90. // Are we in a frameset?
  91. //
  92. if (!g_fError && win.frames.length)
  93. {
  94. var win2;
  95. g_fFrameset = true;
  96. g_arrFrames[0] = 0;
  97. g_arrFrames[1] = -1;
  98. //
  99. // Search through the frameset for a selection
  100. //
  101. win2 = CrawlPath();
  102. // the find dialog gets it's own error handler
  103. // until while we're not sure if the iframe
  104. // is hosting trident. (It could host Word,
  105. // explorer, etc.)
  106. window.onerror = FindHandleError;
  107. doc2 = win2.document;
  108. window.onerror = HandleError;
  109. while (doc2.selection.type == "None")
  110. {
  111. if (MoveDoc(true))
  112. {
  113. win2 = CrawlPath();
  114. doc2 = win2.document;
  115. }
  116. else // no selection. reset search
  117. {
  118. g_arrFrames[0] = 0;
  119. g_arrFrames[1] = -1;
  120. break;
  121. }
  122. }
  123. doc = GetFirstDoc();
  124. g_docLastFound = doc;
  125. }
  126. //
  127. // if a control is selected, select it as a text range
  128. //
  129. if (doc.selection.type == "Control")
  130. {
  131. var r = doc.selection.createRange();
  132. r = getTextRange(r(0));
  133. r.select();
  134. }
  135. }
  136. } // findStartPoint
  137. </SCRIPT>
  138. </HEAD>
  139. <BODY ID=bdy onload="loadBdy()" style="color: windowtext;
  140. font-family: 'MS Shell Dlg';
  141. #ifdef UNIX
  142. color:buttontext;
  143. #endif
  144. font-size: 8pt; background: threedface; " topmargin=0 scroll=no>
  145. <BUTTON id=btnFind ACCESSKEY=f DISABLED=1 tabIndex=55 helpid=IDH_FIND_NEXT
  146. helpfile="iexplore.hlp"
  147. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  148. left: 24.78em; top: 1.0647em; width: 7em; height: 2.2em; " type=submit>
  149. <U>F</U>ind Next
  150. </BUTTON>
  151. <DIV align=absMiddle id=divFindText
  152. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  153. left: 0.98em; top: 1.2168em; width: 4.8em; height: 1.2168em; ">
  154. <LABEL FOR=txtFindText ID=lblFindText tabIndex=-1 helpid=IDH_FIND_WHAT
  155. helpfile="iexplore.hlp">
  156. Fi<U>n</U>d what:
  157. </LABEL>
  158. </DIV>
  159. <INPUT type=text id=txtFindText ACCESSKEY=n tabIndex=15 helpid=IDH_FIND_WHAT
  160. helpfile="iexplore.hlp"
  161. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  162. left: 6.16em; top: 1.0647em; width: 17.36em; height: 2.1294em; ">
  163. <BUTTON id=btnCancel tabIndex=60 helpid="0x6F1C" helpfile="windows.hlp"
  164. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  165. left: 24.78em; top: 3.6504em; width: 7em; height: 2.2em; " type=reset>
  166. Cancel
  167. </BUTTON>
  168. <INPUT id=chkWholeWord ACCESSKEY=w type=checkbox tabIndex=25
  169. helpfile="iexplore.hlp" helpid=IDH_FIND_WHOLE
  170. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  171. left: 1em; top: 4.2em; width: 1.2em; height: 1.2em;">
  172. <INPUT ACCESSKEY=c type=checkbox tabIndex=35 helpid=IDH_FIND_CASE
  173. helpfile="iexplore.hlp"
  174. id=chkMatchCase style="font-family: MS Shell Dlg; font-size: 8pt;
  175. position: absolute; left: 1em; top: 6em; width: 1.2em; height: 1.2em;">
  176. <DIV id=divWholeWord
  177. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  178. left: 2.6em; top: 4.2588em; width: 12.46em; height: 1.521em; ">
  179. <LABEL FOR=chkWholeWord ID=lblWholeWord tabIndex=-1 helpid=IDH_FIND_WHOLE
  180. helpfile="iexplore.hlp">
  181. Match <U>w</U>hole word only
  182. </LABEL>
  183. </DIV>
  184. <DIV id=divMatchCase style="font-family: MS Shell Dlg; font-size: 8pt;
  185. position: absolute; left: 2.6em; top: 6.084em; width: 7.42em;
  186. height: 1.521em; ">
  187. <LABEL FOR=chkMatchCase ID=lblMatchCase tabIndex=-1 helpid=IDH_FIND_CASE
  188. helpfile="iexplore.hlp">
  189. Match <U>c</U>ase
  190. </LABEL>
  191. </DIV>
  192. <FIELDSET id=fldDirection style="font-family: MS Shell Dlg; font-size: 8pt;
  193. position: absolute; left: 13.7em; top: 3.5em; width: 9.7em;
  194. height: 4.2em;">
  195. <LEGEND id=lgdDirection>
  196. Direction
  197. </LEGEND>
  198. </FIELDSET>
  199. <INPUT id=radDirectionUp type=radio name=radDirection ACCESSKEY=u
  200. tabIndex=42 helpid=IDH_FIND_UP helpfile="iexplore.hlp"
  201. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  202. left: 14.6em; top: 5.4em; width: 1.2em; height: 1.2em; ">
  203. <DIV id=divDirectionUp style="font-family: MS Shell Dlg;
  204. font-size: 8pt; position: absolute; left: 16.2em; top: 5.3235em;
  205. width: 3.5em; height: 1.521em; ">
  206. <LABEL ID=lblDirectionUp style="font-family: 'MS Shell Dlg'; font-size: 8pt"
  207. FOR=radDirectionUp
  208. helpid=IDH_FIND_UP
  209. helpfile="iexplore.hlp"> <U>U</U>p </LABEL>
  210. </DIV>
  211. <INPUT id=radDirectionDown type=radio CHECKED name=radDirection
  212. ACCESSKEY=d tabIndex=47 helpid=IDH_FIND_DOWN helpfile="iexplore.hlp"
  213. style="font-family: MS Shell Dlg; font-size: 8pt; position: absolute;
  214. left: 18.5em; top: 5.4em; width: 1.2em; height: 1.2em; ">
  215. <DIV id=divDirectionDown style="font-family: MS Shell Dlg;
  216. font-size: 8pt; position: absolute; left: 20.1em; top: 5.3em;
  217. width: 4.9em; height: 1.521em; ">
  218. <LABEL ID=lblDirectionDown style="font-family: 'MS Shell Dlg'; font-size: 8pt"
  219. FOR=radDirectionDown helpid=IDH_FIND_DOWN helpfile="iexplore.hlp">
  220. <U>D</U>own </LABEL>
  221. </DIV>
  222. </BODY>
  223. </HTML>