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

  1. /*
  2.  *--- PRuleAbove.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 PRuleAbove.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include "PRuleAbove.h"
  12. #include "PRequestBuf.h"
  13. #include "PCommand.h"
  14. #include "PGetRuleAbove.h"
  15.  
  16. PRuleAbove::PRuleAbove
  17.   (    PMBool            bRuleOn,
  18.     short            cStyle,
  19.     const char *    sLineColor,
  20.     short            cLineWidth,
  21.     long            xLeftIndent,
  22.     long            xRightIndent,
  23.     short            dWeight,
  24.     short            bOpaque,
  25.     short            nLineTint )
  26. {
  27.     PRequestBuf request(strlen(sLineColor) + 64);
  28.  
  29.     request << bRuleOn
  30.             << cStyle
  31.             << sLineColor
  32.             << cLineWidth
  33.             << xLeftIndent
  34.             << xRightIndent
  35.             << dWeight
  36.             << bOpaque
  37.             << nLineTint;
  38.             
  39.     PCommand command(pm_ruleabove, request);
  40. }
  41.  
  42. PRuleAbove::PRuleAbove(const PGetRuleAbove& ruleInfo)
  43. {
  44.     PRequestBuf request(strlen(ruleInfo.sLineColor) + 64);
  45.  
  46.     request << ruleInfo.bOnOff
  47.             << ruleInfo.cLineStyle
  48.             << ruleInfo.sLineColor
  49.             << ruleInfo.cLineWidth
  50.             << ruleInfo.xLeftIndent
  51.             << ruleInfo.xRightIndent
  52.             << ruleInfo.dWeight
  53.             << ruleInfo.bOpaque
  54.             << ruleInfo.nLineTint;
  55.             
  56.     PCommand command(pm_ruleabove, request);
  57. }
  58.  
  59. // end of PRuleAbove.cpp
  60.