// vectorView.h : interface of the CVectorView class // ///////////////////////////////////////////////////////////////////////////// //{{AFX_INCLUDES() #include "leadvector.h" #include "leadtoolbar.h" //}}AFX_INCLUDES #include "vecDoc.h" #include "leadvectorobject.h" class CMyLEADVector : public CLEADVector { public: // Generated message map functions //{{AFX_MSG(CMyLEADVector) afx_msg void OnSetFocus(CWnd* pOldWnd); afx_msg void OnKillFocus(CWnd* pWnd); afx_msg void OnSize(UINT nType, int cx, int cy); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; class CVectorView : public CFormView { protected: // create from serialization only CVectorView(); DECLARE_DYNCREATE(CVectorView) public: //{{AFX_DATA(CVectorView) enum { IDD = IDD_VECTOR_FORM }; CListBox m_GroupList; CLEADToolBar m_LEADToolBar1; CLEADVector m_LEADVector1; //}}AFX_DATA BOOL m_bAddToGroup; long m_nGroupIndex; // Attributes public: CVectorDoc* GetDocument(); BOOL m_bImageLoaded; long m_nSelectedCount; CString m_csCaption; CLEADVectorObject m_LastSelectedObject; private: int m_nSaveIndex; // Operations public: // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CVectorView) public: virtual BOOL PreCreateWindow(CREATESTRUCT& cs); virtual void OnInitialUpdate(); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support virtual void OnActivateView(BOOL bActivate, CView* pActivateView, CView* pDeactiveView); //}}AFX_VIRTUAL LRESULT OnDoRealize(WPARAM wParam, LPARAM lParam); // Implementation public: BOOL OpenDroppedFile( CString strFilePath ); virtual ~CVectorView(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif protected: // Generated message map functions protected: //{{AFX_MSG(CVectorView) afx_msg void OnSize(UINT nType, int cx, int cy); afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnFileOpen(); afx_msg void OnEditSelectall(); afx_msg void OnEditDeselectall(); afx_msg void OnEditDelete(); afx_msg void OnToolsVerticesBind(); afx_msg void OnUpdateToolsVerticesBind(CCmdUI* pCmdUI); afx_msg void OnToolsVerticesUnbind(); afx_msg void OnUpdateToolsVerticesUnbind(CCmdUI* pCmdUI); afx_msg void OnDestroy(); afx_msg void OnKeyDownLeadvectorctrl1(short KeyCode, short Shift); afx_msg void OnFileSaveAs(); afx_msg void OnMouseMoveLeadvectorctrl1(short Button, short Shift, double X, double Y); afx_msg void OnMouseDownLeadvectorctrl1(short Button, short Shift, double X, double Y); afx_msg void OnVectorObjectsLeadvectorctrl1(LPDISPATCH pObject); afx_msg void OnFileNew(); afx_msg void OnEditCopy(); afx_msg void OnUpdateEditCopy(CCmdUI* pCmdUI); afx_msg void OnEditCut(); afx_msg void OnUpdateEditCut(CCmdUI* pCmdUI); afx_msg void OnUpdateEditDelete(CCmdUI* pCmdUI); afx_msg void OnUpdateEditDeselectall(CCmdUI* pCmdUI); afx_msg void OnViewScale(); afx_msg void OnUpdateViewScale(CCmdUI* pCmdUI); afx_msg void OnViewRotate(); afx_msg void OnUpdateViewRotate(CCmdUI* pCmdUI); afx_msg void OnViewTranslate(); afx_msg void OnUpdateViewTranslate(CCmdUI* pCmdUI); afx_msg void OnViewCamera(); afx_msg void OnUpdateViewCamera(CCmdUI* pCmdUI); afx_msg void OnViewViewmode(); afx_msg void OnViewBackgroundcolor(); afx_msg void OnUpdateViewBackgroundcolor(CCmdUI* pCmdUI); afx_msg void OnUpdateViewViewmode(CCmdUI* pCmdUI); afx_msg void OnUpdateEditSelectall(CCmdUI* pCmdUI); afx_msg void OnUpdateFileSaveAs(CCmdUI* pCmdUI); afx_msg void OnLayerEdit(); afx_msg void OnUpdateLayerEdit(CCmdUI* pCmdUI); afx_msg void OnObjectEdit(); afx_msg void OnUpdateObjectEdit(CCmdUI* pCmdUI); afx_msg void OnObjectNewArc(); afx_msg void OnUpdateObjectNewArc(CCmdUI* pCmdUI); afx_msg void OnObjectNewEllipticalArc(); afx_msg void OnUpdateObjectNewEllipticalArc(CCmdUI* pCmdUI); afx_msg void OnObjectNewChord(); afx_msg void OnUpdateObjectNewChord(CCmdUI* pCmdUI); afx_msg void OnObjectNewCircle(); afx_msg void OnUpdateObjectNewCircle(CCmdUI* pCmdUI); afx_msg void OnObjectNewEllipse(); afx_msg void OnUpdateObjectNewEllipse(CCmdUI* pCmdUI); afx_msg void OnObjectNewLine(); afx_msg void OnUpdateObjectNewLine(CCmdUI* pCmdUI); afx_msg void OnObjectNewPie(); afx_msg void OnUpdateObjectNewPie(CCmdUI* pCmdUI); afx_msg void OnObjectNewPolybezier(); afx_msg void OnUpdateObjectNewPolybezier(CCmdUI* pCmdUI); afx_msg void OnObjectNewPolydraw(); afx_msg void OnUpdateObjectNewPolydraw(CCmdUI* pCmdUI); afx_msg void OnObjectNewPolygon(); afx_msg void OnUpdateObjectNewPolygon(CCmdUI* pCmdUI); afx_msg void OnObjectNewPolyline(); afx_msg void OnUpdateObjectNewPolyline(CCmdUI* pCmdUI); afx_msg void OnObjectNewRaster(); afx_msg void OnUpdateObjectNewRaster(CCmdUI* pCmdUI); afx_msg void OnObjectNewRectangle(); afx_msg void OnUpdateObjectNewRectangle(CCmdUI* pCmdUI); afx_msg void OnObjectNewText(); afx_msg void OnUpdateObjectNewText(CCmdUI* pCmdUI); afx_msg void OnObjectNewVertex(); afx_msg void OnUpdateObjectNewVertex(CCmdUI* pCmdUI); afx_msg void OnOptionsHittest(); afx_msg void OnUpdateOptionsHittest(CCmdUI* pCmdUI); afx_msg void OnOptionsRender(); afx_msg void OnUpdateOptionsRender(CCmdUI* pCmdUI); afx_msg void OnOptionsApplytransformation(); afx_msg void OnUpdateOptionsApplytransformation(CCmdUI* pCmdUI); afx_msg void OnViewExtent(); afx_msg void OnUpdateViewExtent(CCmdUI* pCmdUI); afx_msg void OnViewToolbar(); afx_msg void OnUpdateViewToolbar(CCmdUI* pCmdUI); afx_msg BOOL OnEraseBkgnd(CDC* pDC); afx_msg void OnEditUndo(); afx_msg void OnEditRedo(); afx_msg void OnUpdateEditUndo(CCmdUI* pCmdUI); afx_msg void OnUpdateEditRedo(CCmdUI* pCmdUI); afx_msg void OnFilePrint(); afx_msg void OnUpdateFilePrint(CCmdUI* pCmdUI); afx_msg void OnObjectProperties(); afx_msg void OnUpdateObjectProperties(CCmdUI* pCmdUI); afx_msg void OnEditPasteObjects(); afx_msg void OnEditPasteLayers(); afx_msg void OnUpdateEditPasteObjects(CCmdUI* pCmdUI); afx_msg void OnUpdateEditPasteLayers(CCmdUI* pCmdUI); afx_msg void OnVectorContainerLeadvectorctrl1(short nEventType, short nObjectType, short nState, short nStatus); afx_msg void OnToolBarButtonLeadtoolbarctrl1(LPDISPATCH Button, long nButtonID, long dwData); afx_msg void OnGroupAddselectedobjectsto(); afx_msg void OnUpdateGroupAddselectedobjectsto(CCmdUI* pCmdUI); afx_msg void OnGroupEdit(); afx_msg void OnUpdateGroupEdit(CCmdUI* pCmdUI); afx_msg void OnVectorGroupsLeadvectorctrl1(LPDISPATCH pGroup); afx_msg void OnObjectNewClone(); afx_msg void OnUpdateObjectNewClone(CCmdUI* pCmdUI); afx_msg void OnObjectNewSpline(); afx_msg void OnUpdateObjectNewSpline(CCmdUI* pCmdUI); afx_msg void OnObjectNewHBezier(); afx_msg void OnUpdateObjectNewHBezier(CCmdUI* pCmdUI); afx_msg void OnHelpEnablecontextsensitivehelp(); afx_msg void OnUpdateHelpEnablecontextsensitivehelp(CCmdUI* pCmdUI); afx_msg void OnHelpEnablevectordialoghelpbutton(); afx_msg void OnUpdateHelpEnablevectordialoghelpbutton(CCmdUI* pCmdUI); afx_msg void OnHelpLeadvectorctrl1(long nDlgID, long hElement, long nCtlID); afx_msg void OnOptionsInvertcolors(); afx_msg void OnObjectExplode(); afx_msg void OnUpdateObjectExplode(CCmdUI* pCmdUI); afx_msg void OnResizeLeadvectorctrl1(); DECLARE_EVENTSINK_MAP() //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #ifndef _DEBUG // debug version in vectorView.cpp inline CVectorDoc* CVectorView::GetDocument() { return (CVectorDoc*)m_pDocument; } #endif /////////////////////////////////////////////////////////////////////////////