www.pudn.com > WORD_xoffice_src.rar > XOffice.h


// XOffice.h : main header file for the XOFFICE application 
// 
 
#if !defined(AFX_XOFFICE_H__04DE977C_E920_11D3_8D22_0000E8D9FD76__INCLUDED_) 
#define AFX_XOFFICE_H__04DE977C_E920_11D3_8D22_0000E8D9FD76__INCLUDED_ 
 
#if _MSC_VER > 1000 
#pragma once 
#endif // _MSC_VER > 1000 
 
#ifndef __AFXWIN_H__ 
	#error include 'stdafx.h' before including this file for PCH 
#endif 
 
#include "resource.h"       // main symbols 
#include "XOffice_i.h" 
 
///////////////////////////////////////////////////////////////////////////// 
// CXOfficeApp: 
// See XOffice.cpp for the implementation of this class 
// 
 
class ATL_NO_VTABLE CXOfficeApp : public CWinApp, 
	public CComObjectRootEx, 
  public CComCoClass, 
  public IConnectionPointContainerImpl, 
  public IDispatchImpl 
{ 
	friend class CXOfficeDoc; 
public: 
	CXOfficeApp(); 
 
	CXOfficeDoc *m_active; 
 
DECLARE_CLASSFACTORY_SINGLETON(CXOfficeApp) 
 
DECLARE_REGISTRY_RESOURCEID(IDR_APPLICATION) 
DECLARE_NOT_AGGREGATABLE(CXOfficeApp) 
 
DECLARE_PROTECT_FINAL_CONSTRUCT() 
 
BEGIN_COM_MAP(CXOfficeApp) 
	COM_INTERFACE_ENTRY(IApplication) 
	COM_INTERFACE_ENTRY(IDispatch) 
	COM_INTERFACE_ENTRY(IConnectionPointContainer) 
END_COM_MAP() 
BEGIN_CONNECTION_POINT_MAP(CXOfficeApp) 
END_CONNECTION_POINT_MAP() 
 
// IApplication 
public: 
	STDMETHOD(get_IsActiveDocument)(/*[out, retval]*/ BOOL *pVal); 
	STDMETHOD(get_ActiveDocument)(/*[out, retval]*/ IDocument* *pVal); 
 
// Overrides 
	// ClassWizard generated virtual function overrides 
  //{{AFX_VIRTUAL(CXOfficeApp) 
	public: 
	virtual BOOL InitInstance(); 
	//}}AFX_VIRTUAL 
 
// Implementation 
  //{{AFX_MSG(CXOfficeApp) 
	afx_msg void OnAppAbout(); 
		// NOTE - the ClassWizard will add and remove member functions here. 
		//    DO NOT EDIT what you see in these blocks of generated code ! 
	//}}AFX_MSG 
	DECLARE_MESSAGE_MAP() 
}; 
 
 
///////////////////////////////////////////////////////////////////////////// 
 
//{{AFX_INSERT_LOCATION}} 
// Microsoft Visual C++ will insert additional declarations immediately before the previous line. 
 
#endif // !defined(AFX_XOFFICE_H__04DE977C_E920_11D3_8D22_0000E8D9FD76__INCLUDED_)