0023776: Redesign of MFC samples after V2d viewer removing
[occt.git] / samples / mfc / standard / 06_Ocaf / src / OcafApp.h
1 // OcafApp.h : main header file for the OCAF application
2 //
3
4 #if !defined(AFX_OCAF_H__49324D74_7836_11D4_8D45_00AA00D10994__INCLUDED_)
5 #define AFX_OCAF_H__49324D74_7836_11D4_8D45_00AA00D10994__INCLUDED_
6
7 #if _MSC_VER >= 1000
8 #pragma once
9 #endif // _MSC_VER >= 1000
10
11 #include <OCC_App.h>
12 #include "OcafDoc.h"
13 #include "TOCAF_Application.hxx"
14
15
16 class COcafApp : public OCC_App
17 {
18 public:
19
20   COcafApp();
21
22 // Overrides
23   // ClassWizard generated virtual function overrides
24   //{{AFX_VIRTUAL(COcafApp)
25   public:
26   virtual BOOL InitInstance();
27   //}}AFX_VIRTUAL
28   void OnFileOpen();
29 public:
30   Handle_TOcaf_Application GetApp() {return myApp;}
31
32 private :
33   BOOL IsViewExisting(CDocument* pDoc,CRuntimeClass* pViewClass,CView*& pView);
34
35 private:
36
37   Handle_TOcaf_Application myApp;
38   CMultiDocTemplate* pDocTemplateForView3d;
39
40   DECLARE_MESSAGE_MAP()
41 };
42
43 /////////////////////////////////////////////////////////////////////////////
44
45 #endif // !defined(AFX_OCAF_H__49324D74_7836_11D4_8D45_00AA00D10994__INCLUDED_)