home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / dokpr1.zip / action.h next >
C/C++ Source or Header  |  1995-06-16  |  4KB  |  105 lines

  1. /**************************************************************************
  2.  *                                                                        *
  3.  *                                                                        *
  4.  *          This code is copyright (c) 1994                               *
  5.  *                     Athena Design, Inc.                                *
  6.  *                                                                        *
  7.  *                                                                        *
  8.  *                ALL RIGHTS RESERVED                                     *
  9.  *                                                                        *
  10.  *                                                                        *
  11.  *                                                                        *
  12.  *                                                                        *
  13.  *                                                                        *
  14.  **************************************************************************/
  15.  
  16.  
  17. // 94-08-24 dpp changed action values from #define's to const's
  18. // per IBM style guidelines
  19.  
  20. #ifndef _MH_actions
  21.  
  22. #define _MH_actions
  23.  
  24. // here are a bunch of actions
  25. const int defaultAction = 0;
  26. const int noAction = 0xffffffff;
  27.  
  28. const int recalcDoAction = 1;
  29. const int redisplayDoAction = 0x10;
  30. const int changedSizeDoAction = 0x100;
  31. const int contentsChangedDoAction = 0x1000;
  32. const int formatChangedDoAction = 0x10000;
  33. const int resetViewDoAction = 0x100000;
  34. const int allDoAction = (contentsChangedDoAction | formatChangedDoAction |
  35.     recalcDoAction | redisplayDoAction | changedSizeDoAction);
  36. const int normalDoAction = (contentsChangedDoAction | recalcDoAction | redisplayDoAction);
  37. const int normFormDoAction = (normalDoAction | formatChangedDoAction);
  38.  
  39.  
  40. // some constants for various functions
  41.  
  42. const int clearFormatModelFunc = 0;
  43. const int clearValuesModelFunc = 1;
  44. const int clearFormulasModelFunc = 2;
  45. const int clearStringsModelFunc = 3;
  46. const int clearNumbersModelFunc = 4;
  47.  
  48. const int convertFormToValueModelFunc = 0;
  49. const int convertStringsToNumbersModelFunc = 1;
  50. const int convertNumbersToStringsModelFunc = 2;
  51. const int convertToUpperModelFunc = 3;
  52. const int convertToLowerModelFunc = 4;
  53. const int convertToProperModelFunc = 5;
  54.  
  55. const int autoSumModelFunc = 0;
  56. const int autoAveModelFunc = 1;
  57. const int autoStdDevModelFunc = 2;
  58. const int autoVarModelFunc = 3;
  59. const int autoMinModelFunc = 4;
  60. const int autoMaxModelFunc = 5;
  61. const int autoProdModelFunc = 6;
  62. const int autoSumSqModelFunc = 7;
  63.  
  64. const int noLock = 0;
  65. const int readOnlyLock = 1;
  66. const int noReadLock = 2;
  67.  
  68. const int noProtection = 0;
  69. const int normalProtection = 1;
  70.  
  71. // recalculation order
  72.  
  73. const int rowRecalcOrder = 0;
  74. const int columnRecalcOrder = 1;
  75. const int naturalRecalcOrder = 2;
  76. const int allowCircRecalcOrder = 3;
  77.  
  78. // the types of things to copy into the pasteboard
  79. const int textPBOp = 1;
  80. const int mesaPBOp = 2;
  81. const int pictPBOp = 4;
  82. const int allPBOp = (textPBOp | mesaPBOp | pictPBOp);
  83.  
  84. // the following are valid paste types
  85. const int normalPaste = 0;
  86. const int valuesPaste = 1;
  87. const int formatPaste = 2;
  88. const int transposePaste = 3;
  89. const int insertDownPaste = 4;
  90. const int insertRightPaste = 5;
  91. const int movePaste = 6;
  92. const int linkPaste = 7;
  93.  
  94. const int contentsFindFlag = 1;
  95. const int valueFindFlag = 2;
  96. const int numberFindFlag = 4;
  97. const int stringFindFlag = 8;
  98. const int exactFindFlag = 16;
  99. const int caseFindFlag = 32;
  100.  
  101.  
  102.  
  103. // ifndef _MH_actions
  104. #endif
  105.