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.

43 lines
833 B

  1. //
  2. // enumic.h
  3. //
  4. #ifndef ENUMIC_H
  5. #define ENUMIC_H
  6. class CDocumentInputManager;
  7. class CEnumInputContexts : public IEnumTfContexts,
  8. public CComObjectRootImmx
  9. {
  10. public:
  11. CEnumInputContexts();
  12. ~CEnumInputContexts();
  13. BOOL _Init(CDocumentInputManager *pdim);
  14. BEGIN_COM_MAP_IMMX(CEnumInputContexts)
  15. COM_INTERFACE_ENTRY(IEnumTfContexts)
  16. END_COM_MAP_IMMX()
  17. IMMX_OBJECT_IUNKNOWN_FOR_ATL()
  18. //
  19. // IEnumTfContexts
  20. //
  21. STDMETHODIMP Clone(IEnumTfContexts **ppEnum);
  22. STDMETHODIMP Next(ULONG ulCount, ITfContext **ppic, ULONG *pcFetch);
  23. STDMETHODIMP Reset();
  24. STDMETHODIMP Skip(ULONG ulCount);
  25. private:
  26. ITfContext *_rgContexts[2];
  27. int _iCur;
  28. int _iCount;
  29. DBG_ID_DECLARE;
  30. };
  31. #endif // ENUMIC_H