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.

51 lines
1.8 KiB

  1. // AttrLoc.h : Declaration of the CMLStrAttrLocale
  2. #ifndef __ATTRLOC_H_
  3. #define __ATTRLOC_H_
  4. #include "mlatl.h"
  5. /////////////////////////////////////////////////////////////////////////////
  6. // CMLStrAttrLocale
  7. class ATL_NO_VTABLE CMLStrAttrLocale :
  8. public CComObjectRoot,
  9. public CComCoClass<CMLStrAttrLocale, &CLSID_CMLStrAttrLocale>,
  10. public IConnectionPointContainerImpl<CMLStrAttrLocale>,
  11. public IConnectionPointImpl<CMLStrAttrLocale, &IID_IMLStrAttrNotifySink>,
  12. public IMLStrAttrLocale
  13. {
  14. public:
  15. CMLStrAttrLocale();
  16. DECLARE_NO_REGISTRY()
  17. BEGIN_COM_MAP(CMLStrAttrLocale)
  18. COM_INTERFACE_ENTRY(IMLStrAttr)
  19. COM_INTERFACE_ENTRY(IMLStrAttrLong)
  20. COM_INTERFACE_ENTRY(IMLStrAttrLocale)
  21. COM_INTERFACE_ENTRY_IMPL(IConnectionPointContainer)
  22. END_COM_MAP()
  23. BEGIN_CONNECTION_POINT_MAP(CMLStrAttrLocale)
  24. CONNECTION_POINT_ENTRY(IID_IMLStrAttrNotifySink)
  25. END_CONNECTION_POINT_MAP()
  26. public:
  27. // IMLStrAttr
  28. STDMETHOD(SetClient)(/*[in]*/ IUnknown* pUnk);
  29. STDMETHOD(GetClient)(/*[out]*/ IUnknown** ppUnk);
  30. STDMETHOD(QueryAttr)(/*[in]*/ REFIID riid, /*[in]*/ LPARAM lParam, /*[out]*/ IUnknown** ppUnk, /*[out]*/ long* lConf);
  31. STDMETHOD(GetAttrInterface)(/*[out]*/ IID* pIID, /*[out]*/ LPARAM* plParam);
  32. STDMETHOD(SetMLStr)(/*[in]*/ long lDestPos, /*[in]*/ long lDestLen, /*[in]*/ IUnknown* pSrcMLStr, /*[in]*/ long lSrcPos, /*[in]*/ long lSrcLen);
  33. // IMLStrAttrLong
  34. STDMETHOD(SetLong)(/*[in]*/ long lDestPos, /*[in]*/ long lDestLen, /*[in]*/ long lValue);
  35. STDMETHOD(GetLong)(/*[in]*/ long lSrcPos, /*[in]*/ long lSrcLen, /*[out]*/ long* plValue, /*[out]*/ long* plActualPos, /*[out]*/ long* plActualLen);
  36. // IMLStrAttrLocale
  37. // Nothing
  38. protected:
  39. long m_lLen;
  40. LCID m_lcid;
  41. };
  42. #endif //__ATTRLOC_H_