#if !defined(AFX_TEMPLATEMASTERDLG_H__08306AE7_1643_41A1_A568_F914D688E4D6__INCLUDED_)
#define AFX_TEMPLATEMASTERDLG_H__08306AE7_1643_41A1_A568_F914D688E4D6__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// TemplateMasterDlg.h : header file
//

#include "resource.h"
#include "ReportDict.h"
#include <AplGuiEx.h>
#include "SelectdatasourcePage.h"
#include "SetupvisiblecolumnsPage.h"
#include "SetupgroupsPage.h"
#include "SetupsortPage.h"
#include "SetupcolumnsPage.h"
/////////////////////////////////////////////////////////////////////////////
// CTemplateMasterDlg dialog

class CTemplateMasterDlg : public CaplTranslateDialog
{
// Construction
protected:
	CTemplateMaster *m_pTemplate;
	CaplReportMgr	*m_ReportMgr;

	CHeader* m_pHeader;
	CSelectdatasourcePage		m_SelectDatasourcePage;
	CSetupvisiblecolumnsPage	m_SetupVisibleColumnsPage;
	CSetupgroupsPage			m_SetupGroupsPage;
	CSetupsortPage				m_SetupSortPage;
	CSetupcolumnsPage			m_SetupColumnsPage;
public:
	CTemplateMasterDlg(CaplReportMgr *ReportMgr, CTemplateMaster *pTemplate, CWnd* pParent = NULL);   // standard constructor

	bool	m_bEnableSelectPage;
// Dialog Data
	//{{AFX_DATA(CTemplateMasterDlg)
	enum { IDD = IDD_TEMPLATE_MASTER_DLG };
	CButton	m_prev_btn;
	CButton	m_next_btn;
	CaplButton	m_cancel_btn;
	CaplButton	m_ok_btn;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CTemplateMasterDlg)
	public:
	virtual BOOL DestroyWindow();
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CTemplateMasterDlg)
	virtual void OnOK();
	virtual BOOL OnInitDialog();
	afx_msg void OnNext();
	afx_msg void OnPrev();
	virtual void OnCancel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_TEMPLATEMASTERDLG_H__08306AE7_1643_41A1_A568_F914D688E4D6__INCLUDED_)
