home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Cobol 24 Hours
/
Sams_Cobol_24_Hours.iso
/
Cobol32
/
PowerCBL
/
powercbl.Z
/
powprint.ocb
< prev
next >
Wrap
Text File
|
1995-12-19
|
8KB
|
153 lines
000010 IDENTIFICATION DIVISION.
000020 CLASS-ID. POWPRINT.
000030 ENVIRONMENT DIVISION.
000040 CONFIGURATION SECTION.
000050 SPECIAL-NAMES.
000060 SYMBOLIC CONSTANT IS EXTERNAL
000070*
000080** CONSTANT FOR POW-PAPERTYPE
000090*
000100 POW-PAPERLETTER IS 1
000110 POW-PAPERA3 IS 8
000120 POW-PAPERA4 IS 9
000130 POW-PAPERA5 IS 11
000140 POW-PAPERB4 IS 12
000150 POW-PAPERB5 IS 13
000160*
000170** CONSTANT FOR POW-PAGEFORMAT
000180*
000190 POW-CURPRNTPAGE IS 1
000200 POW-CURPAGEPERTOT IS 2
000210*
000220** CONSTANT FOR POW-PRINTRANGE
000230*
000240* POW-ALLPAGE IS 1
000250* POW-NOTALLPAGE IS 2
000260
000270** CONSTANT FOR POW-PAPERDIRECT
000280*
000290 POW-PORTRAIT IS 1
000300 POW-LANDSCAPE IS 2
000310
000320** VALUE FOR FONTNAME
000330
000340 POW-MSMYUNGJO IS "élér û╛Æ⌐"
000350 POW-MSGOTHIC IS "élér âRâVâbâN"
000360 POW-ARIAL IS "Arial"
000370 POW-COURIERNEW IS "Courier New"
000380 POW-TIMESNEWROMAN IS "Times New Roman"
000390 POW-WINGDINGS IS "Wingdings"
000400 POW-FENCES IS "Fences"
000410 POW-MTEXTRA IS "MT Extra"
000420 POW-SYMBOL IS "Symbol"
000430 CLASS SECTION.
000440 INHERIT POWFUND EXTERNAL. *> âNâëâXîpÅ│é╠ïLÅq
000450 DATA DIVISION.
000460 CLASS SECTION.
000470 01 POW-BOTTOMMARGIN PIC S9(4) COMP-5.
000480 01 POW-UPMARGIN PIC S9(4) COMP-5.
000490 01 POW-LEFTMARGIN PIC S9(4) COMP-5.
000500 01 POW-RIGHTMARGIN PIC S9(4) COMP-5.
000510 01 POW-PUNCHMARGIN PIC S9(4) COMP-5.
000520 01 POW-PAPERTYPE PIC S9(4) COMP-5.
000530 01 POW-PAGENOFORMAT PIC S9(4) COMP-5.
000540 01 POW-HEADSTRING PIC X(256).
000550 01 POW-HEADSTRINGN PIC N(128).
000560 01 POW-PAPERDIRECT PIC S9(4) COMP-5.
000570 PROCEDURE DIVISION.
000580**
000590** GET PROCESS
000600**
000610 FUNCTION REFERENCE OF POW-UPMARGIN () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
000620 REPLACING NAME BY "XPOWPRINTGETUPMARGIN" .
000630 FUNCTION REFERENCE OF POW-BOTTOMMARGIN () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
000640 REPLACING NAME BY "XPOWPRINTGETBOTTOMMARGIN" .
000650 FUNCTION REFERENCE OF POW-LEFTMARGIN () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
000660 REPLACING NAME BY "XPOWPRINTGETLEFTMARGIN" .
000670 FUNCTION REFERENCE OF POW-RIGHTMARGIN () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
000680 REPLACING NAME BY "XPOWPRINTGETRIGHTMARGIN" .
000690 FUNCTION REFERENCE OF POW-PUNCHMARGIN () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
000700 REPLACING NAME BY "XPOWPRINTGETPUNCHMARGIN" .
000710 FUNCTION REFERENCE OF POW-PAPERTYPE () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
000720 REPLACING NAME BY "XPOWPRINTGETPAPERTYPE" .
000730 FUNCTION REFERENCE OF POW-PAGENOFORMAT () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
000740 REPLACING NAME BY "XPOWPRINTGETPAGEFORMAT" .
000750 FUNCTION REFERENCE OF POW-HEADSTRING () IS EXTERNAL BY VALUE PIC X(256)
000760 REPLACING NAME BY "XPOWPRINTGETHEADSTRING" .
000770 FUNCTION REFERENCE OF POW-HEADSTRINGN () IS EXTERNAL BY VALUE PIC N(128)
000780 REPLACING NAME BY "XPOWPRINTGETHEADSTRINGN" .
000790 FUNCTION REFERENCE OF POW-PAPERDIRECT () IS EXTERNAL BY VALUE PIC S9(4) COMP-5
000800 REPLACING NAME BY "XPOWPRINTGETPAPERDIRECT" .
000810**
000820** SET PROCESS
000830**
000840 FUNCTION MOVE OF POW-UPMARGIN (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000850 REPLACING NAME BY "XPOWPRINTSETUPMARGIN" .
000860 FUNCTION MOVE OF POW-BOTTOMMARGIN (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000870 REPLACING NAME BY "XPOWPRINTSETBOTTOMMARGIN" .
000880 FUNCTION MOVE OF POW-LEFTMARGIN (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000890 REPLACING NAME BY "XPOWPRINTSETLEFTMARGIN" .
000900 FUNCTION MOVE OF POW-RIGHTMARGIN (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000910 REPLACING NAME BY "XPOWPRINTSETRIGHTMARGIN" .
000920 FUNCTION MOVE OF POW-PUNCHMARGIN (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000930 REPLACING NAME BY "XPOWPRINTSETPUNCHMARGIN" .
000940 FUNCTION MOVE OF POW-PAPERTYPE (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000950 REPLACING NAME BY "XPOWPRINTSETPAPERTYPE" .
000960 FUNCTION MOVE OF POW-PAGENOFORMAT (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
000970 REPLACING NAME BY "XPOWPRINTSETPAGEFORMAT" .
000980 FUNCTION MOVE OF POW-HEADSTRING (BY CONTENT TYPE IS ALPHANUMERIC PIC X(256)) IS EXTERNAL
000990 REPLACING NAME BY "XPOWPRINTSETHEADSTRING" .
001000 FUNCTION MOVE OF POW-HEADSTRINGN (BY CONTENT TYPE IS ALPHANUMERIC PIC N(128)) IS EXTERNAL
001010 REPLACING NAME BY "XPOWPRINTSETHEADSTRINGN" .
001020 FUNCTION MOVE OF POW-PAPERDIRECT (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
001030 REPLACING NAME BY "XPOWPRINTSETPAPERDIRECT" .
001040 FUNCTION MOVE OF POW-TITLEPRN (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
001050 REPLACING NAME BY "XPOWPRINTSETHEADPRNOPTION" .
001060 FUNCTION MOVE OF POW-PAGEPRN (BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
001070 REPLACING NAME BY "XPOWPRINTSETPGNUMPRNPRNOPTION" .
001080**
001090** CALL FUNCTIONS
001100**
001110 FUNCTION OPENPRINTER () IS EXTERNAL
001120 REPLACING NAME BY "XPOWPRINTSTART" .
001130 FUNCTION CLOSEPRINTER () IS EXTERNAL
001140 REPLACING NAME BY "XPOWPRINTSTOP" .
001150 FUNCTION WRITESHEET () IS EXTERNAL
001160 REPLACING NAME BY "XPOWPRINTSHEET" .
001170 FUNCTION WRITEITEM (BY CONTENT TYPE IS ALPHANUMERIC PIC X(15)) IS EXTERNAL
001180 REPLACING NAME BY "XPOWPRINTITEM" .
001190 FUNCTION WRITEITEM (BY CONTENT TYPE IS ALPHANUMERIC PIC X(15)
001200 BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5
001210 BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
001220 REPLACING NAME BY "XPOWPRINTITEM1" .
001230 FUNCTION WRITETEXT (BY CONTENT TYPE IS ALPHANUMERIC PIC X(128)
001240 BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5
001250 BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
001260 REPLACING NAME BY "XPOWPRINTTEXT".
001270 FUNCTION WRITETEXT (BY CONTENT TYPE IS ALPHANUMERIC PIC X(128)
001280 BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5
001290 BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5
001300 BY CONTENT TYPE IS ALPHANUMERIC PIC X(32)
001310 BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
001320 REPLACING NAME BY "XPOWPRINTTEXT1".
001330 FUNCTION WRITETEXTN (BY CONTENT TYPE IS ALPHANUMERIC PIC N(64)
001340 BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5
001350 BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
001360 REPLACING NAME BY "XPOWPRINTTEXT".
001370 FUNCTION WRITETEXTN (BY CONTENT TYPE IS ALPHANUMERIC PIC N(64)
001380 BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5
001390 BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5
001400 BY CONTENT TYPE IS ALPHANUMERIC PIC X(32)
001410 BY VALUE TYPE IS NUMERIC PIC S9(4) COMP-5) IS EXTERNAL
001420 REPLACING NAME BY "XPOWPRINTTEXT1".
001430 FUNCTION CHANGEPAGE () IS EXTERNAL
001440 REPLACING NAME BY "XPOWPRINTCHANGEPAGE" .
001450 FUNCTION GETPRINTRECT() IS EXTERNAL BY VALUE PIC X(8)
001460 REPLACING NAME BY "XPOWPRINTGETPRINTRECT" .
001470 FUNCTION GETPOSITION (BY CONTENT TYPE IS ALPHANUMERIC PIC X(15))
001480 IS EXTERNAL BY VALUE PIC X(8)
001490* FUNCTION GETPOSITION (BY CONTENT TYPE IS ALPHANUMERIC PIC X(8))
001500* IS EXTERNAL BY VALUE PIC X(15)
001510 REPLACING NAME BY "XPOWPRINTGETPOSITION" .
001520 END CLASS POWPRINT.