#if !defined(AFX_SETACCESSCONTENTANDRECURSIVE_H__C90CAFD9_A152_4260_B1A6_CCA2075B99B7__INCLUDED_)
#define AFX_SETACCESSCONTENTANDRECURSIVE_H__C90CAFD9_A152_4260_B1A6_CCA2075B99B7__INCLUDED_

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

#include "resource.h"
#include "apl_api.h"
#include "InstPropertyCtrl.h"
#include "aplNetStepData.h"
#include "aplStepManager.h"
//#include "CommonClasses.h"

bool ShowDlgAccessProperties(CaplAPI* m_api,CString titul,CString &pattern,
							 LPCTSTR name0=0,bool *val0=0,
							 LPCTSTR name1=0,bool *val1=0,LPCTSTR name2=0,bool *val2=0,
							 LPCTSTR name3=0,bool *val3=0,LPCTSTR name4=0,bool *val4=0,
							 LPCTSTR name5=0,bool *val5=0,LPCTSTR name6=0,bool *val6=0,
							 LPCTSTR name7=0,bool *val7=0,LPCTSTR name8=0,bool *val8=0,
							 LPCTSTR name9=0,bool *val9=0,LPCTSTR name10=0,bool *val10=0,
							 LPCTSTR name11=0,bool *val11=0,LPCTSTR name12=0,bool *val12=0,
							 LPCTSTR name13=0,bool *val13=0,LPCTSTR name14=0,bool *val14=0);

/////////////////////////////////////////////////////////////////////////////
// CSetAccessContentAndRecursive dialog

#define NUM_CHECKBOXES 15

class CSetAccessContentAndRecursive : public CaplTranslateDialog
{
// Construction
public:
	CSetAccessContentAndRecursive(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CSetAccessContentAndRecursive)
	enum { IDD = IDD_SET_ACCESS_CONTENT_AND_RECURSIVE };
	CButton	m_GropupType;
	CButton	m_GropupParams;
	CButton	m_CtrlRAPattern;
	CButton	m_CtrlRAHand;
	CComboBox	m_CtrlPatterns;
	CButton	m_CtrlChk[NUM_CHECKBOXES];
	CButton	m_CtrlOk;
	CButton	m_CtrlCancel;
	BOOL	m_ValChk[NUM_CHECKBOXES];
	//}}AFX_DATA
	CString m_titul;
	CaplAPI* m_api;
	CString m_pattern;

	CString m_name[NUM_CHECKBOXES];

	void HideUpperCheck(int start);
	
protected:
	bool m_hand_access;


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSetAccessContentAndRecursive)
	virtual BOOL OnInitDialog();
	afx_msg void OnRadioAccess();
	virtual void OnOK();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SETACCESSCONTENTANDRECURSIVE_H__C90CAFD9_A152_4260_B1A6_CCA2075B99B7__INCLUDED_)
