home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 January / Chip_1997-01_cd.bin / ms95 / disk22 / dir08 / f013630.re_ / f013630.re
Text File  |  1996-04-02  |  4KB  |  103 lines

  1. /*----------------------------------------------------------------------+
  2. |                                    |
  3. |  Copyright (1993-1995) Bentley Systems, Inc., All rights reserved.    |
  4. |                                    |
  5. |  "MicroStation" is a registered trademark and "MDL" and "MicroCSL"    |
  6. |  are trademarks of Bentley Systems, Inc.                    |
  7. |                                    |
  8. |  Limited permission is hereby granted to reproduce and modify this    |
  9. |  copyrighted material provided that the resulting code is used only     |
  10. |  in conjunction with Bentley Systems products under the terms of the    |
  11. |  license agreement provided therein, and that this notice is retained    |
  12. |  in its entirety in any such reproduction or modification.        |
  13. |                                    |
  14. +----------------------------------------------------------------------*/
  15. /*----------------------------------------------------------------------+
  16. |                                    |
  17. |    $Logfile:   J:/mdl/examples/chngtxt/chtxtcmd.r_v  $
  18. |   $Workfile:   chtxtcmd.r  $
  19. |   $Revision:   5.6  $
  20. |       $Date:   16 Jun 1995 14:54:56  $
  21. |                                    |
  22. +----------------------------------------------------------------------*/
  23. /*----------------------------------------------------------------------+
  24. |                                    |
  25. |   Function -                                |
  26. |                                    |
  27. |    Command Table for Change Text example program            |
  28. |                                    |
  29. +----------------------------------------------------------------------*/
  30. #pragma suppressREQCmds
  31.  
  32. #include <rscdefs.h>
  33. #include <cmdclass.h>
  34.  
  35. /* Version 100 */
  36.  
  37. /*----------------------------------------------------------------------+
  38. |                                    |
  39. |  Local Defines                            |
  40. |                                    |
  41. +----------------------------------------------------------------------*/
  42. #define   CT_NONE                      0
  43. #define   CT_EXAMPLECHANGECOMMANDS    1
  44. #define   CT_CHANGETYPE                  2
  45. #define   CT_TEXT                      3
  46. #define   CT_FENCE                       4
  47. #define   CT_FENCHANGE                   5
  48.  
  49. /*----------------------------------------------------------------------+
  50. |                                    |
  51. |   Main Change Commands                        |
  52. |                                    |
  53. +----------------------------------------------------------------------*/
  54. Table    CT_EXAMPLECHANGECOMMANDS =
  55.     {
  56.         { 1, CT_CHANGETYPE, MANIPULATION,    REQ,    "CHANGE" },
  57.     { 2, CT_FENCE,         FENCE,        REQ,    "FENCE" }
  58.     };
  59.  
  60. /*----------------------------------------------------------------------+
  61. |                                    |
  62. |    Type Subtable                            |
  63. |                                    |
  64. +----------------------------------------------------------------------*/
  65. Table    CT_CHANGETYPE =
  66.     {
  67.     { 1, CT_TEXT,    INHERIT,    NONE,    "TEXT" }
  68.     };
  69.  
  70. /*----------------------------------------------------------------------+
  71. |                                    |
  72. |    TEXT Subcommands                        |
  73. |                                    |
  74. +----------------------------------------------------------------------*/
  75. Table    CT_TEXT =
  76.     {
  77.     { 1, CT_NONE,    INHERIT,    DEF,    "SINGLE" },
  78.     { 2, CT_NONE,    FENCE,        NONE,    "FENCE" },
  79.     { 3, CT_NONE,    INHERIT,    NONE,    "ALL" },
  80.     { 4, CT_NONE,    INHERIT,    NONE,    "FIND" },
  81.     { 5, CT_NONE,    INHERIT,    NONE,    "CHANGE" }
  82.     }; /* Endtable text */
  83.  
  84. /*----------------------------------------------------------------------+
  85. |                                    |
  86. |    FENCE Subcommands                        |
  87. |                                    |
  88. +----------------------------------------------------------------------*/
  89. Table    CT_FENCE =
  90.     {
  91.     { 1, CT_FENCHANGE, INHERIT,    REQ,    "CHANGE" }
  92.     };
  93.  
  94. /*----------------------------------------------------------------------+
  95. |                                    |
  96. |      FENCE CHANGE Subcommands                        |
  97. |                                    |
  98. +----------------------------------------------------------------------*/
  99. Table    CT_FENCHANGE =
  100.     {
  101.     { 1, CT_NONE,    INHERIT,    NONE,    "TEXT" }
  102.     };
  103.