home *** CD-ROM | disk | FTP | other *** search
/ C Programming Starter Kit 2.0 / SamsPublishing-CProgrammingStarterKit-v2.0-Win31.iso / bc45 / mdiole.pak / SAMPCONT.H < prev    next >
C/C++ Source or Header  |  1997-07-23  |  1KB  |  57 lines

  1. ///----------------------------------------------------------------------------
  2. // ObjectWindows - (C) Copyright 1994 by Borland International
  3. // The sample ole container window. Use as a client of a frame window
  4. //-----------------------------------------------------------------------------
  5. #if !defined(SAMPCONT_H)
  6. #define SAMPCONT_H
  7.  
  8. #define IDS_DOCFILEFILTER    1
  9. #define CM_FILEPRINTPREVIEW  207
  10. #define CM_EDIT_PASTESPECIAL 301
  11. #define CM_EDIT_PASTELINK    302
  12. #define CM_EDIT_INSERTOBJECT 303
  13.  
  14. #if !defined(RC_INVOKED)
  15.  
  16. #if !defined(OWL_OLEWINDO_H)
  17. # include <owl/olewindo.h>
  18. #endif
  19.  
  20. #if !defined(OWL_PRINTER_H)
  21. # include <owl/printer.h>
  22. #endif
  23.  
  24. #if !defined(OWL_OPENSAVE_H)
  25. # include <owl/opensave.h>
  26. #endif
  27.  
  28.  
  29. class TOleSampContainer : public TOleWindow {
  30.   public:
  31.     TOleSampContainer(TWindow*        parent = 0,
  32.                       const char far* fileName = 0,
  33.                       TModule*        module = 0);
  34.    ~TOleSampContainer();
  35.  
  36.   private:
  37.     void SetupWindow();
  38.     void CleanupWindow();
  39.     
  40.     void CmFileSave();
  41.     void CmFileSaveAs();
  42.     void CmExit();  
  43.     void CmFilePrint();
  44.     void CmFilePrinterSetup();
  45.     void CmPrintPreview();
  46.  
  47.     bool CanClose();
  48.  
  49.     TOpenSaveDialog::TData   FileData;
  50.     TPrinter*                Printer;
  51.  
  52.   DECLARE_RESPONSE_TABLE(TOleSampContainer);
  53. };
  54.  
  55. #endif
  56. #endif
  57.