home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgLangD.iso / C++-7 / DISK11 / MFC / SAMPLES / TESTSERV / NEWSERV.H$ / newserv
Encoding:
Text File  |  1992-03-07  |  1.2 KB  |  39 lines

  1. // newserv.h : This file contains prototypes which is specific to the
  2. //              CNewServer class.
  3. //
  4. // This is a part of the Microsoft Foundation Classes C++ library.
  5. // Copyright (C) 1992 Microsoft Corporation
  6. // All rights reserved.
  7. //
  8. // This source code is only intended as a supplement to the
  9. // Microsoft Foundation Classes Reference and Microsoft
  10. // QuickHelp documentation provided with the library.
  11. // See these sources for detailed information regarding the
  12. // Microsoft Foundation Classes product.
  13.  
  14.  
  15. #ifndef __NEWSERV_H__
  16. #define __NEWSERV_H__
  17.  
  18. /////////////////////////////////////////////////////////////////////////////
  19. // CNewServer:
  20. class CNewServer : public COleServer
  21. {
  22. public:
  23.     CNewServer(BOOL bEmbedded) : COleServer(bEmbedded)
  24.         { };
  25.  
  26. protected:
  27. // Overridables for OLE Server requests
  28.     virtual COleServerDoc* OnOpenDoc(LPCSTR lpszDoc);
  29.     virtual COleServerDoc* OnCreateDoc(LPCSTR lpszClass, LPCSTR lpszDoc);
  30.     virtual COleServerDoc* OnEditDoc(LPCSTR lpszClass, LPCSTR lpszDoc);
  31.     virtual COleServerDoc* OnCreateDocFromTemplate(LPCSTR lpszClass,
  32.                 LPCSTR lpszDoc, LPCSTR lpszTemplate);
  33. };
  34.  
  35. /////////////////////////////////////////////////////////////////////////////
  36.  
  37. #endif // __NEWSERV_H__
  38.  
  39.