#if !defined(AFX_PRHHISTFINDBASE_H__084E5E3D_8357_4C8E_B579_900160B6A851__INCLUDED_)
#define AFX_PRHHISTFINDBASE_H__084E5E3D_8357_4C8E_B579_900160B6A851__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// PrhHistFindBase.h : _xZkqqHx_iDhHiDgCiDfPiBfL_xHqqkZx_ _xZkqqHx_iDhEiDeAiDeDiDiL_xHqqkZx_
//

#include "ListCtrlUserId.h"		// For CFCListCtrlUserId.
#include "CmbReg.h"				// For CFCCmbReg.
#include "ProjectCopy.h"		// For FCProjectCopy.
#include "StcBorder.h"			// For CFCStcBorder.
#include "DialogBase.h"		// For Baseclass.

#ifdef SUPER_CLASS
#undef SUPER_CLASS
#endif
#define SUPER_CLASS CFCDialogBase

typedef map<DWORD, WString> ObjIdToWStringMap;

/////////////////////////////////////////////////////////////////////////////
// CFCPrhHistFindBase _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_

// 04.12.15 Fukushiro M. 1_xZkqqHx_iNhDjFmPiNfI_xHqqkZx_ ()
class CFCPrhHistFindBase : public SUPER_CLASS
{
protected:
typedef SUPER_CLASS BASE_CLASS;

	DECLARE_DYNCREATE(CFCPrhHistFindBase)

// _xZkqqHx_iDfCiDjDiDfIiDgHiDiJiDeOiDfGiDiHiDjD_xHqqkZx_
public:
	CFCPrhHistFindBase ();		// _xZkqqHx_jFfHiPiAiCmMiDfCiDjDiDfIiDgHiDiJiDeOiDfOiBeC_xHqqkZx_
	~CFCPrhHistFindBase ();
	virtual BOOL	Create (UINT nIDTemplate, CWnd* pParentWnd = NULL);

// _xZkqqHx_iDiGiBfLiDfFiKnGjAjEiBeC_xHqqkZx_
public:
	virtual void	OnSetActive ();
	virtual void	OnKillActive ();
	virtual void	UpdateControls ();
	virtual void	UpdateVariables ();
	virtual void	UpdateActivate ();

protected:
	virtual const wchar_t*	GetRegName () const;
	virtual BOOL	IsConsistent ();
	virtual void	UpdateComboStr ();
	virtual void	DoFind ();

// 06.03.02 Fukushiro M. 1_xZkqqHx_iNhDjCmHiJmB_xHqqkZx_ ()
	virtual void	GetLabelIdToStringMap (ObjIdToWStringMap& mpLabelIdToString) const;
	virtual FDSECTIME	GetNarrowTimeFrom () const;
	virtual FDSECTIME	GetNarrowTimeUntil () const;
	virtual const set<GUID>&	GetNarrowUserId () const;
	virtual void	PrepareProjectCopy ();

// _xZkqqHx_iDiGiBfLiDfFjFmPjAjEiBeC_xHqqkZx_
protected:
	// m_iTabChangeNarrow _xZkqqHx_iCmMjCgMiBeC_xHqqkZx_
	enum
	{
		NARROW_TAB_SEARCH_AREA	= 0,	// _xZkqqHx_iMjPiNpFjEmNiImNiBeC_xHqqkZx_
		NARROW_TAB_DATE,				// _xZkqqHx_jDpKiOjOiNgJiNjOiCnNiBeC_xHqqkZx_
		NARROW_TAB_LABEL,				// _xZkqqHx_iDiJiDhIiDiLiNgJiNjOiCnNiBeC_xHqqkZx_
		NARROW_TAB_USER,				// _xZkqqHx_iDiGiBfLiDfFiNgJiNjOiCnNiBeC_xHqqkZx_
	};

