#if !defined(AFX_SELECTNAME_H__4C6BFC31_E3CB_49FD_B88F_BD82E388AE65__INCLUDED_)
#define AFX_SELECTNAME_H__4C6BFC31_E3CB_49FD_B88F_BD82E388AE65__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// SelectName.h : header file
//
#include "resource.h"
#include "apl_api.h"
#include "ResizableDialog.h" 

/////////////////////////////////////////////////////////////////////////////
// CSelectName dialog

class CSelectName : public CResizableDialog
{
// Construction
public:
	CSelectName(CWnd* pParent = NULL);   // standard constructor
	CStringArray m_names;
//	CaplNetStepData * m_Srcdata;
//	CaplNetStepData * m_data;
//	CaplAutorizationManager *m_appr;
//	CaplCategoryManager *m_catg;
//	CaplProductManager *m_prMan;
//	CaplDocManager * m_doc;
//	CaplCharacteristicManager * m_char;
	CaplAPI* m_api; 
	// он нужен - это конкретный экземпляр, ссылки на него в API нет
	CaplExchangeManager * m_exch;

	aplExtent m_arrPersOrg, m_arrPersOrgRel, m_arrCat, m_arrUnit, m_arrChar,
		m_arrStat, m_arrDocT, m_arrEntries, m_arrBPT, m_arrBPResT,  m_arrProjectT,
		m_arrContext, m_arrRole, m_arrCharT, m_arrCharUnion, 
		m_arrProf, m_arrSort, m_arrCopy, m_arrLang;

	aplExtent m_all_arrPersOrg, m_all_arrCat, m_all_arrUnit, m_all_arrChar,
		m_all_arrStat, m_all_arrDocT, m_all_arrEntries, m_all_arrBPT, m_all_arrBPResT, m_all_arrProjectT, 
		m_all_arrContext, m_all_arrRole, m_all_arrCharT, m_all_arrCharUnion, 
		m_all_arrProf, m_all_arrSort, m_all_arrCopy, m_all_arrLang;


// Dialog Data
	//{{AFX_DATA(CSelectName)
	enum { IDD = IDD_SELECTNAME };
	CButton	m_check;
	CListCtrl	m_listName;
	CString	m_FileName;
	//}}AFX_DATA


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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CSelectName)
	virtual BOOL OnInitDialog();
	afx_msg void OnOk();
	afx_msg void OnDblclkListname(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnBrowse();
	afx_msg void OnSelectAll();
	afx_msg void OnDeselectAll();
	afx_msg void OnSelectNum();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

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

#endif // !defined(AFX_SELECTNAME_H__4C6BFC31_E3CB_49FD_B88F_BD82E388AE65__INCLUDED_)
