home *** CD-ROM | disk | FTP | other *** search
INI File | 1991-08-19 | 7.6 KB | 678 lines |
- [ver]
- 4
- [sty]
- ~macro.sty
- [files]
- [charset]
- 82
- ANSI (Windows, IBM CP 1252)
- [revisions]
- 0
- [prn]
- PostScript Printer
- [lang]
- 1
- [desc]
- Select individual pages to print.
- Lotus WPD Marketing
- Intermediate
- Local Arrays, FilePrint
-
- 682670581
- 7
- 679087132
- 156
- 0
- 0
- 0
- 0
- 0
-
-
-
-
-
-
- 0
- [fopts]
- 0
- 1
- 0
- 0
- [lnopts]
- 2
- Body Text
- 1
- [docopts]
- 5
- 2
- [l1]
- 0
- [edoc]
- Macro by <+!>Charlie Pappas<-!>
-
-
- function SelectPrint()
-
- dim pages(125)
-
- size = 125
-
- hourglass(1)
-
- for i = 1 to size
-
- filllist(i)
-
- next
-
- hourglass(0)
-
- box = dialogbox("." "selprint")
-
- if box <<<;> 1
-
- return 0
-
- endif
-
- if getdialogfield$(11)
-
- firstend = getdialogfield$(8002)
-
- if 0 = isnumeric(firstend) or firstend << 1
-
- goto skip1
-
- endif
-
- for i = 1 to firstend ' set array
-
- pages(i) = 1
-
- next
-
- endif
-
- skip1:
-
- if getdialogfield$(12) ' need total pages in doc
-
- lastpages = getdialogfield$(8003)
-
- if 0 = isnumeric(lastpages) or lastpages << 1
-
- goto skip2
-
- endif
-
- ' newdisplay = display - 4096
-
- viewlevel = getprofilestring$("AmiPro" "ViewLevel")
-
- ViewPreferences(-13179, viewlevel)
-
- layoutmode()
-
- type("<[>esc]<[>esc]<[>esc]<[>ctrlend]")
-
- tpages = getpageno()
-
- ' if changedisplay ' if we changed it, set it back
-
- ' displaypreferences(display viewlevel)
-
- ' endif
-
- lastend = tpages - lastpages + 1 ' calculate start last pg no
-
- if lastend << 1
-
- goto skip2 ' lastend not valid
-
- endif
-
- for i = lastend to tpages ' set array
-
- ck = pages(i)
-
- if not ck = 1
-
- pages(i) = 1
-
- endif
-
- next
-
- endif
-
- skip2:
-
- startrange = getdialogfield$(8009)
-
- endrange = getdialogfield$(8004)
-
- if ((0 = isnumeric(startrange)) or (0 = isnumeric(endrange)) or (startrange << 1) or (endrange << 1))
-
- goto skip3
-
- endif
-
- for i = startrange to endrange
-
- ck = pages(i)
-
- if not ck = 1
-
- pages(i) = 1
-
- endif
-
- next
-
- skip3:
-
- startrange = getdialogfield$(8005)
-
- endrange = getdialogfield$(8006)
-
- if ((0 = isnumeric(startrange)) or (0 = isnumeric(endrange)) or (startrange << 1) or (endrange << 1))
-
- goto skip4
-
- endif
-
- for i = startrange to endrange
-
- ck = pages(i)
-
- if not ck = 1
-
- pages(i) = 1
-
- endif
-
- next
-
- skip4:
-
- addpages = getdialogfield$(8000)
-
- i = 1
-
- while (1)
-
- pg = strfield$(addpages i " ")
-
- if pg = -1 or pg = ""
-
- break
-
- endif
-
- if 0 = isnumeric(pg)
-
- goto skippy
-
- endif
-
- ck = pages(pg)
-
- if not ck = 1
-
- pages(pg) = 1
-
- endif
-
- skippy:
-
- i = i + 1
-
- wend
-
- start = 1
-
- while (start <<= size)
-
- ck = pages(start)
-
- if ck = 1 then
-
- stop = start + 1
-
- while (1)
-
- ck = pages(stop)
-
- if ck <<<;> 1 then
-
- stop = stop - 1
-
- ' message("{start} - {stop}")
-
- FilePrint(1 start stop 1536)
-
- start = stop + 1
-
- break
-
- endif
-
- stop = stop + 1
-
- wend
-
- else
-
- start = start + 1
-
- endif
-
- wend
-
- message("SelectPrint is done")
-
- end function
-
-
- DIALOG selprint
-
- -2134376448 22 96 30 172 114 "" "" "Select Pages to Print"
-
- FONT 8 "Helv"
-
- 6 8 28 10 1000 1342177280 "static" "&Pages:" 0
-
- 6 20 24 92 9000 1352728585 "listbox" "" 0
-
- 40 4 82 40 100 1342308359 "button" "Print" 0
-
- 44 14 28 10 110 1342242819 "button" "&First:" 0
-
- 94 16 22 10 1002 1342177280 "static" "&pages" 0
-
- 76 14 14 12 8002 1350631552 "edit" "" 0
-
- 44 28 28 10 120 1342242819 "button" "&Last:" 0
-
- 94 30 22 10 1003 1342177280 "static" "&pages" 0
-
- 76 28 14 12 8003 1350631552 "edit" "" 0
-
- 40 44 82 40 130 1342308359 "button" "Range" 0
-
- 44 56 20 10 1004 1342177280 "static" "Page:" 0
-
- 64 54 22 12 8009 1350631552 "edit" "" 0
-
- 88 56 8 10 1005 1342177280 "static" "to" 0
-
- 96 54 22 12 8004 1350631552 "edit" "" 0
-
- 44 70 20 10 1006 1342177280 "static" "Page:" 0
-
- 64 68 22 12 8005 1350631552 "edit" "" 0
-
- 88 70 8 10 1007 1342177280 "static" "to" 0
-
- 96 68 22 12 8006 1350631552 "edit" "" 0
-
- 40 86 46 8 1001 1342308352 "static" "&Other pages:" 0
-
- 40 96 126 12 8000 1350631552 "edit" "" 0
-
- 126 6 40 14 1 1342373889 "button" "OK" 0
-
- 126 22 40 14 2 1342373888 "button" "Cancel" 0
-
- END DIALOG
-
- >
-
- [Embedded]
- 00004200
- >
- [macsum] 2
- SelectPrint 0 0 17 2
- selprint 2328 0 -1 114
- [macse]
- 14 SelectPrint
- 5 125
- 21 1 [X]
- 5 125
- 8 2
- 0 296 1
- 5 1
- 8 3
- 6 2
- 6 3
- 18 2
- 12 00000139
- 10 00000164
- 5 1
- 6 3
- 3 0
- 8 3
- 10 00000064
- 0 25 "{3}"
- 10 00000106
- 0 296 0
- 0 26 "." "selprint"
- 13
- 8 4
- 6 4
- 5 1
- 18 1
- 11 00000244
- 5 0
- 15
- 9
- 0 27 11
- 13
- 11 00000479
- 0 27 8002
- 13
- 8 5
- 5 0
- 0 277 "{5}"
- 13
- 18 0
- 6 5
- 5 1
- 18 5
- 1 2
- 11 00000365
- 10 00000479
- 5 1
- 8 3
- 6 5
- 6 3
- 18 2
- 12 00000450
- 10 00000479
- 5 1
- 6 3
- 3 0
- 8 3
- 10 00000375
- 6 3
- 5 1
- 23 1
- 10 00000417
- 0 27 12
- 13
- 11 00000949
- 0 27 8003
- 13
- 8 6
- 5 0
- 0 277 "{6}"
- 13
- 18 0
- 6 6
- 5 1
- 18 5
- 1 2
- 11 00000600
- 10 00000949
- 0 286 "AmiPro" "ViewLevel"
- 13
- 8 7
- 2 206 1 -13179 "{7}"
- 2 210 1
- 0 6 "[27][27][27][16419]"
- 0 294
- 13
- 8 8
- 6 8
- 6 6
- 3 1
- 5 1
- 3 0
- 8 9
- 6 9
- 5 1
- 18 5
- 11 00000783
- 10 00000949
- 6 9
- 8 3
- 6 8
- 6 3
- 18 2
- 12 00000868
- 10 00000949
- 5 1
- 6 3
- 3 0
- 8 3
- 10 00000793
- 6 3
- 22 1
- 8 10
- 6 10
- 5 1
- 18 0
- 1 3
- 11 00000936
- 6 3
- 5 1
- 23 1
- 10 00000835
- 0 27 8009
- 13
- 8 11
- 0 27 8004
- 13
- 8 12
- 5 0
- 0 277 "{11}"
- 13
- 18 0
- 5 0
- 0 277 "{12}"
- 13
- 18 0
- 6 11
- 5 1
- 18 5
- 6 12
- 5 1
- 18 5
- 1 2
- 1 2
- 1 2
- 11 00001124
- 10 00001292
- 6 11
- 8 3
- 6 12
- 6 3
- 18 2
- 12 00001211
- 10 00001292
- 5 1
- 6 3
- 3 0
- 8 3
- 10 00001135
- 6 3
- 22 1
- 8 10
- 6 10
- 5 1
- 18 0
- 1 3
- 11 00001279
- 6 3
- 5 1
- 23 1
- 10 00001178
- 0 27 8005
- 13
- 8 11
- 0 27 8006
- 13
- 8 12
- 5 0
- 0 277 "{11}"
- 13
- 18 0
- 5 0
- 0 277 "{12}"
- 13
- 18 0
- 6 11
- 5 1
- 18 5
- 6 12
- 5 1
- 18 5
- 1 2
- 1 2
- 1 2
- 11 00001467
- 10 00001635
- 6 11
- 8 3
- 6 12
- 6 3
- 18 2
- 12 00001554
- 10 00001635
- 5 1
- 6 3
- 3 0
- 8 3
- 10 00001478
- 6 3
- 22 1
- 8 10
- 6 10
- 5 1
- 18 0
- 1 3
- 11 00001622
- 6 3
- 5 1
- 23 1
- 10 00001521
- 0 27 8000
- 13
- 8 13
- 5 1
- 8 3
- 5 1
- 11 00001942
- 0 20 "{13}" "{3}" " "
- 13
- 8 14
- 6 14
- 5 -1
- 18 0
- 6 14
- 7 ""
- 18 0
- 1 2
- 11 00001784
- 10 00001942
- 5 0
- 0 277 "{14}"
- 13
- 18 0
- 11 00001839
- 10 00001909
- 6 14
- 22 1
- 8 10
- 6 10
- 5 1
- 18 0
- 1 3
- 11 00001909
- 6 14
- 5 1
- 23 1
- 6 3
- 5 1
- 3 0
- 8 3
- 10 00001666
- 5 1
- 8 15
- 6 15
- 6 2
- 18 4
- 11 00002289
- 6 15
- 22 1
- 8 10
- 6 10
- 5 1
- 18 0
- 11 00002254
- 6 15
- 5 1
- 3 0
- 8 16
- 5 1
- 11 00002241
- 6 16
- 22 1
- 8 10
- 6 10
- 5 1
- 18 1
- 11 00002206
- 6 16
- 5 1
- 3 1
- 8 16
- 2 111 1 1 "{15}" "{16}" 1536
- 6 16
- 5 1
- 3 0
- 8 15
- 10 00002241
- 6 16
- 5 1
- 3 0
- 8 16
- 10 00002053
- 10 00002276
- 6 15
- 5 1
- 3 0
- 8 15
- 10 00001953
- 0 3 "SelectPrint is done"
- 6 0
- 15
- 9
- DIALOG selprint
- -2134376448 22 96 30 172 114 "" "" "Select Pages to Print"
- FONT 8 "Helv"
- 6 8 28 10 1000 1342177280 "static" "&Pages:" 0
- 6 20 24 92 9000 1352728585 "listbox" "" 0
- 40 4 82 40 100 1342308359 "button" "Print" 0
- 44 14 28 10 110 1342242819 "button" "&First:" 0
- 94 16 22 10 1002 1342177280 "static" "&pages" 0
- 76 14 14 12 8002 1350631552 "edit" "" 0
- 44 28 28 10 120 1342242819 "button" "&Last:" 0
- 94 30 22 10 1003 1342177280 "static" "&pages" 0
- 76 28 14 12 8003 1350631552 "edit" "" 0
- 40 44 82 40 130 1342308359 "button" "Range" 0
- 44 56 20 10 1004 1342177280 "static" "Page:" 0
- 64 54 22 12 8009 1350631552 "edit" "" 0
- 88 56 8 10 1005 1342177280 "static" "to" 0
- 96 54 22 12 8004 1350631552 "edit" "" 0
- 44 70 20 10 1006 1342177280 "static" "Page:" 0
- 64 68 22 12 8005 1350631552 "edit" "" 0
- 88 70 8 10 1007 1342177280 "static" "to" 0
- 96 68 22 12 8006 1350631552 "edit" "" 0
- 40 86 46 8 1001 1342308352 "static" "&Other pages:" 0
- 40 96 126 12 8000 1350631552 "edit" "" 0
- 126 6 40 14 1 1342373889 "button" "OK" 0
- 126 22 40 14 2 1342373888 "button" "Cancel" 0
- 00004225
-