	DWORD		m_dwHelpId;				// _xZkqqHx_iDhHiDiLiDhG_xHqqkZx_ID_xZkqqHx_iCpAiLeMjIfOiBeC_xHqqkZx_
	set<GUID>	m_stSelectedUserId;
	WString		m_wstrTbcLblFindString;
	int			m_iTabChangeNarrow;
	int			m_iTabChangeNarrowOld;
	FCProjectCopy	m_projectCopy;		// _xZkqqHx_iDhGiDiNiDfHiDeGiDeOiDgHiCmMiDfCiDhDiBfLiBeC_xHqqkZx_

// _xZkqqHx_iDfPiDeDiDeBiDiNiDeP_xHqqkZx_ _xZkqqHx_iDgGiBfLiDfO_xHqqkZx_
public:
	//{{AFX_DATA(CFCPrhHistFindBase)
	CFCStcBorder	m_stcBorder1;
	CFCCmbReg	m_cmbTbcLblFindString;
	BOOL	m_bTbcLblNarrowByLabel;
	BOOL	m_bTbcLblMultiWord;
	BOOL	m_bTbcLblRegexp;
	BOOL	m_bTbcLblAsUppercase;
	BOOL	m_bTbcTimTimeFrom;
	BOOL	m_bTbcTimTimeUntil;
	COleDateTime	m_otmTbcTimTimeFrom;
	COleDateTime	m_otmTbcTimTimeUntil;
	BOOL	m_bTbcSrhSearchAllDocument;
	BOOL	m_bTbcSrhSearchBefore;
	BOOL	m_bTbcSrhSearchHigher;
	BOOL	m_bTbcSrhSearchBeforeBranch;
	BOOL	m_bTbcSrhSearchAfter;
	BOOL	m_bTbcSrhSearchAfterBranch;
	CTabCtrl	m_tabChangeNarrow;
	CFCListCtrlUserId	m_lsvTbcUsrUserList;
	BOOL	m_bTbcUsrNarrowByUser;
	//}}AFX_DATA

// _xZkqqHx_iDeJiBfLiDgPiBfLiDiJiDeDiDgI_xHqqkZx_
	// ClassWizard _xZkqqHx_iCmNiJlMjBhKiKnGjAjEiCmMiDeJiBfLiDgPiBfLiDiJiDeDiDgIiCpAjAlGjAkMiClFiCnMiClHiBeC_xHqqkZx_

	//{{AFX_VIRTUAL(CFCPrhHistFindBase)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV _xZkqqHx_iDfEiDhMiBfLiDgH_xHqqkZx_
	//}}AFX_VIRTUAL

// _xZkqqHx_iDeDiDjDiDhGiDiKiDiBiDjDiDgFiBfLiDfGiDiHiDjD_xHqqkZx_
protected:
	// _xZkqqHx_jAlGjAkMiClDiCoKiClNiDiBiDgCiDfKiBfLiDfH_xHqqkZx_ _xZkqqHx_iDhNiDgCiDhGiKnGjAjE_xHqqkZx_
	//{{AFX_MSG(CFCPrhHistFindBase)
	afx_msg void OnHfdTbcLblChkNarrowByLabel();
	afx_msg void OnHfdTbcTimChkTimeFrom();
	afx_msg void OnHfdTbcTimChkTimeUntil();
	afx_msg void OnHfdTbcSrhChkSearchAllDocument();
	virtual BOOL OnInitDialog();
	afx_msg void OnHfdBtnDoFind();
	virtual void OnCancel();
	afx_msg void OnHfdTbcSrhChkSearchAbove();
	afx_msg void OnHfdTbcSrhChkSearchBelow();
	afx_msg void OnSelchangeHfdTabChangeNarrow(NMHDR* pNMHDR, LRESULT* pResult);
	afx_msg void OnHfdTbcUsrBtnSelectUser();
	afx_msg void OnHfdTbcUsrChkNarrowByUser();
	afx_msg void OnHfdBtnPrevTab();
	afx_msg void OnHfdBtnNextTab();
	afx_msg void OnHfdBtnDoNewFind();
	afx_msg void OnSelchangeHfdCmbSelectSearchType();
	afx_msg void OnHfdBtnHelp();
	afx_msg void OnHfdBtnShowResultsPanel();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
}; // class CFCPrhHistFindBase.

//----- 05.10.31 Fukushiro M. _xZkqqHx_iNoNiPjMiOgO_xHqqkZx_ ()-----
//	afx_msg void OnHfdChkSearchObject();
//	afx_msg void OnHfdChkSearchLink();
//	afx_msg void OnHfdChkSearchLabel();
//	afx_msg void OnHfdChkSearchHidocument();
//	afx_msg void OnHfdChkSearchDate();
//----- 05.10.31 Fukushiro M. _xZkqqHx_iNoNiPjMiPeJ_xHqqkZx_ ()-----

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ _xZkqqHx_iCmNjBePiNhDiCmMjClMjBePiCmJjCmHiJmBiCmMjAoJiMlOiCpAjBhNjDpMiClFiCnMiClHiBeC_xHqqkZx_

#endif // !defined(AFX_PRHHISTFINDBASE_H__084E5E3D_8357_4C8E_B579_900160B6A851__INCLUDED_)
