home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 4 / AUCD4.iso / acorn / riscos / releases / oslib / examples / Examples / p3-562 < prev    next >
Text File  |  1994-03-24  |  726b  |  35 lines

  1. #include "os.h"
  2. #include "osfind.h"
  3. #include "pdriver.h"
  4.  
  5. void skeleton (void)
  6.  
  7. {  pdriver_info (...);
  8.  
  9.    osfind_openout (..., "printer:", ...);
  10.  
  11.    pdriver_select_job (...);
  12.  
  13.    if (... driver supports pdriver_declare_font ...)
  14.    {  while (... fonts to be declared ...)
  15.          pdriver_declare_font (...);
  16.       pdriver_declare_font (...);
  17.    }
  18.  
  19.    for (... each page to print ...)
  20.    {  do pdriver_give_rectangle (...);
  21.       while (... rectangles to declare ...);
  22.  
  23.       pdriver_draw_page (...);
  24.  
  25.       while (... more rectangles to print ...)
  26.       {  ... plot returned rectangles using supported output calls ...;
  27.          pdriver_get_rectangle (...);
  28.       }
  29.    }
  30.  
  31.    pdriver_end_job (...);
  32.  
  33.    osfind_close (...);
  34. }
  35.