Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

124 lines
3.1 KiB

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. SOFTINFO.H
  5. History:
  6. --*/
  7. #if !defined(ESPUTIL_SoftInfo_h_INCLUDED)
  8. #define ESPUTIL_SoftInfo_h_INCLUDED
  9. struct LTAPIENTRY SoftCol
  10. {
  11. // Unique string names for columns
  12. static const WCHAR * szIcon;
  13. static const WCHAR * szSource;
  14. static const WCHAR * szTarget;
  15. static const WCHAR * szPreviousSource;
  16. static const WCHAR * szInstructions;
  17. static const WCHAR * szInstrAtt;
  18. static const WCHAR * szNote;
  19. static const WCHAR * szResourceID;
  20. static const WCHAR * szTranslationStatus;
  21. static const WCHAR * szBinaryStatus;
  22. static const WCHAR * szOrigin;
  23. static const WCHAR * szCategory;
  24. static const WCHAR * szApproval;
  25. static const WCHAR * szLock;
  26. static const WCHAR * szSourceLock;
  27. static const WCHAR * szTransLock;
  28. static const WCHAR * szModifiedDate;
  29. static const WCHAR * szModifiedBy;
  30. static const WCHAR * szAutoApproved;
  31. static const WCHAR * szConfidenceLevel;
  32. static const WCHAR * szCustom1;
  33. static const WCHAR * szCustom2;
  34. static const WCHAR * szCustom3;
  35. static const WCHAR * szCustom4;
  36. static const WCHAR * szCustom5;
  37. static const WCHAR * szCustom6;
  38. static const WCHAR * szParserID;
  39. static const WCHAR * szSrcLen;
  40. static const WCHAR * szTgtLen;
  41. static const WCHAR * szSrcHotKey;
  42. static const WCHAR * szTgtHotKey;
  43. // Unique ID's for columns
  44. //
  45. // DO NOT 'INSERT' ITEMS. You will change the ID's and break things.
  46. typedef enum
  47. {
  48. FLD_ICON,
  49. FLD_SOURCE_TERM,
  50. FLD_TARGET_TERM,
  51. FLD_PREVIOUS_SOURCE_TERM,
  52. FLD_INSTRUCTIONS,
  53. FLD_INSTR_ATT,
  54. FLD_GLOSSARY_NOTE,
  55. FLD_UNIQUE_ID,
  56. FLD_TRANSLATION_STATUS,
  57. FLD_BINARY_STATUS,
  58. FLD_TRANSLATION_ORIGIN,
  59. FLD_STRING_TYPE,
  60. FLD_APPROVAL_STATE,
  61. FLD_USR_LOCK,
  62. FLD_DEV_LOCK,
  63. FLD_TRANS_LOCK,
  64. FLD_MODIFIED_DATE,
  65. FLD_MODIFIED_BY,
  66. FLD_AUTO_APPROVED,
  67. FLD_CONFIDENCE_LEVEL,
  68. FLD_CUSTOM1,
  69. FLD_CUSTOM2,
  70. FLD_CUSTOM3,
  71. FLD_CUSTOM4,
  72. FLD_CUSTOM5,
  73. FLD_CUSTOM6,
  74. //
  75. // Add displayable columns here.
  76. FLD_PARSER_ID = 50,
  77. //
  78. // Add non-displayable, RESTBL required columns here
  79. FLD_SRC_LEN = 100,
  80. FLD_TGT_LEN,
  81. FLD_SRC_HK,
  82. FLD_TGT_HK,
  83. //
  84. // Add non-displayable, non-RESTBL columns here.
  85. FLD_COUNT = 30 // Make sure this is accurate!
  86. } FIELD;
  87. // RAID: LS42 Bug 46 fixed by MikeL
  88. // Functions to validate the value of the above
  89. // column types. All validate functions must pass
  90. // two parameters: 1-LPCTSTR. and 2-DWORD
  91. static BOOL ValidateDefault (LPCTSTR lpszNewText, DWORD dwNewNum);
  92. static BOOL ValidateConfidenceLevel (LPCTSTR lpszNewText, DWORD dwNewNum);
  93. // Exported functions
  94. static void GetSoftwareSchema(CTableSchema * & pSchema);
  95. static const CLString & GetDisplayName(FIELD col);
  96. static const CColumnDefinition * GetColumnDefinition(FIELD col);
  97. static int GetColumnCount();
  98. static int GetCustomColumnCount();
  99. static BOOL IsCustomColumn(FIELD col);
  100. // Implementation
  101. protected:
  102. static void BuildStringCategory(CTableSchema * pSchema);
  103. static void BuildApprovalState(CTableSchema * pSchema);
  104. };
  105. #endif // ESPUTIL_SoftInfo_h_INCLUDED