Home   Package List   Routine Alphabetical List   Global Alphabetical List   FileMan Files List   FileMan Sub-Files List   Package Component Lists   Package-Namespace Mapping  
Routine: IBDF2F2

IBDF2F2.m

Go to the documentation of this file.
  1. IBDF2F2 ;ALB/AAS - PRINT VA LOGO AS ANCHORS ON ENCOUNTER FORMS ; 25-JUNE-97
  1. ;;3.0;AUTOMATED INFO COLLECTION SYS;**3**;APR 24, 1997
  1. ;
  1. ANCHORS ; -- print anchors,
  1. ; escape &a positions cursor at specified vert and horiz decipoints
  1. ; escape &f1y2X prints macro #1
  1. ;
  1. ; -- old anchors composed of two narrow rectangles
  1. ; escape *c prints rectangle of specified vert and horiz decipoints
  1. ; 0P is for complete fill.
  1. ;
  1. D MACRO
  1. ;
  1. ; -- top left corner (ANCHOR 1)
  1. W !,$C(27),"&a184v4H",$C(27),"&f1y2X"
  1. ;
  1. ; -- top right (ANCHOR 3)
  1. W !,$C(27),"&a184v5534H",$C(27),"&f1y2X"
  1. ;
  1. ; -- bottom left (ANCHOR 4)
  1. W !,$C(27),"&a7615v4H",$C(27),"&f1y2X"
  1. ;
  1. ; -- scannable page
  1. I $G(IBFORM("SCAN",PAGE)),'$G(IBDSAMP) W $C(27),"&a7576v3400H",$C(27),"&f1y2X"
  1. ;
  1. ;bottom right (ANCHOR 6)
  1. W $C(27),"&a7615v5534H",$C(27),"&f1y2X"
  1. Q
  1. ;
  1. MACRO ; -- build macro for printing va logo
  1. ; -- position cursor before printing macro
  1. W $C(27),"&f1Y" ; define marco as #1
  1. W !
  1. W $C(27),"&f0X" ; start macro definition
  1. D VALOGO
  1. W $C(27),"&f1X" ; stop macro definition
  1. W !
  1. W $C(27),"&f1y10X" ; make macro permanent, still defined after reset
  1. Q
  1. ;
  1. ; -- position curser before calling directly
  1. W $C(27),"*t150R" ; raster graphics at (75,150,or 300) dots per inch
  1. W $C(27),"*r0F" ; presentation mode orientation of logical page
  1. W $C(27),"*r1A" ; sets the left graphics margin to current x
  1. ; -- begin raster data
  1. 1 W $C(27),"*b5W",$C(3),$C(224),$C(15),$C(248),$C(0)
  1. 2 W $C(27),"*b5W",$C(7),$C(240),$C(15),$C(248),$C(0)
  1. 3 W $C(27),"*b5W",$C(15),$C(240),$C(31),$C(252),$C(0)
  1. 4 ;W $C(27),"*b5W",$C(15),$C(248),$C(31),$C(252),$C(0)
  1. 5 W $C(27),"*b5W",$C(15),$C(248),$C(31),$C(254),$C(0)
  1. 6 W $C(27),"*b5W",$C(31),$C(252),$C(63),$C(254),$C(0)
  1. 7 W $C(27),"*b5W",$C(31),$C(252),$C(63),$C(255),$C(0)
  1. 8 W $C(27),"*b5W",$C(32),$C(254),$C(112),$C(63),$C(0)
  1. 9 W $C(27),"*b5W",$C(32),$C(254),$C(112),$C(63),$C(128)
  1. 10 W $C(27),"*b5W",$C(96),$C(126),$C(112),$C(31),$C(128)
  1. 11 W $C(27),"*b5W",$C(112),$C(127),$C(224),$C(15),$C(192)
  1. 12 W $C(27),"*b5W",$C(240),$C(127),$C(224),$C(15),$C(192)
  1. 13 W $C(27),"*b5W",$C(248),$C(63),$C(193),$C(7),$C(224)
  1. 14 W $C(27),"*b5W",$C(252),$C(63),$C(193),$C(7),$C(224)
  1. 15 W $C(27),"*b5W",$C(252),$C(31),$C(195),$C(131),$C(240)
  1. 16 W $C(27),"*b5W",$C(126),$C(15),$C(195),$C(131),$C(240)
  1. 17 W $C(27),"*b5W",$C(126),$C(15),$C(131),$C(131),$C(240)
  1. 18 W $C(27),"*b5W",$C(63),$C(7),$C(135),$C(193),$C(248)
  1. 19 W $C(27),"*b5W",$C(63),$C(3),$C(135),$C(193),$C(248)
  1. 20 W $C(27),"*b5W",$C(31),$C(131),$C(7),$C(224),$C(252)
  1. 21 W $C(27),"*b5W",$C(31),$C(129),$C(15),$C(224),$C(252)
  1. 22 W $C(27),"*b5W",$C(15),$C(193),$C(15),$C(240),$C(124)
  1. 23 W $C(27),"*b5W",$C(15),$C(192),$C(12),$C(0),$C(120)
  1. 24 W $C(27),"*b5W",$C(7),$C(224),$C(30),$C(0),$C(120)
  1. 25 W $C(27),"*b5W",$C(7),$C(224),$C(30),$C(0),$C(56)
  1. 26 W $C(27),"*b5W",$C(3),$C(240),$C(63),$C(0),$C(48)
  1. 27 W $C(27),"*b5W",$C(3),$C(240),$C(63),$C(0),$C(16)
  1. 28 W $C(27),"*b5W",$C(1),$C(255),$C(255),$C(255),$C(240)
  1. 29 W $C(27),"*b5W",$C(1),$C(255),$C(255),$C(255),$C(224)
  1. 30 W $C(27),"*b5W",$C(0),$C(255),$C(255),$C(255),$C(224)
  1. 31 W $C(27),"*b5W",$C(0),$C(255),$C(239),$C(255),$C(192)
  1. 32 ;W $C(27),"*b5W",$C(0),$C(127),$C(239),$C(255),$C(192)
  1. 33 W $C(27),"*b5W",$C(0),$C(127),$C(199),$C(255),$C(128)
  1. 34 W $C(27),"*b5W",$C(0),$C(63),$C(131),$C(255),$C(128)
  1. W $C(27),"*rB" ; signifies the end of the raster graphic
  1. Q
  1. ;
  1. TESTM ; -- Test macro printing
  1. S PAGE=1,IBFORM("SCAN",PAGE)=1,IBDSAMP=0
  1. D ^%ZIS G:POP END
  1. U IO
  1. ;
  1. ; -- sets top of page
  1. W $C(27),"&l0E"
  1. W !
  1. D ANCHORS
  1. END D ^%ZISC
  1. K PAGE,IBDFORM,IBDSAMP
  1. Q
  1. ;
  1. TESTD ; -- Test printing without macro
  1. S PAGE=1,IBFORM("SCAN",PAGE)=1,IBDSAMP=0
  1. D ^%ZIS G:POP END1
  1. U IO
  1. ;
  1. ; -- sets top of page
  1. W $C(27),"&l0E"
  1. W !
  1. D DIRECT
  1. END1 D ^%ZISC
  1. K PAGE,IBFORM,IBDSAMP
  1. Q
  1. DIRECT ; -- print logo direct without macros
  1. ; -- top left corner (ANCHOR 1)
  1. W !,$C(27),"&a184v4H",$C(27) D VALOGO
  1. ;
  1. ; -- top right (ANCHOR 3)
  1. W !,$C(27),"&a184v5534H" D VALOGO
  1. ;
  1. W !!!,"PRINTING ANCHORS DIRECTLY, NO MACRO"
  1. ;
  1. ; -- bottom left (ANCHOR 4)
  1. W !,$C(27),"&a7615v4H" D VALOGO
  1. ;
  1. ; -- scannable page
  1. I $G(IBFORM("SCAN",PAGE)),'$G(IBDSAMP) W $C(27),"&a7576v3400H" D VALOGO
  1. ;
  1. ;bottom right (ANCHOR 6)
  1. W $C(27),"&a7615v5534H" D VALOGO
  1. Q