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 / pprintpaperps.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-09-04  |  1.1 KB  |  49 lines

  1. /*
  2.  *--- PPrintPaperPS.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 PPrintPaperPS.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PPrintPaperPS.h"
  12. #include "PRequestBuf.h"
  13. #include "PCommand.h"
  14.  
  15. PPrintPaperPS::PPrintPaperPS
  16.   (    const char *    sSize,
  17.     const char *    sSource,
  18.     long            yLength,
  19.     long            xWidth,
  20.     long            yPaperFeed,
  21.     long            xPaperMargin,
  22.     short            bOrientation,
  23.     PMBool            bCenter,
  24.     short            cTiling,
  25.     long            xOverlap,
  26.     short            cScaleType,
  27.     short            nVal )    
  28. {
  29.     PRequestBuf request(strlen(sSize) + strlen(sSource) + 100);
  30.  
  31.     request << sSize
  32.             << sSource
  33.             << yLength
  34.             << xWidth
  35.             << yPaperFeed
  36.             << xPaperMargin
  37.             << bOrientation
  38.             << bCenter
  39.             << cTiling
  40.             << xOverlap
  41.             << cScaleType
  42.             << nVal
  43.             << (short) 0;    // obsolete parameter "cDuplex"
  44.             
  45.     PCommand command(pm_printpaperps, request);
  46. }
  47.  
  48. // end of PPrintPaperPS.cpp
  49.