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.

50 lines
1.2 KiB

  1. //------------------------------------------------------------------------------
  2. //
  3. // File: impparse.h
  4. // Copyright (C) 1995-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // Purpose:
  8. // Declare CLocImpParser, which provides the ILocParser interface for
  9. // the parser.
  10. //
  11. // THIS FILE SHOULD NEED ONLY MINOR CHANGES.
  12. //
  13. // Owner:
  14. //
  15. //------------------------------------------------------------------------------
  16. #pragma once
  17. class CLocImpParser: public CPULocParser
  18. {
  19. public:
  20. CLocImpParser();
  21. ~CLocImpParser();
  22. // ILocParser
  23. virtual HRESULT OnInit(IUnknown *);
  24. virtual HRESULT OnCreateFileInstance(ILocFile * &, FileType);
  25. virtual void OnGetParserInfo(ParserInfo &) const;
  26. virtual void OnGetFileDescriptions(CEnumCallback &) const;
  27. // ILocVersion
  28. virtual void OnGetParserVersion(DWORD &dwMajor, DWORD &dwMinor, BOOL &fDebug) const;
  29. // ILocStringValidation
  30. virtual CVC::ValidationCode OnValidateString(const CLocTypeId &ltiType,
  31. const CLocTranslation &, CReporter *pReporter,
  32. const CContext &context);
  33. static const ParserId m_pid;
  34. private:
  35. void RegisterOptions();
  36. void UnRegisterOptions();
  37. BOOL m_fOptionInit;
  38. };
  39. bool IsConfiguredToUseBracesForStringTables();