Source code of Windows XP (NT5)
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.

40 lines
1.2 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: ResBase.H
  4. // Copyright (C) 1994-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. //
  8. // Purpose: Declares the abstract base class CResObj
  9. //
  10. //-----------------------------------------------------------------------------
  11. #ifndef __RESBASE_H
  12. #define __RESBASE_H
  13. class CResObj : public CObject
  14. {
  15. public:
  16. virtual BOOL Read(C32File *p32File) = 0;
  17. virtual BOOL Write(C32File *p32File) = 0;
  18. virtual BOOL CanReadWrite() = 0;
  19. virtual BOOL ReadWrite(C32File* pSrcFile, C32File* pTgtFile) = 0;
  20. virtual BOOL ReadRes32(C32File *p32File) = 0;
  21. virtual BOOL WriteRes32(C32File *p32File) = 0;
  22. virtual BOOL ReadRgLocItem(CLocItemPtrArray * pRgLocItem, int iSelIndex) = 0;
  23. virtual BOOL WriteRgLocItem(CLocItemPtrArray * pRgLocItem,
  24. CReporter* pReporter) = 0;
  25. virtual const void* GetBufferPointer(void) = 0;
  26. virtual DWORD GetBufferSize(void) = 0;
  27. virtual void SetBufferSize(DWORD dwSize) = 0;
  28. virtual void MakeRes32Header(LangId nLangId) = 0;
  29. virtual CLocItem* GetLocItem() = 0;
  30. virtual BOOL IsKeepLocItems() = 0;
  31. virtual void SetKeepLocItems(BOOL fKeep) = 0;
  32. virtual BOOL GetMnemonics(CMnemonicsMap & mapMnemonics,
  33. CReporter* pReporter) = 0;
  34. };
  35. #endif //__RESBASE_H