home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 16 / CD_ASCQ_16_0994.iso / news / 4611 / fw16d.ins / INCLUDE / PRINT.CH < prev    next >
Text File  |  1994-05-17  |  1KB  |  36 lines

  1. #ifndef _PRINT_CH
  2. #define _PRINT_CH
  3.  
  4. //----------------------------------------------------------------------------//
  5. // Printer
  6.  
  7. #xcommand PRINT [ <oPrint> ] ;
  8.              [ <name:NAME,DOC> <cDocument> ] ;
  9.        => ;
  10.           [ <oPrint> := ] PrintBegin( [<cDocument>] )
  11.  
  12. #xcommand PAGE => PageBegin()
  13.  
  14. #xcommand ENDPAGE => PageEnd()
  15.  
  16. #xcommand ENDPRINT => PrintEnd()
  17.  
  18. //----------------------------------------------------------------------------//
  19. // Print Preview    - original idea by Garry Prefontaine
  20.  
  21. #xcommand REDEFINE PRINTPREVIEW <oPrintPV> ;
  22.              [ ON PAINT <uPaint> ] ;
  23.              [ VIEWSIZE <nViewWidth>, <nViewHeight> ] ;
  24.              [ RANGE <nMinPage>, <nMaxPage> ] ;
  25.              [ ID <nId> ] ;
  26.              [ <of: OF, WINDOW, DIALOG> <oWnd> ] ;
  27.              [ <color:COLOR, COLORS> <nClrFore> [,<nClrBack>] ] ;
  28.        => ;
  29.           <oPrintPV> := TPrintPV():ReDefine( <{uPaint}>, <nMinPage>,;
  30.              <nMaxPage>, <nViewWidth>, <nViewHeight>, <nId>, <oWnd>,;
  31.              <nClrFore>, <nClrBack> )
  32.  
  33. //----------------------------------------------------------------------------//
  34.  
  35. #endif
  36.