home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / Pascal / MAXONPASCAL2.DMS / in.adf / INCLUDE / devices / prtbase.h < prev    next >
Encoding:
Text File  |  1994-07-25  |  3.4 KB  |  129 lines

  1. {$if not def DEVICES_PRTBASE_H} CONST DEVICES_PRTBASE_H=0;
  2.  
  3. { *******************************************************************
  4.   ** KickPascal-Include-Datei "devices/prtbase.h" zu Kickstart 3.0 **
  5.   ******************************************************************* }
  6.  
  7. TYPE p_DeviceData = ^DeviceData;
  8. TYPE p_PrinterSegment = ^PrinterSegment;
  9. TYPE p_PrinterData = ^PrinterData;
  10. TYPE p_PrinterExtendedData = ^PrinterExtendedData;
  11.  
  12. {$if not def EXEC_NODES_H;incl "exec/nodes.h";endif}
  13. {$if not def EXEC_LISTS_H;incl "exec/lists.h";endif}
  14. {$if not def EXEC_PORTS_H;incl "exec/ports.h";endif}
  15. {$if not def EXEC_LIBRARIES_H;incl "exec/libraries.h";endif}
  16. {$if not def EXEC_TASKS_H;incl "exec/tasks.h";endif}
  17. {$if not def DEVICES_PARALLEL_H;incl "devices/parallel.h";endif}
  18. {$if not def DEVICES_SERIAL_H;incl "devices/serial.h";endif}
  19. {$if not def DEVICES_TIMER_H;incl "devices/timer.h";endif}
  20. {$if not def LIBRARIES_DOSEXTENS_H;incl "libraries/dosextens.h";endif}
  21. {$if not def INTUITION_INTUITION_H;incl "intuition/intuition.h";endif}
  22.  
  23.  
  24. TYPE DeviceData = RECORD
  25.  dd_Device      : _Library;
  26.  dd_Segment     : Ptr;
  27.  dd_ExecBase    : Ptr;
  28.  dd_CmdVectors  : Ptr;
  29.  dd_CmdBytes    : Ptr;
  30.  dd_NumCommands : Word;
  31. END;
  32.  
  33. CONST
  34.  P_OLDSTKSIZE = $0800;
  35.  P_STKSIZE    = $1000;
  36.  P_BUFSIZE    = 256;
  37.  P_SAFESIZE   = 128;
  38.  
  39.  
  40. TYPE PrinterData = RECORD
  41.  pd_Device         : DeviceData;
  42.  pd_Unit           : MsgPort;
  43.  pd_PrinterSegment : BPTR;
  44.  pd_PrinterType    : Word;
  45.  pd_SegmentData    : p_PrinterSegment;
  46.  pd_PrintBuf       : Ptr;
  47.  pd_PWrite         : Ptr;
  48.  pd_PBothReady     : Ptr;
  49.  pd_ior0           : RECORD
  50.                      CASE Integer OF
  51.                      0 : (pd_p0 : IoExtPar);
  52.                      1 : (pd_s0 : IoExtSer);
  53.                      END;
  54.  pd_ior1           : RECORD
  55.                      CASE Integer OF
  56.                      0 : (pd_p1 : IoExtPar);
  57.                      1 : (pd_s1 : IoExtSer);
  58.                      END;
  59.  pd_TIOR           : timerequest;
  60.  pd_IORPort        : MsgPort;
  61.  pd_TC             : Task ;
  62.  pd_OldStk         : ARRAY[0..P_OLDSTKSIZE-1] OF Byte;
  63.  pd_Flags          : Byte;
  64.  pd_pad            : Byte;
  65.  pd_Preferences    : Preferences;
  66.  pd_PWaitEnabled   : Byte;
  67.  pd_Flags1         : Byte;
  68.  pd_Stk            : ARRAY[0..P_STKSIZE-1] OF Byte;
  69. END;
  70.  
  71. CONST
  72.  PPCB_GFX    = 0;
  73.  PPCF_GFX    = $1;
  74.  PPCB_COLOR  = 1;
  75.  PPCF_COLOR  = $2;
  76.  
  77. CONST
  78.  PPC_BWALPHA    = $00;
  79.  PPC_BWGFX      = $01;
  80.  PPC_COLORALPHA = $02;
  81.  PPC_COLORGFX   = $03;
  82.  
  83. CONST
  84.  PCC_BW         = $01;
  85.  PCC_YMC        = $02;
  86.  PCC_YMC_BW     = $03;
  87.  PCC_YMCB       = $04;
  88.  PCC_4COLOR     = $04;
  89.  PCC_ADDITIVE   = $08;
  90.  PCC_WB         = $09;
  91.  PCC_BGR        = $0A;
  92.  PCC_BGR_WB     = $0B;
  93.  PCC_BGRW       = $0C;
  94.  PCC_MULTI_PASS = $10;
  95.  
  96.  
  97. TYPE PrinterExtendedData = RECORD
  98.  ped_PrinterName  : Str;
  99.  ped_Init         : Ptr;
  100.  ped_Expunge      : Ptr;
  101.  ped_Open         : Ptr;
  102.  ped_Close        : Ptr;
  103.  ped_PrinterClass : Byte;
  104.  ped_ColorClass   : Byte;
  105.  ped_MaxColumns   : Byte;
  106.  ped_NumCharSets  : Byte;
  107.  ped_NumRows      : Word;
  108.  ped_MaxXDots     : Long;
  109.  ped_MaxYDots     : Long;
  110.  ped_XDotsInch    : Word;
  111.  ped_YDotsInch    : Word;
  112.  ped_Commands     : Ptr;
  113.  ped_DoSpecial    : Ptr;
  114.  ped_Render       : Ptr;
  115.  ped_TimeoutSecs  : Long;
  116.  ped_8BitChars    : Ptr;
  117.  ped_PrintMode    : LongInt;
  118.  ped_ConvFunc     : LongInt;
  119. END;
  120.  
  121. TYPE PrinterSegment = RECORD
  122.  ps_NextSegment : Long;
  123.  ps_runAlert    : Long;
  124.  ps_Version     : Word;
  125.  ps_Revision    : Word;
  126.  ps_PED         : PrinterExtendedData;
  127. END;
  128. {$endif}
  129.