0031521: Samples - update MFC ImportExport sample to use AIS_ViewController
[occt.git] / samples / mfc / standard / Common / OCC_2dDoc.h
1 // OCC_2dDoc.h: interface for the OCC_2dDoc class.
2 //
3 //////////////////////////////////////////////////////////////////////
4
5 #if !defined(AFX_OCC_2dDOC_H__2E048CC7_38F9_11D7_8611_0060B0EE281E__INCLUDED_)
6 #define AFX_OCC_2dDOC_H__2E048CC7_38F9_11D7_8611_0060B0EE281E__INCLUDED_
7
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
11
12 #include "OCC_BaseDoc.h"
13 #include "ResultDialog.h"
14 #include <WNT_Window.hxx>
15
16 // Mouse and clipboard event tracker for OCC_2dView
17 // NO 3D operation are supported (like rotation)
18 class Standard_EXPORT OCC_2dDoc : public OCC_BaseDoc
19 {
20   DECLARE_DYNCREATE(OCC_2dDoc)
21
22 public:
23
24   OCC_2dDoc();
25   ~OCC_2dDoc();
26
27 public: // New operations
28
29   void FitAll2DViews(Standard_Boolean theUpdateViewer = Standard_False);
30
31 public: // Operations to override
32
33   virtual void Popup (const Standard_Integer theMouseX,
34                       const Standard_Integer theMouseY,
35                       const Handle(V3d_View)& theView) Standard_OVERRIDE;
36 };
37
38 #endif // !defined(AFX_OCC_2dDOC_H__2E048CC7_38F9_11D7_8611_0060B0EE281E__INCLUDED_)