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.

56 lines
1.4 KiB

  1. /*************************************************************************
  2. FileName : FileSave.h
  3. Purpose : Declaration of CFileSave
  4. Methods
  5. defined : OpenFileSaveDlg
  6. Properties
  7. defined :
  8. FileName
  9. Helper
  10. functions: GET_BSTR
  11. Author : Sudha Srinivasan (a-sudsi)
  12. *************************************************************************/
  13. #ifndef __FILESAVE_H_
  14. #define __FILESAVE_H_
  15. #include "resource.h" // main symbols
  16. /////////////////////////////////////////////////////////////////////////////
  17. // CFileSave
  18. class ATL_NO_VTABLE CFileSave :
  19. public CComObjectRootEx<CComSingleThreadModel>,
  20. public CComCoClass<CFileSave, &CLSID_FileSave>,
  21. public IDispatchImpl<IFileSave, &IID_IFileSave, &LIBID_SAFRCFILEDLGLib>
  22. {
  23. public:
  24. CFileSave()
  25. {
  26. }
  27. DECLARE_REGISTRY_RESOURCEID(IDR_FILESAVE)
  28. DECLARE_PROTECT_FINAL_CONSTRUCT()
  29. BEGIN_COM_MAP(CFileSave)
  30. COM_INTERFACE_ENTRY(IFileSave)
  31. COM_INTERFACE_ENTRY(IDispatch)
  32. END_COM_MAP()
  33. // IFileSave
  34. public:
  35. STDMETHOD(get_FileName)(/*[out, retval]*/ BSTR *pVal);
  36. STDMETHOD(put_FileName)(/*[in]*/ BSTR newVal);
  37. STDMETHOD(get_FileType)(/*[out, retval]*/ BSTR *pVal);
  38. STDMETHOD(put_FileType)(/*[in]*/ BSTR newVal);
  39. STDMETHOD(OpenFileSaveDlg)(/*[out, retval]*/ DWORD *pdwRetVal);
  40. private:
  41. void GET_BSTR (BSTR*& x, CComBSTR& y);
  42. };
  43. #endif //__FILESAVE_H_