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.

84 lines
1.8 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: importo.h
  4. // Copyright (C) 1994-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // Class for Import Data Options
  8. //
  9. // Owner: KenWal
  10. //
  11. // Code Review Status: Not Reviewed
  12. //
  13. //-----------------------------------------------------------------------------
  14. #ifndef ESPUTIL__IMPORTO_H
  15. #define ESPUTIL__IMPORTO_H
  16. #pragma warning(disable : 4251) // class 'bar' needs to have dll-
  17. //interface to be used by clients of
  18. //class 'Foo'
  19. #pragma warning(disable: 4275) // non dll-interface class 'foo' used
  20. // as base for dll-interface class 'bar'
  21. class LTAPIENTRY CLocImportOptions : public CObject
  22. {
  23. public:
  24. CLocImportOptions();
  25. CLocImportOptions(const CLocImportOptions&);
  26. enum Option
  27. {
  28. coor_size = 0,
  29. allNonText,
  30. instructions,
  31. lockFlag,
  32. translockFlag,
  33. stringCategory,
  34. approvalStatus,
  35. custom1,
  36. custom2,
  37. custom3,
  38. custom4,
  39. custom5,
  40. custom6,
  41. termNote,
  42. parserOptions,
  43. copy,
  44. MAX_OPTION //always last in the list
  45. };
  46. NOTHROW void Reset();
  47. NOTHROW BOOL HasOptionSet() const;
  48. NOTHROW BOOL GetOption(Option opt) const;
  49. NOTHROW void SetOption(Option opt, BOOL bEnable);
  50. const CStringArray &GetGroupNames(void) const;
  51. void AddGroupName(const CString &);
  52. NOTHROW CLocImportOptions& operator=(const CLocImportOptions&);
  53. virtual void AssertValid(void) const;
  54. protected:
  55. BYTE m_storage[MAX_OPTION];
  56. CStringArray m_aOptionGroupNames;
  57. };
  58. struct LTAPIENTRY ImportCount
  59. {
  60. ImportCount();
  61. ULONG ulResources;
  62. ULONG ulParserOptions;
  63. ULONG ulEspressoOptions;
  64. ULONG ulCustomFields;
  65. };
  66. #pragma warning(default : 4251)
  67. #pragma warning(default: 4275)
  68. #endif //ESPUTIL_IMPORTO_H