#if !defined(AFX_SIMPLDLG_H__4E245D3E_30EC_4B66_83A9_B1F81084A084__INCLUDED_)
#define AFX_SIMPLDLG_H__4E245D3E_30EC_4B66_83A9_B1F81084A084__INCLUDED_

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

/////////////////////////////////////////////////////////////////////////////
// CSimplDlg dialog
#include "ReportDict.h"
#include <AplGuiEx.h>
#include "afxwin.h"

#define APL_FULL_MODE 1
#define APL_FULL_EX_MODE 3

class CSimplDlg : public CaplTranslateDialog
{
// Construction
protected:
	CImageList	m_Buttons_il;
public:
	void SetSpacePara(int para);
	void SetCheck(UINT align, bool bChange = true);
	
	int m_align;
	int m_ColumnType;
	int m_show_flag;
	int m_mode;
	int m_SpacePara;

	CHeaderColumn* m_ds_column;
	CaplReportMgr* m_ReportMgr;
	CSimplDlg(CWnd* pParent = NULL);   // standard constructor

	CString m_title;
	CString	m_column_text;
	CString m_sConditions;

	UINT m_show;
	BOOL m_IsGroup;

// Dialog Data
	//{{AFX_DATA(CSimplDlg)
	enum { IDD = IDD_SIMPL_DLG };
	CButton	m_conditions_setup_btn;
	CaplStaticImage	m_ImageCtrl;
	CComboBox	m_SpaceParaCtrl;
	CaplButton	m_tr_btn;
	CaplButton	m_tl_btn;
	CaplButton	m_tc_btn;
	CaplButton	m_cr_btn;
	CaplButton	m_cl_btn;
	CaplButton	m_center_btn;
	CaplButton	m_bl_btn;
	CaplButton	m_bc_btn;
	CaplButton	m_br_btn;
	CEdit	m_StrCountCtrl;
	CComboBox	m_Types_ctrl;
	CButton	m_IsSumming;
	CaplButton	m_cancel_btn;
	CaplButton	m_ok_btn;
	CString	m_text;
	double	m_width;
	float	m_line_width;
	BOOL	m_fit_to_rect;
	CString	m_strDS_Column;
	int		m_iStrCount;
	int		m_ShowValue;
	BOOL	m_bShowasDate;
	BOOL	m_bNotShowZero;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSimplDlg)
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnSelectDsColumn();
	afx_msg void OnLevel();
	afx_msg void OnFitToElem();
	afx_msg void OnDestroy();
	afx_msg void OnTopleft();
	afx_msg void OnTopcenter();
	afx_msg void OnBottomcenter();
	afx_msg void OnBottomleft();
	afx_msg void OnCenterleft();
	afx_msg void OnCenterright();
	afx_msg void OnSpacePara1();
	afx_msg void OnSpacePara15();
	afx_msg void OnSpacePara2();
	afx_msg void OnTopright();
	afx_msg void OnVhcenter();
	afx_msg void OnRadio2();
	afx_msg void OnShowValue();
	afx_msg void OnBottemright();
	afx_msg void OnConditionSetup();
	afx_msg void OnSelchangeComboTypes();
	afx_msg void OnEditchangeComboTypes();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	BOOL m_bShowAsTime;
	BOOL m_bShowTopLine;
	CButton m_use_even_check;
	CComboBox m_use_even_combo;
	afx_msg void OnBnClickedUseEvenCheck();
	afx_msg void OnCbnSelchangeUseEvenCombo();
};

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

#endif // !defined(AFX_SIMPLDLG_H__4E245D3E_30EC_4B66_83A9_B1F81084A084__INCLUDED_)
