home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 May
/
Pcwk5b98.iso
/
DISK1
/
MACROS.CMZ
/
PRNPAGES.SMM
< prev
next >
Wrap
INI File
|
1993-03-14
|
10KB
|
817 lines
[ver]
4
[sty]
_macro.sty
[files]
[charset]
82
ANSI (Windows, IBM CP 1252)
[revisions]
0
[prn]
PostScript Printer
[port]
LPT1:
[lang]
1
[desc]
Drukowanie wybranych stron
Lotus WPD Marketing
Intermediate
Local Arrays, FilePrint
noautorun
723946398
14
679087132
250
3
579
3059
9
11
0
[fopts]
0
1
0
0
[lnopts]
2
Body Text
1
[docopts]
5
2
[GramStyle]
[ParaNum]
1
[lay]
Standard
516
[rght]
16833
11908
1
1440
1440
1
1440
1440
0
1
0
1
0
2
1
1440
10465
12
1
720
1
1440
1
2160
1
2880
1
3600
1
4320
1
5040
1
5760
1
6480
1
7200
1
7920
1
8640
[hrght]
[lyfrm]
1
11200
0
0
11908
1440
0
1
3
1 0 0 0 0 0 0
0
0
1
[frmlay]
1440
11908
1
1440
72
1
792
1440
0
1
0
1
1
0
1
1440
10465
1
3
9360
[txt]
<+B>Modified by Marek G. B</y>czek from UNICORN Poland
>
[frght]
[lyfrm]
1
13256
0
15393
11908
16833
0
1
3
1 0 0 0 0 0 0
0
0
2
[frmlay]
16833
11908
1
1440
792
1
15465
1440
0
1
0
1
1
0
1
1440
10465
2
2
4680
3
9360
[txt]
>
[elay]
[l1]
0
[pg]
3
49 0 32 32 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
97 0 19 0 0 1 0 65535 65535 Standard 65535 0 0 0 0 0 0 0 0 0 65535 0 0 65535 0 0 0 0 0
137 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
[edoc]
<:#278,9025>Macro by <+!>Charlie Pappas<-!>
<:#278,9025>
@Function@<:#278,9025>function SelectPrint()
<:#278,9025>if GetOpenFileCount() <<1
<:#278,9025> exit function
<:#278,9025>endif
<:#278,9025>ignorekeyboard(2)
<:#278,9025>'singlestep(1)
<:#278,9025>size = evalfield("numpages")
<:#278,9025>dim pages((size + 1))
<:#278,9025>hourglass(1)
<:#278,9025>for i = 1 to size
<:#278,9025> filllist(i)
<:#278,9025>next
<:#278,9025>hourglass(0)
<:#278,9025>box = dialogbox("." "selprint")
<:#278,9025>if box <<<;> 1
<:#278,9025> return 0
<:#278,9025>endif
<:#278,9025>if getdialogfield$(110)
<:#278,9025> firstend = getdialogfield$(8002)
<:#278,9025> if 0 = isnumeric(firstend) or firstend << 1
<:#278,9025> goto skip1
<:#278,9025> endif
<:#278,9025> for i = 1 to firstend ' set array
<:#278,9025> pages(i) = 1
<:#278,9025> next
<:#278,9025>endif
<:#278,9025>skip1:
<:#278,9025>if getdialogfield$(120) ' need total pages in doc
<:#278,9025> lastpages = getdialogfield$(8003)
<:#278,9025> if 0 = isnumeric(lastpages) or lastpages << 1
<:#278,9025> goto skip2
<:#278,9025> endif
<:#278,9025> tpages = size
<:#278,9025> lastend = tpages - lastpages + 1 ' calculate start last pg no
<:#278,9025> if lastend << 1
<:#278,9025> goto skip2 ' lastend not valid
<:#278,9025> endif
<:#278,9025> for i = lastend to tpages ' set array
<:#278,9025> ck = pages(i)
<:#278,9025> if not ck = 1
<:#278,9025> pages(i) = 1
<:#278,9025> endif
<:#278,9025> next
<:#278,9025>endif
<:#278,9025>skip2:
<:#278,9025>startrange = getdialogfield$(8009)
<:#278,9025>endrange = getdialogfield$(8004)
<:#556,9025>if ((0 = isnumeric(startrange)) or (0 = isnumeric(endrange)) or (startrange << 1) or (endrange << 1))
<:#278,9025> goto skip3
<:#278,9025>endif
<:#278,9025>for i = startrange to endrange
<:#278,9025> ck = pages(i)
<:#278,9025> if not ck = 1
<:#278,9025> pages(i) = 1
<:#278,9025> endif
<:#278,9025>next
<:#278,9025>skip3:
<:#278,9025>startrange = getdialogfield$(8005)
<:#278,9025>endrange = getdialogfield$(8006)
<:#556,9025>if ((0 = isnumeric(startrange)) or (0 = isnumeric(endrange)) or (startrange << 1) or (endrange << 1))
<:#278,9025> goto skip4
<:#278,9025>endif
<:#278,9025>for i = startrange to endrange
<:#278,9025> ck = pages(i)
<:#278,9025> if not ck = 1
<:#278,9025> pages(i) = 1
<:#278,9025> endif
<:#278,9025>next
<:#278,9025>skip4:
<:#278,9025>addpages = getdialogfield$(8000)
<:#278,9025>i = 1
<:#278,9025>while (1)
<:#278,9025> pg = strfield$(addpages i " ")
<:#278,9025> if pg = -1 or pg = ""
<:#278,9025> break
<:#278,9025> endif
<:#278,9025> if 0 = isnumeric(pg)
<:#278,9025> goto skippy
<:#278,9025> endif
<:#278,9025> ck = pages(pg)
<:#278,9025> if not ck = 1
<:#278,9025> pages(pg) = 1
<:#278,9025> endif
<:#278,9025> skippy:
<:#278,9025> i = i + 1
<:#278,9025>wend
<:#278,9025>start = 1
<:#278,9025>while (start <<= size)
<:#278,9025> ck = pages(start)
<:#278,9025> if ck = 1 then
<:#278,9025> stop = start + 1
<:#278,9025> while (1)
<:#278,9025> ck = pages(stop)
<:#278,9025> if ck <<<;> 1 then
<:#278,9025> stop = stop - 1
<:#278,9025>' message("{start} - {stop}")
<:#278,9025> FilePrint(1 start stop 1536)
<:#278,9025> start = stop + 1
<:#278,9025> break
<:#278,9025> endif
<:#278,9025> stop = stop + 1
<:#278,9025> wend
<:#278,9025> else
<:#278,9025> start = start + 1
<:#278,9025> endif
<:#278,9025>wend
<:#278,9025>message("Zrobione")
<:#278,9025>end function
<:#278,9025>
DIALOG selprint
-2134376448 22 98 30 200 114 "" "" "Wybierz Strony do Drukowania"
FONT 8 "Helv"
6 8 28 10 1000 1342177280 "static" "&Strony:" 0
6 20 24 92 9000 1352728585 "listbox" "" 0
40 4 107 40 100 1342308359 "button" "Drukuj" 0
44 14 48 10 110 1342242819 "button" "&Pierwsze:" 0
123 16 22 10 1002 1342177280 "static" "&stron" 0
103 14 14 12 8002 1350631552 "edit" "" 0
44 28 51 10 120 1342242819 "button" "&Ostatnie:" 0
123 30 22 10 1003 1342177280 "static" "&stron" 0
103 28 14 12 8003 1350631552 "edit" "" 0
40 44 107 40 130 1342308359 "button" "Zakres" 0
44 56 34 10 1004 1342177280 "static" "od strony:" 0
79 54 22 12 8009 1350631552 "edit" "" 0
104 56 12 10 1005 1342177280 "static" "do:" 0
118 54 22 12 8004 1350631552 "edit" "" 0
44 70 34 10 1006 1342177280 "static" "od strony:" 0
79 68 22 12 8005 1350631552 "edit" "" 0
104 70 13 10 1007 1342177280 "static" "do:" 0
118 68 22 12 8006 1350631552 "edit" "" 0
40 86 46 8 1001 1342308352 "static" "&Inne strony:" 0
40 96 155 12 8000 1350631552 "edit" "" 0
154 6 40 14 1 1342373889 "button" "OK" 0
154 22 40 14 2 1342373888 "button" "Anuluj" 0
END DIALOG
>
[Embedded]
00006636
>
[macsum] 2
SelectPrint 0 0 16 2
selprint 2286 0 -1 111
[macse]
14 SelectPrint
0 1050
13
5 1
18 5
11 00000064
6 0
15
9
0 32 2
0 1289 "numpages"
13
8 1
6 1
5 1
3 0
21 2 [X]
0 296 1
5 1
8 3
6 1
6 3
18 2
12 00000219
10 00000244
5 1
6 3
3 0
8 3
10 00000144
0 25 "{3}"
10 00000186
0 296 0
0 26 "." "selprint"
13
8 4
6 4
5 1
18 1
11 00000324
5 0
15
9
0 27 110
13
11 00000560
0 27 8002
13
8 5
5 0
0 277 "{5}"
13
18 0
6 5
5 1
18 5
1 2
11 00000446
10 00000560
5 1
8 3
6 5
6 3
18 2
12 00000531
10 00000560
5 1
6 3
3 0
8 3
10 00000456
6 3
5 1
23 2
10 00000498
0 27 120
13
11 00000928
0 27 8003
13
8 6
5 0
0 277 "{6}"
13
18 0
6 6
5 1
18 5
1 2
11 00000682
10 00000928
6 1
8 7
6 7
6 6
3 1
5 1
3 0
8 8
6 8
5 1
18 5
11 00000764
10 00000928
6 8
8 3
6 7
6 3
18 2
12 00000849
10 00000928
5 1
6 3
3 0
8 3
10 00000774
6 3
22 2
8 9
6 9
5 1
18 0
1 3
11 00000915
6 3
5 1
23 2
10 00000816
0 27 8009
13
8 10
0 27 8004
13
8 11
5 0
0 277 "{10}"
13
18 0
5 0
0 277 "{11}"
13
18 0
6 10
5 1
18 5
6 11
5 1
18 5
1 2
1 2
1 2
11 00001103
10 00001269
6 10
8 3
6 11
6 3
18 2
12 00001190
10 00001269
5 1
6 3
3 0
8 3
10 00001114
6 3
22 2
8 9
6 9
5 1
18 0
1 3
11 00001256
6 3
5 1
23 2
10 00001157
0 27 8005
13
8 10
0 27 8006
13
8 11
5 0
0 277 "{10}"
13
18 0
5 0
0 277 "{11}"
13
18 0
6 10
5 1
18 5
6 11
5 1
18 5
1 2
1 2
1 2
11 00001444
10 00001610
6 10
8 3
6 11
6 3
18 2
12 00001531
10 00001610
5 1
6 3
3 0
8 3
10 00001455
6 3
22 2
8 9
6 9
5 1
18 0
1 3
11 00001597
6 3
5 1
23 2
10 00001498
0 27 8000
13
8 12
5 1
8 3
5 1
11 00001915
0 20 "{12}" "{3}" " "
13
8 13
6 13
5 -1
18 0
6 13
7 ""
18 0
1 2
11 00001759
10 00001915
5 0
0 277 "{13}"
13
18 0
11 00001814
10 00001882
6 13
22 2
8 9
6 9
5 1
18 0
1 3
11 00001882
6 13
5 1
23 2
6 3
5 1
3 0
8 3
10 00001641
5 1
8 14
6 14
6 1
18 4
11 00002258
6 14
22 2
8 9
6 9
5 1
18 0
11 00002223
6 14
5 1
3 0
8 15
5 1
11 00002210
6 15
22 2
8 9
6 9
5 1
18 1
11 00002175
6 15
5 1
3 1
8 15
2 111 1 1 "{14}" "{15}" 1536
6 15
5 1
3 0
8 14
10 00002210
6 15
5 1
3 0
8 15
10 00002024
10 00002245
6 14
5 1
3 0
8 14
10 00001926
0 3 "Zrobione"
6 0
15
9
DIALOG selprint
-2134376448 22 98 30 200 114 "" "" "Wybierz Strony do Drukowania"
FONT 8 "Helv"
6 8 28 10 1000 1342177280 "static" "&Strony:" 0
6 20 24 92 9000 1352728585 "listbox" "" 0
40 4 107 40 100 1342308359 "button" "Drukuj" 0
44 14 48 10 110 1342242819 "button" "&Pierwsze:" 0
123 16 22 10 1002 1342177280 "static" "&stron" 0
103 14 14 12 8002 1350631552 "edit" "" 0
44 28 51 10 120 1342242819 "button" "&Ostatnie:" 0
123 30 22 10 1003 1342177280 "static" "&stron" 0
103 28 14 12 8003 1350631552 "edit" "" 0
40 44 107 40 130 1342308359 "button" "Zakres" 0
44 56 34 10 1004 1342177280 "static" "od strony:" 0
79 54 22 12 8009 1350631552 "edit" "" 0
104 56 12 10 1005 1342177280 "static" "do:" 0
118 54 22 12 8004 1350631552 "edit" "" 0
44 70 34 10 1006 1342177280 "static" "od strony:" 0
79 68 22 12 8005 1350631552 "edit" "" 0
104 70 13 10 1007 1342177280 "static" "do:" 0
118 68 22 12 8006 1350631552 "edit" "" 0
40 86 46 8 1001 1342308352 "static" "&Inne strony:" 0
40 96 155 12 8000 1350631552 "edit" "" 0
154 6 40 14 1 1342373889 "button" "OK" 0
154 22 40 14 2 1342373888 "button" "Anuluj" 0
00006661