home *** CD-ROM | disk | FTP | other *** search
/ Program Metropolis - Software Boutique 95 / SOFTWARECD.iso / camipro3 / macros.cmz / FSPELL.SMM < prev    next >
Encoding:
INI File  |  1994-08-14  |  8.2 KB  |  532 lines

  1. [ver]
  2.     4
  3. [sty]
  4.     _default.sty
  5. [files]
  6. [charset]
  7.     82
  8.     CHINESEBIG5 (Windows)
  9. [revisions]
  10.     0
  11. [prn]
  12.     PostScript Printer
  13. [port]
  14.     LPT1:
  15. [lang]
  16.     1
  17. [desc]
  18.     ╣∩ªhÑ≈ñσÑ≤░╡½≈ªr└╦¼díC
  19.     Lotus WPD Marketing
  20.     Intermediate
  21.     FillList, Spelling
  22.     noautorun
  23.     773102879
  24.     45
  25.     676699899
  26.     298
  27.     3
  28.     0
  29.     0
  30.     0
  31.     0
  32.     
  33.     
  34.     
  35.     
  36.     
  37.     
  38.     0
  39. [fopts]
  40.     0
  41.     1
  42.     0
  43.     0
  44. [lnopts]
  45.     2
  46.     Body Text
  47.     1
  48. [docopts]
  49.     5
  50.     2
  51. [GramStyle]
  52.     
  53. [l1]
  54.     0
  55. [pg]
  56.     3
  57.     49 0 5 0 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  58.     98 0 67 0 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  59.     106 0 10 1025 0 0 0 65535 65535 Standard    65535 0 0    0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
  60. [edoc]
  61. <:#289,9025>Macro by <+!>Charlie Pappas<-!>
  62.  
  63. <:#284,9025>
  64.  
  65. <:#284,9025>function fspell()
  66.  
  67. <:#284,9025>IF IsNewWave()
  68.  
  69. <:#284,9025>    Message("Macro not available while running under HP NewWave.")
  70.  
  71. <:#284,9025>    Exit Function
  72.  
  73. <:#284,9025>ENDIF
  74.  
  75. <:#284,9025>ignorekeyboard(2)
  76.  
  77. <:#284,9025>for i = 101 to 105
  78.  
  79. <:#284,9025>    filledit(i, 1)
  80.  
  81. <:#284,9025>next
  82.  
  83. <:#284,9025>again:
  84.  
  85. <:#284,9025>filledit(9001, strcat$(GetDocPath$(), "*.sam"))
  86.  
  87. <:#284,9025>box = dialogbox(".", "files")
  88.  
  89. <:#284,9025>if box <<<;> 1
  90.  
  91. <:#284,9025>    return 0
  92.  
  93. <:#284,9025>endif
  94.  
  95. <:#284,9025>if getdialogfield$(8001) = ""
  96.  
  97. <:#284,9025>    message("select files from the list")
  98.  
  99. <:#284,9025>    goto again
  100.  
  101. <:#284,9025>endif
  102.  
  103. <:#284,9025>cdir = getcurrentdir$()
  104.  
  105. <:#284,9025>dim files(100)
  106.  
  107. <:#284,9025>for i = 1 to 100
  108.  
  109. <:#284,9025>    file = strfield$(getdialogfield$(8001), i, " ")
  110.  
  111. <:#284,9025>    if file = -1
  112.  
  113. <:#284,9025>        break
  114.  
  115. <:#284,9025>    endif
  116.  
  117. <:#284,9025>    files(i) = file
  118.  
  119. <:#284,9025>next
  120.  
  121. <:#284,9025>opts = 0
  122.  
  123. <:#284,9025>if getdialogfield$(101)
  124.  
  125. <:#284,9025>    opts = opts + 1
  126.  
  127. <:#284,9025>endif
  128.  
  129. <:#284,9025>if not getdialogfield$(102)
  130.  
  131. <:#284,9025>    opts = opts + 2
  132.  
  133. <:#284,9025>endif
  134.  
  135. <:#284,9025>if not getdialogfield$(103)
  136.  
  137. <:#284,9025>    opts = opts + 4
  138.  
  139. <:#284,9025>endif
  140.  
  141. <:#284,9025>if not getdialogfield$(104)
  142.  
  143. <:#284,9025>    opts = opts + 8
  144.  
  145. <:#284,9025>endif
  146.  
  147. <:#284,9025>if not getdialogfield$(105)
  148.  
  149. <:#284,9025>    opts = opts + 16
  150.  
  151. <:#284,9025>endif
  152.  
  153. <:#284,9025>if getdialogfield$(106)
  154.  
  155. <:#284,9025>    opts = opts + 64
  156.  
  157. <:#284,9025>endif
  158.  
  159. <:#284,9025> for j = 1 to i - 1
  160.  
  161. <:#284,9025>'singlestep(1)
  162.  
  163. <:#284,9025>    file = files(j)
  164.  
  165. <:#284,9025>    if j = 1
  166.  
  167. <:#284,9025>        opts = 1
  168.  
  169. <:#284,9025>    else
  170.  
  171. <:#284,9025>        opts = 129
  172.  
  173. <:#284,9025>    endif
  174.  
  175. <:#284,9025><:f240,2Times New Roman,255,0,0>    ifopen = 0
  176.  
  177. <:#284,9025><:f240,2Times New Roman,255,0,0>    Count = GetOpenFileCount()
  178.  
  179. <:#284,9025><:f240,2Times New Roman,255,0,0>    IF Count <;> 0
  180.  
  181. <:#284,9025><:f240,2Times New Roman,255,0,0>    DIM Filess(Count)
  182.  
  183. <:#284,9025><:f240,2Times New Roman,255,0,0>    GetOpenFileNames(&Filess)
  184.  
  185. <:#284,9025><:f240,2Times New Roman,255,0,0>    FOR II = 1 to Count
  186.  
  187. <:#284,9025><:f240,2Times New Roman,255,0,0>    f = filess(II)
  188.  
  189. <:#284,9025>    <:f240,2Times New Roman,255,0,0>pathplace = instr(0, f, "\")
  190.  
  191. <:#284,9025><:f240,2Times New Roman,255,0,0>    while pathplace <<<;> 0
  192.  
  193. <:#284,9025><:f240,2Times New Roman,255,0,0>        pathtemp = pathplace + 1
  194.  
  195. <:#284,9025><:f240,2Times New Roman,255,0,0>        pathplace = instr(pathtemp, f,"\")
  196.  
  197. <:s><:#284,9025><:f240,2Times New Roman,255,0,0>    wend    
  198.  
  199. <:#284,9025><:f240,2Times New Roman,255,0,0>    length = len(f)
  200.  
  201. <:#284,9025><:f240,2Times New Roman,255,0,0>    pathplace = right$(f, length  - pathtemp + 1)
  202.  
  203. <:#284,9025><:f240,2Times New Roman,255,0,0>    if  pathplace =  ucase$(file) and ifopen = 0 then
  204.  
  205. <:#284,9025><:f240,2Times New Roman,255,0,0>        ifopen = 1<:f>
  206.  
  207. <:#284,9025><:f240,2Times New Roman,255,0,0>    <:f><:f240,2Times New Roman,255,0,0>endif
  208.  
  209. <:#284,9025><:f240,2Times New Roman,255,0,0>    NEXT    <:f>
  210.  
  211. <:#284,9025>    <:f240,2Times New Roman,255,0,0>endif
  212.  
  213. <:#284,9025><:f240,2Times New Roman,255,0,0>    if ifopen = 0 then
  214.  
  215. <:#284,9025>        FileOpen(strcat$(cdir, file),  1, "")
  216.  
  217. <:#284,9025>        spellcheck(opts)
  218.  
  219. <:#284,9025>        save()
  220.  
  221. <:#284,9025>        fileclose()
  222.  
  223. <:#284,9025>    <:f240,2Times New Roman,255,0,0>else<:f>
  224.  
  225. <:#284,9025>        <:f240,2Times New Roman,255,0,0>selectwindow({file})
  226.  
  227. <:#284,9025><:f240,2Times New Roman,255,0,0>        spellcheck(Opts)
  228.  
  229. <:#284,9025><:f240,2Times New Roman,255,0,0>        save()
  230.  
  231. <:#284,9025><:f240,2Times New Roman,255,0,0>    endif        <:f>
  232.  
  233. <:#284,9025>next
  234.  
  235. <:#284,9025>end function
  236.  
  237. <:#284,9025>
  238.  
  239. <:#284,9025>DIALOG files
  240.  
  241. <:#284,9025>-2134376448 13 86 28 184 158 "" "" "Spell Check Multiple Files"
  242.  
  243. <:#284,9025>FONT 8 "Helv"
  244.  
  245. <:#284,9025>6 6 66 8 1000 1342308352 "static" "&Files to check:" 0 
  246.  
  247. <:#284,9025>6 16 66 58 9001 1352728587 "listbox" "" 0 
  248.  
  249. <:#284,9025>5 77 173 75 900 1342308359 "button" "&Options" 0 
  250.  
  251. <:#284,9025>10 89 163 9 101 1342242819 "button" "Beginning of document" 0 
  252.  
  253. <:#284,9025>10 99 163 9 102 1342242819 "button" "Include other te&xt streams" 0 
  254.  
  255. <:#284,9025>10 109 163 9 103 1342242819 "button" "Check for &repeated words" 0 
  256.  
  257. <:#284,9025>10 119 163 9 104 1342242819 "button" "Check words with &numbers" 0 
  258.  
  259. <:#284,9025>10 129 163 9 105 1342242819 "button" "Check words with &initial caps" 0 
  260.  
  261. <:#284,9025>10 139 163 9 106 1342242819 "button" "Include &user dictionary alternatives" 0 
  262.  
  263. <:#284,9025>136 6 40 14 1 1342373889 "button" "OK" 0 
  264.  
  265. <:#284,9025>136 22 40 14 2 1342373888 "button" "Cancel" 0 
  266.  
  267. <:#284,9025>78 26 36 1 8001 1342177280 "static" "" 0 
  268.  
  269. <:#284,9025>78 46 98 8 7999 1342177280 "static" "" 0 
  270.  
  271. <:#284,9025>END DIALOG
  272.  
  273. >
  274.  
  275. [Embedded]
  276. 00005596
  277. >
  278. [macsum] 2
  279. fspell 0 0 16 2
  280. files 1821 0 -1 89
  281. [macse]
  282. 14 fspell
  283. 0 1317
  284. 13
  285. 11 00000107
  286. 0 3 "Macro not available while running under HP NewWave."
  287. 6 0
  288. 15
  289. 9
  290. 0 32 2
  291. 5 101
  292. 8 1
  293. 5 105
  294. 6 1
  295. 18 2
  296. 12 00000204
  297. 10 00000231
  298. 5 1
  299. 6 1
  300. 3 0
  301. 8 1
  302. 10 00000127
  303. 0 31 "{1}" 1
  304. 10 00000171
  305. 0 268
  306. 13
  307. 0 16 [X] "*.sam"
  308. 13
  309. 0 31 9001 [X]
  310. 0 26 "." "files"
  311. 13
  312. 8 2
  313. 6 2
  314. 5 1
  315. 18 1
  316. 11 00000347
  317. 5 0
  318. 15
  319. 9
  320. 0 27 8001
  321. 13
  322. 7 ""
  323. 18 0
  324. 11 00000434
  325. 0 3 "select files from the list"
  326. 10 00000231
  327. 0 290
  328. 13
  329. 8 3
  330. 5 100
  331. 21 4 [X]
  332. 5 1
  333. 8 1
  334. 5 100
  335. 6 1
  336. 18 2
  337. 12 00000554
  338. 10 00000670
  339. 5 1
  340. 6 1
  341. 3 0
  342. 8 1
  343. 10 00000477
  344. 0 27 8001
  345. 13
  346. 0 20 [X] "{1}" " "
  347. 13
  348. 8 5
  349. 6 5
  350. 5 -1
  351. 18 0
  352. 11 00000641
  353. 10 00000670
  354. 6 1
  355. 6 5
  356. 23 4
  357. 10 00000521
  358. 5 0
  359. 8 6
  360. 0 27 101
  361. 13
  362. 11 00000727
  363. 6 6
  364. 5 1
  365. 3 0
  366. 8 6
  367. 0 27 102
  368. 13
  369. 1 3
  370. 11 00000779
  371. 6 6
  372. 5 2
  373. 3 0
  374. 8 6
  375. 0 27 103
  376. 13
  377. 1 3
  378. 11 00000831
  379. 6 6
  380. 5 4
  381. 3 0
  382. 8 6
  383. 0 27 104
  384. 13
  385. 1 3
  386. 11 00000883
  387. 6 6
  388. 5 8
  389. 3 0
  390. 8 6
  391. 0 27 105
  392. 13
  393. 1 3
  394. 11 00000936
  395. 6 6
  396. 5 16
  397. 3 0
  398. 8 6
  399. 0 27 106
  400. 13
  401. 11 00000984
  402. 6 6
  403. 5 64
  404. 3 0
  405. 8 6
  406. 5 1
  407. 8 7
  408. 6 1
  409. 5 1
  410. 3 1
  411. 6 7
  412. 18 2
  413. 12 00001079
  414. 10 00001809
  415. 5 1
  416. 6 7
  417. 3 0
  418. 8 7
  419. 10 00000994
  420. 6 7
  421. 22 4
  422. 8 5
  423. 6 7
  424. 5 1
  425. 18 0
  426. 11 00001147
  427. 5 1
  428. 8 6
  429. 10 00001159
  430. 5 129
  431. 8 6
  432. 5 0
  433. 8 8
  434. 0 1050
  435. 13
  436. 8 9
  437. 6 9
  438. 5 0
  439. 18 3
  440. 11 00001644
  441. 6 9
  442. 21 10 [X]
  443. 0 1051 &10
  444. 5 1
  445. 8 11
  446. 6 9
  447. 6 11
  448. 18 2
  449. 12 00001332
  450. 10 00001644
  451. 5 1
  452. 6 11
  453. 3 0
  454. 8 11
  455. 10 00001254
  456. 6 11
  457. 22 10
  458. 8 12
  459. 0 808 0 "{12}" "\"
  460. 13
  461. 8 13
  462. 6 13
  463. 5 0
  464. 18 1
  465. 11 00001481
  466. 6 13
  467. 5 1
  468. 3 0
  469. 8 14
  470. 0 808 "{14}" "{12}" "\"
  471. 13
  472. 8 13
  473. 10 00001381
  474. 0 14 "{12}"
  475. 13
  476. 8 15
  477. 6 15
  478. 6 14
  479. 3 1
  480. 5 1
  481. 3 0
  482. 0 807 "{12}" [X]
  483. 13
  484. 8 13
  485. 6 13
  486. 0 18 "{5}"
  487. 13
  488. 18 0
  489. 6 8
  490. 5 0
  491. 18 0
  492. 1 1
  493. 11 00001631
  494. 5 1
  495. 8 8
  496. 10 00001297
  497. 6 8
  498. 5 0
  499. 18 0
  500. 11 00001759
  501. 0 16 "{3}" "{5}"
  502. 13
  503. 2 102 1 [X] 1 ""
  504. 2 459 1 "{6}"
  505. 2 103 1
  506. 2 147 1
  507. 10 00001796
  508. 0 796 "{5}"
  509. 2 459 1 "{6}"
  510. 2 103 1
  511. 10 00001046
  512. 6 0
  513. 15
  514. 9
  515. DIALOG files
  516. -2134376448 13 86 28 184 158 "" "" "Spell Check Multiple Files" 
  517. FONT 8 "Helv" 
  518. 6 6 66 8 1000 1342308352 "static" "&Files to check:" 0 
  519. 6 16 66 58 9001 1352728587 "listbox" "" 0 
  520. 5 77 173 75 900 1342308359 "button" "&Options" 0 
  521. 10 89 163 9 101 1342242819 "button" "Beginning of document" 0 
  522. 10 99 163 9 102 1342242819 "button" "Include other te&xt streams" 0 
  523. 10 109 163 9 103 1342242819 "button" "Check for &repeated words" 0 
  524. 10 119 163 9 104 1342242819 "button" "Check words with &numbers" 0 
  525. 10 129 163 9 105 1342242819 "button" "Check words with &initial caps" 0 
  526. 10 139 163 9 106 1342242819 "button" "Include &user dictionary alternatives" 0 
  527. 136 6 40 14 1 1342373889 "button" "OK" 0 
  528. 136 22 40 14 2 1342373888 "button" "Cancel" 0 
  529. 78 26 36 1 8001 1342177280 "static" "" 0 
  530. 78 46 98 8 7999 1342177280 "static" "" 0 
  531. 00005621
  532.