campusgisdoc.h

来自「用VC+SuperMap开发的校园GIS系统」· C头文件 代码 · 共 76 行

H
76
字号
// CampusGisDoc.h : interface of the CCampusGisDoc class
//
/////////////////////////////////////////////////////////////////////////////

#if !defined(AFX_CAMPUSGISDOC_H__612DA240_3449_4151_83FA_0BA6ACFBBA97__INCLUDED_)
#define AFX_CAMPUSGISDOC_H__612DA240_3449_4151_83FA_0BA6ACFBBA97__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include"soDatasource.h"
#include "superworkspace.h"
#include "superwkspmanager.h"
#include "supermap.h"
#include "Mainfrm.h"

class CCampusGisDoc : public CDocument
{
protected: // create from serialization only
	CCampusGisDoc();
	DECLARE_DYNCREATE(CCampusGisDoc)

// Attributes
public:
	//point to the mainframe superworkspace
	CSuperWorkspace *m_pSuperWorkspace;
	CSuperWkspManager *m_pManager;
	CSuperMap *m_pSupermap;
	//datasource alias
	CString m_strAliasOfDatasource;
	//current datasource
	CsoDataSource m_CurDatasource;
	//identify has datasource
	BOOL m_bHasDatasource;
	//
// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CCampusGisDoc)
	public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
	virtual void OnCloseDocument();
//	protected:
	//}}AFX_VIRTUAL

// Implementation
public:
	CView *GetView(CRuntimeClass* pClass);
	virtual ~CCampusGisDoc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:

// Generated message map functions
protected:
	//{{AFX_MSG(CCampusGisDoc)
	afx_msg void OnFileOpen();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_CAMPUSGISDOC_H__612DA240_3449_4151_83FA_0BA6ACFBBA97__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?