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 / pstringcommand.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-06  |  1.8 KB  |  55 lines

  1. /*
  2.  *--- PStringCommand.h -----------------------------------------
  3.  * Copyright (c) 1995 Adobe Systems, Inc.  All rights reserved.
  4.  * Created on Thu, Oct 12, 1995 @ 10:53 PM by Paul Ferguson.
  5.  *
  6.  * Description:
  7.  *--------------------------------------------------------------
  8.  */
  9. #ifndef __PStringCommand__
  10. #define __PStringCommand__
  11.  
  12. #ifndef __PCommand__
  13.     #include "PCommand.h"
  14. #endif
  15.  
  16. template <ePMCommand COMMAND>
  17. class PStringCommand
  18. {
  19.  
  20. public:
  21.  
  22.     PStringCommand(const char * theString) { PCommand command(COMMAND, theString); }
  23.  
  24. private:
  25.  
  26.     PStringCommand();
  27. };
  28.  
  29. typedef PStringCommand<pm_addprinterstyle>        PAddPrinterStyle;
  30. typedef PStringCommand<pm_basedon>                PBasedOn;
  31. typedef PStringCommand<pm_defaultdir>            PDefaultDir;
  32. typedef PStringCommand<pm_defaultprintclrspace>    PDefPrintColorSpace;
  33. typedef PStringCommand<pm_deletemasterpage>        PDeleteMasterPage;
  34. typedef PStringCommand<pm_dictionary>            PDictionary;
  35. typedef PStringCommand<pm_downloadwebcontent>    PDownloadWebContent;
  36. typedef PStringCommand<pm_editoriginal>            PEditOriginal;
  37. typedef PStringCommand<pm_font>                    PFont;
  38. typedef PStringCommand<pm_nextstyle>            PNextStyle;
  39. typedef PStringCommand<pm_printerstyle>            PPrinterStyle;
  40. typedef PStringCommand<pm_relink>                PRelink;
  41. typedef PStringCommand<pm_removecolor>            PRemoveColor;
  42. typedef PStringCommand<pm_removeprinterstyle>    PRemovePrinterStyle;
  43. typedef PStringCommand<pm_removestyle>            PRemoveStyle;
  44. typedef PStringCommand<pm_style>                PStyle;
  45. typedef PStringCommand<pm_stylebegin>            PStyleBegin;
  46. typedef PStringCommand<pm_targetlayer>            PTargetLayer;
  47. typedef PStringCommand<pm_textenter>            PTextEnter;
  48.  
  49. // PageMaker will execute the char string as a text command.
  50. typedef PStringCommand<pm_execute_text>            PExecuteText;
  51.  
  52. #endif
  53.  
  54. // end of PStringCommand.h
  55.