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

  1. /*
  2.  *--- PBlackAttributes.cpp ------------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Sun, Oct 22, 1995 @ 3:40 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PBlackAttributes.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PBlackAttributes.h"
  12. #include "PGetBlackAttributes.h"
  13. #include "PRequestBuf.h"
  14. #include "PCommand.h"
  15.  
  16. const size_t REQUEST_SIZE = 10;
  17.  
  18. PBlackAttributes::PBlackAttributes
  19.   (    short dBlackLimit,
  20.     PMBool  bOvrprntTxt,
  21.     short dOvrprntTxtSz,
  22.     PMBool  bOvrprntLines,
  23.     PMBool  bOvrprntFills )
  24. {
  25.     char temp[REQUEST_SIZE];
  26.     PRequestBuf request(temp);
  27.     
  28.     request    << dBlackLimit
  29.             << bOvrprntTxt
  30.             << dOvrprntTxtSz
  31.             << bOvrprntLines
  32.             << bOvrprntFills;
  33.  
  34.     PCommand command(pm_blackattributes, request);
  35. }
  36.  
  37. PBlackAttributes::PBlackAttributes(const PGetBlackAttributes& blackAttr)
  38. {
  39.     char temp[REQUEST_SIZE];
  40.     PRequestBuf request(temp);
  41.     
  42.     request    << blackAttr.dBlackLimit
  43.             << blackAttr.bOvrprntTxt
  44.             << blackAttr.dOvrprntTxtSz
  45.             << blackAttr.bOvrprntLines
  46.             << blackAttr.bOvrprntFills;
  47.  
  48.     PCommand command(pm_blackattributes, request);
  49. }
  50.  
  51. // end of PBlackAttributes.cpp
  52.