﻿/*!	@file
	@brief GREP置換ダイアログボックス

	@author Norio Nakatani
	@date 2011.12.15 CDlgFrep.hから作成
*/
/*
	Copyright (C) 1998-2001, Norio Nakatani
	Copyright (C) 2002, Moca
	Copyright (C) 2014, Moca

	This source code is designed for sakura editor.
	Please contact the copyright holder to use this code for other purpose.
*/

class CDlgGrep;

#ifndef SAKURA_CDLGGREP_REPLACE_H_
#define SAKURA_CDLGGREP_REPLACE_H_

#include "dlg/CDialog.h"
#include "dlg/CDlgGrep.h"

//! GREP置換ダイアログボックス
class CDlgGrepReplace : public CDlgGrep
{
public:
	/*
	||  Constructors
	*/
	CDlgGrepReplace();
	/*
	||  Attributes & Operations
	*/
	int DoModal( HINSTANCE, HWND, const TCHAR*, LPARAM );	/* モーダルダイアログの表示 */

	bool		m_bPaste;
	bool		m_bBackup;

	std::wstring	m_strText2;				//!< 置換後
	int				m_nReplaceKeySequence;	//!< 置換後シーケンス

protected:
	CFontAutoDeleter		m_cFontText2;

	/*
	||  実装ヘルパ関数
	*/
	BOOL OnInitDialog(HWND hwndDlg, WPARAM wParam, LPARAM lParam);
	BOOL OnDestroy();
	BOOL OnBnClicked(int wID);
	LPVOID GetHelpIdTable(void);	//@@@ 2002.01.18 add

	void SetData( void );	/* ダイアログデータの設定 */
	int GetData( void );	/* ダイアログデータの取得 */
};



///////////////////////////////////////////////////////////////////////
#endif /* SAKURA_CDLGGREP_REPLACE_H_ */



