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.

101 lines
2.3 KiB

  1. /*++
  2. Copyright (C) 1996-1999 Microsoft Corporation
  3. Module Name:
  4. ESPENUM.H
  5. History:
  6. --*/
  7. #ifndef ESPENUM_H
  8. #define ESPENUM_H
  9. extern const LTAPIENTRY CString ftDescUnknown; //Description for unknown file types
  10. class LTAPIENTRY CIconType
  11. {
  12. public:
  13. // Special note: these enum value sequence is of vital importance to
  14. // the GUI components. Please preserve them.
  15. enum IconType
  16. {
  17. None = 0,
  18. Project, // project root icon
  19. Directory, // Part of project structure
  20. File, // File object in the project
  21. Expandable, // Generic Expandable node in a file.
  22. // Special note: Any value up to Expandable is
  23. // currently display as a folder in prj window
  24. Bitmap, // Bitmap
  25. Dialog, // Dialog like items
  26. Icon, // Icon resource
  27. Version, // Version stamping resources
  28. String, // String resources
  29. Accel, // Accelerator
  30. Cursor, // Cursor resource
  31. Menu, // Menu resources
  32. Custom, // Custom resources
  33. Reference // icon for reference glossary
  34. };
  35. NOTHROW static const TCHAR * GetIconName(CIconType::IconType);
  36. NOTHROW static HBITMAP GetIconBitmap(CIconType::IconType);
  37. static void Enumerate(CEnumCallback &);
  38. private:
  39. static const TCHAR *const m_szIconNames[];
  40. CIconType();
  41. };
  42. typedef CIconType CIT;
  43. class LTAPIENTRY CLocStatus
  44. {
  45. public:
  46. enum LocStatus
  47. {
  48. InvalidLocStatus = 0,
  49. NotLocalized,
  50. Updated,
  51. Obsolete_AutoTranslated, // Don't use this! Obsolete!
  52. Localized = 4,
  53. NotApplicable,
  54. InvalidLocStatus2 // used by edbval to determine a invalid status
  55. // a new "valid" status must be entered before this.
  56. };
  57. NOTHROW static const TCHAR * GetStatusText(CLocStatus::LocStatus);
  58. NOTHROW static const TCHAR * GetStatusShortText(CLocStatus::LocStatus);
  59. NOTHROW static CLocStatus::LocStatus MapShortTextToEnum(const TCHAR *);
  60. NOTHROW static CLocStatus::LocStatus MapCharToEnum(const TCHAR);
  61. NOTHROW static CLocStatus::LocStatus MapLongTextToEnum(const TCHAR *szLongName);
  62. static void Enumerate(CEnumCallback &);
  63. private:
  64. struct StatusInfo
  65. {
  66. const TCHAR *szStatusShortText;
  67. const TCHAR *szStatusText;
  68. };
  69. static const StatusInfo m_Info[];
  70. CLocStatus();
  71. };
  72. typedef CLocStatus CLS;
  73. #endif // ESPENUM_H