home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / com / activedocument / doserver / perfile.h < prev    next >
C/C++ Source or Header  |  1997-05-28  |  2KB  |  62 lines

  1. /**************************************************************************
  2.    THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
  3.    ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
  4.    THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
  5.    PARTICULAR PURPOSE.
  6.  
  7.    Copyright 1997 Microsoft Corporation.  All Rights Reserved.
  8. **************************************************************************/
  9.  
  10. /**************************************************************************
  11.  
  12.    File:          PerFile.h
  13.    
  14.    Description:   CPersistFile definitions.
  15.  
  16. **************************************************************************/
  17.  
  18. #ifndef PERSISTFILE_H
  19. #define PERSISTFILE_H
  20.  
  21. /**************************************************************************
  22.    #include statements
  23. **************************************************************************/
  24.  
  25. #include "DOServer.h"
  26.  
  27. /**************************************************************************
  28.  
  29.    CPersistFile class definition
  30.  
  31. **************************************************************************/
  32.  
  33. class COleDocument;
  34. class CPersistStorage;
  35.  
  36. class CPersistFile : IPersistFile
  37. {
  38. private:
  39.     LPSTORAGE         m_pStorage;
  40.     COleDocument      *m_pOleDoc;
  41.    CPersistStorage   *m_pPersistStorage;
  42.    LPOLESTR          m_pwszFile;
  43.  
  44. public:
  45.     CPersistFile::CPersistFile(COleDocument *, CPersistStorage *);
  46.     CPersistFile::~CPersistFile();
  47.  
  48.     STDMETHODIMP QueryInterface(REFIID, LPVOID*);
  49.     STDMETHODIMP_(ULONG)AddRef();
  50.     STDMETHODIMP_(ULONG)Release();
  51.  
  52.     STDMETHODIMP GetClassID(LPCLSID);
  53.     STDMETHODIMP Save(LPCOLESTR, BOOL);
  54.     STDMETHODIMP SaveCompleted(LPCOLESTR);
  55.     STDMETHODIMP Load(LPCOLESTR, DWORD);
  56.     STDMETHODIMP IsDirty(void);
  57.     STDMETHODIMP GetCurFile(LPOLESTR*);
  58.  
  59. };
  60.  
  61. #endif   //PERSISTFILE_H
  62.