home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / pc / pm65sdk / sourcecode / pagemakerclasslibrary / commands / pprint.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-15  |  840 b   |  30 lines

  1. /*
  2.  *--- PPrint.cpp ----------------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 4:19 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PPrint.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PPrint.h"
  12. #include "PRequestBuf.h"
  13. #include "PCommand.h"
  14.  
  15. PPrint::PPrint
  16.   (    short            nCopies,
  17.     short            nFirstPage,
  18.     short            nLastPage,
  19.     const char *    fPrintToDisk,
  20.     const char *    sPCPrinter )
  21. {
  22.     PRequestBuf request(strlen(fPrintToDisk) + strlen(sPCPrinter) + 10);
  23.  
  24.     request << nCopies << nFirstPage << nLastPage << fPrintToDisk << sPCPrinter;
  25.             
  26.     PCommand command(pm_print, request);
  27. }
  28.  
  29. // end of PPrint.cpp
  30.