#if !defined(AFX_FILELOADDLG_H__1AAC3353_3B1F_11D4_B93D_E0C030A19C5A__INCLUDED_)
#define AFX_FILELOADDLG_H__1AAC3353_3B1F_11D4_B93D_E0C030A19C5A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// FileLoadDlg.h : header file
//
#include "resource.h"
#include <apl_gui.h>
#include "afxwin.h"

/////////////////////////////////////////////////////////////////////////////
// CFileLoadDlg dialog

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

// Dialog Data
	//{{AFX_DATA(CFileLoadDlg)
	enum { IDD = IDD_DOC_LOAD };
	CButton	m_run_ass_app_ctrl;
	CButton	m_use_sub_doc_ctrl;
	CButton	m_save_to_db_ctrl;
	CEdit	m_path_ctrl;
	CButton	m_set_ro_ctrl;
	CButton	m_set_active_ctrl;
	CEdit	m_descr_ctrl;
	CString	m_path;
	BOOL	m_set_ro;
	BOOL	m_set_active;
	CString	m_descr;
	BOOL	m_save_to_db;
	CaplButton	m_cancel_btn;
	CaplButton	m_ok_btn;
	BOOL	m_use_sub_doc;
	BOOL	m_run_ass_app;
	//}}AFX_DATA
	CString m_mode;
	bool m_no_set_active;
	bool m_b_no_sub_doc;

	bool m_bEnableDelFile;

	CString m_formats; // разрешенные расширения для файла

	CaplAPI* m_api;

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

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CFileLoadDlg)
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg void OnBrowse();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
public:
	CButton m_del_from_disk_ctrl;
	BOOL m_del_from_disk;
	afx_msg void OnBnClickedSaveToDb();
	afx_msg void OnBnClickedDelFromFile();
};

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

#endif // !defined(AFX_FILELOADDLG_H__1AAC3353_3B1F_11D4_B93D_E0C030A19C5A__INCLUDED_)
