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.

55 lines
1.4 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: LocFile.H
  4. // Copyright (C) 1994-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. //
  8. // Operations we can perforn on a localizable file.
  9. //
  10. //-----------------------------------------------------------------------------
  11. #ifndef PBASE_LOCFILE_H
  12. #define PBASE_LOCFILE_H
  13. class CLocItemHandler;
  14. extern const IID IID_ILocFile;
  15. DECLARE_INTERFACE_(ILocFile, IUnknown)
  16. {
  17. //
  18. // IUnknown standard Interface
  19. //
  20. STDMETHOD(QueryInterface)(THIS_ REFIID riid, LPVOID FAR*ppvObj) PURE;
  21. STDMETHOD_(ULONG, AddRef)(THIS) PURE;
  22. STDMETHOD_(ULONG, Release)(THIS) PURE;
  23. //
  24. // Standard Debugging interfaces
  25. //
  26. STDMETHOD_(void, AssertValidInterface)(THIS) CONST_METHOD PURE;
  27. //
  28. // ILocFile methods.
  29. //
  30. STDMETHOD_(BOOL, OpenFile)(THIS_ const CFileSpec REFERENCE,
  31. CReporter REFERENCE) PURE;
  32. STDMETHOD_(FileType, GetFileType)(THIS) const PURE;
  33. STDMETHOD_(void, GetFileTypeDescription)(THIS_ CLString REFERENCE)
  34. const PURE;
  35. STDMETHOD_(BOOL, GetAssociatedFiles)(THIS_ CStringList REFERENCE)
  36. const PURE;
  37. STDMETHOD_(BOOL, EnumerateFile)(THIS_ CLocItemHandler REFERENCE,
  38. const CLocLangId &, const DBID REFERENCE) PURE;
  39. STDMETHOD_(BOOL, GenerateFile)(THIS_ const CPascalString REFERENCE,
  40. CLocItemHandler REFERENCE, const CLocLangId REFERENCE,
  41. const CLocLangId REFERENCE, const DBID REFERENCE) PURE;
  42. };
  43. #endif // PBASE_LOCFILE_H