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 / pdeleteprivatedata.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1996-08-15  |  1.1 KB  |  42 lines

  1. /*
  2.  *--- PDeletePrivateData.cpp ----------------------------------------------
  3.  * Copyright (c) 1995-96 Adobe Systems Incorporated.  All rights reserved.
  4.  * Created on Thu, Oct 12, 1995 @ 10:48 PM by Paul Ferguson.
  5.  *
  6.  * Description:  For notes about this class, refer to the
  7.  * PCL documentation file PDeletePrivateData.html
  8.  *-------------------------------------------------------------------------
  9.  */
  10.  
  11. #include <string.h>
  12.  
  13. #include "PMCQErrs.h"
  14. #include "PCommand.h"
  15. #include "PRequestBuf.h"
  16. #include "PDeletePrivateData.h"
  17.  
  18. PDeletePrivateData::PDeletePrivateData
  19.   (    const char * sDeveloperID,
  20.     const char * sPluginID,
  21.     short cTargetClass,
  22.     unsigned long nTypeFlag,
  23.     unsigned long nTargetID ) throw (PMErr)
  24. {
  25.     if (strlen(sDeveloperID) != 4 || strlen(sPluginID) != 4)
  26.         throw CQ_INVALID_CQ_ARG;
  27.     
  28.     char buf[100];                    // plenty big to hold everything.
  29.     PRequestBuf request(buf);
  30.  
  31.     request << sDeveloperID
  32.             << sPluginID
  33.             << cTargetClass
  34.             << nTypeFlag
  35.             << (short) 1            // only one delete at a time.
  36.             << nTargetID;
  37.  
  38.     PCommand command(pm_deleteprivatedata, request);    
  39. }
  40.  
  41. // end of PDeletePrivateData.cpp
  42.