home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 January / Chip_1997-01_cd.bin / ms95 / disk22 / dir08 / f013640.re_ / f013640.re
Text File  |  1996-04-02  |  4KB  |  122 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/chtxtdlg.h_v  $
  18. |   $Workfile:   chtxtdlg.h  $
  19. |   $Revision:   5.8  $
  20. |       $Date:   14 Feb 1996 11:19:20  $
  21. |                                    |
  22. +----------------------------------------------------------------------*/
  23. /*----------------------------------------------------------------------+
  24. |                                    |
  25. |   Function -                                |
  26. |                                    |
  27. |    Change Text dialog resource defines and structures        |
  28. |                                    |
  29. +----------------------------------------------------------------------*/
  30. #if !defined (__chtxtdlgH__)
  31. #define    __chtxtdlgH__
  32.  
  33. #include    <rtypes.h>
  34.  
  35. #define CHNGTXT_REPLACE     0
  36. #define CHNGTXT_APPEND        1
  37. #define CHNGTXT_PREPEND     2
  38.  
  39. /*----------------------------------------------------------------------+
  40. |                                    |
  41. |   Dialog Box IDs                            |
  42. |                                    |
  43. +----------------------------------------------------------------------*/
  44. #define DIALOGID_ReplaceText        1
  45.  
  46. /*----------------------------------------------------------------------+
  47. |                                    |
  48. |   Resource Type and ID for Prefs                    |
  49. |                                    |
  50. +----------------------------------------------------------------------*/
  51. #define RTYPE_chText            RTYPE ('c', 'h', 'T', 't')
  52. #define    RSCID_chTextPrefs        1
  53.  
  54. /*----------------------------------------------------------------------+
  55. |                                    |
  56. |   Option Button IDs                            |
  57. |                                    |
  58. +----------------------------------------------------------------------*/
  59. #define OPTIONBUTTONID_Change        1
  60.  
  61. /*----------------------------------------------------------------------+
  62. |                                    |
  63. |   Text Item IDs                            |
  64. |                                    |
  65. +----------------------------------------------------------------------*/
  66. #define TEXTID_Find            1
  67. #define TEXTID_ChangeTo            2
  68.  
  69. /*----------------------------------------------------------------------+
  70. |                                    |
  71. |   Toggle Button IDs                            |
  72. |                                    |
  73. +----------------------------------------------------------------------*/
  74. #define TOGGLEID_MatchCase        1
  75. #define TOGGLEID_WholeWords        2
  76. #define TOGGLEID_RegularExps         3
  77. #define TOGGLEID_InCells             4
  78. #define TOGGLEID_Fractions             5
  79.  
  80. /*----------------------------------------------------------------------+
  81. |                                    |
  82. |   Push Button IDs                            |
  83. |                                    |
  84. +----------------------------------------------------------------------*/
  85. #define PUSHBUTTONID_Find        1
  86. #define PUSHBUTTONID_Change        2
  87. #define PUSHBUTTONID_ChngAll         3
  88. #define PUSHBUTTONID_ChngFence         4
  89. #define PUSHBUTTONID_ChngSingle         5
  90.  
  91. /*----------------------------------------------------------------------+
  92. |                                    |
  93. |   Hook Function IDs                            |
  94. |                                    |
  95. +----------------------------------------------------------------------*/
  96. #define HOOKID_Dialog_ReplaceText       1
  97. #define HOOKID_Item_MatchCase        2
  98. #define HOOKID_Item_WholeWords        3
  99. #define HOOKID_Item_RegularExps         4
  100. #define HOOKID_Item_InCells         5
  101. #define HOOKID_Item_Find        6
  102.  
  103. /*----------------------------------------------------------------------+
  104. |                                    |
  105. |   Local Structure Definitions                        |
  106. |                                    |
  107. +----------------------------------------------------------------------*/
  108. typedef struct changetextinfo
  109.     {
  110.     char    oldString[128];
  111.     char    newString[128];
  112.     int        cellText;
  113.  
  114.     int     wholeWords;
  115.     int     matchCase;
  116.     int     regularExps;
  117.     int        fractions;
  118.     int        changeAction;
  119.     } ChangeTextInfo;
  120.     
  121. #endif
  122.