home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 18 / 18.iso / w / w252 / 4.ddi / MACROS.CMZ / FSPELL.SMM < prev    next >
Encoding:
INI File  |  1991-08-19  |  4.4 KB  |  378 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     ~macro.sty
  5. [files]
  6. [charset]
  7.     82
  8.     ANSI (Windows, IBM CP 1252)
  9. [revisions]
  10.     0
  11. [prn]
  12.     PostScript Printer
  13. [lang]
  14.     1
  15. [desc]
  16.     Spellcheck multiple documents with one command with FSPELL.
  17.     Lotus WPD Marketing
  18.     Intermediate
  19.     FillList, Spelling
  20.     
  21.     682670356
  22.     17
  23.     676699899
  24.     68
  25.     2
  26.     0
  27.     0
  28.     0
  29.     0
  30.     
  31.     
  32.     
  33.     
  34.     
  35.     
  36.     0
  37. [fopts]
  38.     0
  39.     1
  40.     0
  41.     0
  42. [lnopts]
  43.     2
  44.     Body Text
  45.     1
  46. [docopts]
  47.     5
  48.     2
  49. [l1]
  50.     0
  51. [edoc]
  52. Macro by <+!>Charlie Pappas<-!>
  53.  
  54.  
  55. function fspell()
  56.  
  57. for i = 101 to 105
  58.  
  59.     filledit(i, 1)
  60.  
  61. next
  62.  
  63. again:
  64.  
  65. filledit(9001, strcat$(GetDocPath$(), "*.sam"))
  66.  
  67. box = dialogbox(".", "files")
  68.  
  69. if box <<<;> 1
  70.  
  71.     return 0
  72.  
  73. endif
  74.  
  75. if getdialogfield$(8001) = ""
  76.  
  77.     message("select files from the list")
  78.  
  79.     goto again
  80.  
  81. endif
  82.  
  83. cdir = getcurrentdir$()
  84.  
  85. dim files(100)
  86.  
  87. for i = 1 to 100
  88.  
  89.     file = strfield$(getdialogfield$(8001), i, " ")
  90.  
  91.     if file = ""
  92.  
  93.         break
  94.  
  95.     endif
  96.  
  97.     files(i) = file
  98.  
  99. next
  100.  
  101. opts = 0
  102.  
  103. if getdialogfield$(101)
  104.  
  105.     opts = opts + 1
  106.  
  107. endif
  108.  
  109. if not getdialogfield$(102)
  110.  
  111.     opts = opts + 2
  112.  
  113. endif
  114.  
  115. if not getdialogfield$(103)
  116.  
  117.     opts = opts + 4
  118.  
  119. endif
  120.  
  121. if not getdialogfield$(104)
  122.  
  123.     opts = opts + 8
  124.  
  125. endif
  126.  
  127. if not getdialogfield$(105)
  128.  
  129.     opts = opts + 16
  130.  
  131. endif
  132.  
  133. if getdialogfield$(106)
  134.  
  135.     opts = opts + 64
  136.  
  137. endif
  138.  
  139. for j = 1 to i - 1
  140.  
  141.     file = files(j)
  142.  
  143.     if j = 1
  144.  
  145.         opts = 1
  146.  
  147.     else
  148.  
  149.         opts = 129
  150.  
  151.     endif
  152.  
  153.     FileOpen(strcat$(cdir, file),  129 8203)
  154.  
  155.     spellcheck(opts)
  156.  
  157.     save()
  158.  
  159. next
  160.  
  161. fileclose()
  162.  
  163. end function
  164.  
  165.  
  166. DIALOG files
  167.  
  168. -2134376448 13 86 28 184 158 "" "" "Spell Check Multiple Files"
  169.  
  170. FONT 8 "Helv"
  171.  
  172. 6 6 66 8 1000 1342308352 "static" "&Files to check:" 0 
  173.  
  174. 6 16 66 58 9001 1352728587 "listbox" "" 0 
  175.  
  176. 5 77 173 75 900 1342308359 "button" "&Options" 0 
  177.  
  178. 10 89 163 9 101 1342242819 "button" "Beginning of document" 0 
  179.  
  180. 10 99 163 9 102 1342242819 "button" "Include other te&xt streams" 0 
  181.  
  182. 10 109 163 9 103 1342242819 "button" "Check for &repeated words" 0 
  183.  
  184. 10 119 163 9 104 1342242819 "button" "Check words with &numbers" 0 
  185.  
  186. 10 129 163 9 105 1342242819 "button" "Check words with &initial caps" 0 
  187.  
  188. 10 139 163 9 106 1342242819 "button" "Include &user dictionary alternatives" 0 
  189.  
  190. 136 6 40 14 1 1342373889 "button" "OK" 0 
  191.  
  192. 136 22 40 14 2 1342373888 "button" "Cancel" 0 
  193.  
  194. 78 26 36 1 8001 1342177280 "static" "" 0 
  195.  
  196. 78 46 98 8 7999 1342177280 "static" "" 0 
  197.  
  198. END DIALOG
  199.  
  200. >
  201.  
  202. [Embedded]
  203. 00002454
  204. >
  205. [macsum] 2
  206. fspell 0 0 8 2
  207. files 1157 0 -1 58
  208. [macse]
  209. 14 fspell
  210. 5 101
  211. 8 1
  212. 5 105
  213. 6 1
  214. 18 2
  215. 12 00000100
  216. 10 00000127
  217. 5 1
  218. 6 1
  219. 3 0
  220. 8 1
  221. 10 00000023
  222. 0 31 "{1}" 1
  223. 10 00000067
  224. 0 268
  225. 13
  226. 0 16 [X] "*.sam"
  227. 13
  228. 0 31 9001 [X]
  229. 0 26 "." "files"
  230. 13
  231. 8 2
  232. 6 2
  233. 5 1
  234. 18 1
  235. 11 00000243
  236. 5 0
  237. 15
  238. 9
  239. 0 27 8001
  240. 13
  241. 7 ""
  242. 18 0
  243. 11 00000330
  244. 0 3 "select files from the list"
  245. 10 00000127
  246. 0 290
  247. 13
  248. 8 3
  249. 5 100
  250. 21 4 [X]
  251. 5 1
  252. 8 1
  253. 5 100
  254. 6 1
  255. 18 2
  256. 12 00000450
  257. 10 00000566
  258. 5 1
  259. 6 1
  260. 3 0
  261. 8 1
  262. 10 00000373
  263. 0 27 8001
  264. 13
  265. 0 20 [X] "{1}" " "
  266. 13
  267. 8 5
  268. 6 5
  269. 7 ""
  270. 18 0
  271. 11 00000537
  272. 10 00000566
  273. 6 1
  274. 6 5
  275. 23 4
  276. 10 00000417
  277. 5 0
  278. 8 6
  279. 0 27 101
  280. 13
  281. 11 00000623
  282. 6 6
  283. 5 1
  284. 3 0
  285. 8 6
  286. 0 27 102
  287. 13
  288. 1 3
  289. 11 00000675
  290. 6 6
  291. 5 2
  292. 3 0
  293. 8 6
  294. 0 27 103
  295. 13
  296. 1 3
  297. 11 00000727
  298. 6 6
  299. 5 4
  300. 3 0
  301. 8 6
  302. 0 27 104
  303. 13
  304. 1 3
  305. 11 00000779
  306. 6 6
  307. 5 8
  308. 3 0
  309. 8 6
  310. 0 27 105
  311. 13
  312. 1 3
  313. 11 00000832
  314. 6 6
  315. 5 16
  316. 3 0
  317. 8 6
  318. 0 27 106
  319. 13
  320. 11 00000880
  321. 6 6
  322. 5 64
  323. 3 0
  324. 8 6
  325. 5 1
  326. 8 7
  327. 6 1
  328. 5 1
  329. 3 1
  330. 6 7
  331. 18 2
  332. 12 00000975
  333. 10 00001136
  334. 5 1
  335. 6 7
  336. 3 0
  337. 8 7
  338. 10 00000890
  339. 6 7
  340. 22 4
  341. 8 5
  342. 6 7
  343. 5 1
  344. 18 0
  345. 11 00001043
  346. 5 1
  347. 8 6
  348. 10 00001055
  349. 5 129
  350. 8 6
  351. 0 16 "{3}" "{5}"
  352. 13
  353. 2 102 1 [X] 129 8203
  354. 2 459 1 "{6}"
  355. 2 103 1
  356. 10 00000942
  357. 2 147 1
  358. 6 0
  359. 15
  360. 9
  361. DIALOG files
  362. -2134376448 13 86 28 184 158 "" "" "Spell Check Multiple Files" 
  363. FONT 8 "Helv" 
  364. 6 6 66 8 1000 1342308352 "static" "&Files to check:" 0 
  365. 6 16 66 58 9001 1352728587 "listbox" "" 0 
  366. 5 77 173 75 900 1342308359 "button" "&Options" 0 
  367. 10 89 163 9 101 1342242819 "button" "Beginning of document" 0 
  368. 10 99 163 9 102 1342242819 "button" "Include other te&xt streams" 0 
  369. 10 109 163 9 103 1342242819 "button" "Check for &repeated words" 0 
  370. 10 119 163 9 104 1342242819 "button" "Check words with &numbers" 0 
  371. 10 129 163 9 105 1342242819 "button" "Check words with &initial caps" 0 
  372. 10 139 163 9 106 1342242819 "button" "Include &user dictionary alternatives" 0 
  373. 136 6 40 14 1 1342373889 "button" "OK" 0 
  374. 136 22 40 14 2 1342373888 "button" "Cancel" 0 
  375. 78 26 36 1 8001 1342177280 "static" "" 0 
  376. 78 46 98 8 7999 1342177280 "static" "" 0 
  377. 00002479
  378.