home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / addins / replall / replacedlg.h < prev    next >
C/C++ Source or Header  |  1998-04-02  |  3KB  |  92 lines

  1. #if !defined(AFX_REPLACEDLG_H__14334320_B34A_11D0_A217_244106C10000__INCLUDED_)
  2. #define AFX_REPLACEDLG_H__14334320_B34A_11D0_A217_244106C10000__INCLUDED_
  3.  
  4. #if _MSC_VER >= 1000
  5. #pragma once
  6. #endif // _MSC_VER >= 1000
  7. // ReplaceDlg.h : header file
  8. //
  9.  
  10. /////////////////////////////////////////////////////////////////////////////
  11. // CReplaceDlg dialog
  12.  
  13. class CReplaceDlg : public CDialog
  14. {
  15. // Construction
  16. public:
  17.     bool m_bMatchCase;
  18.     bool m_bRegularExpression;
  19.     bool m_bMatchWholeWord;
  20.     long m_lEmulation;
  21.     CString m_strFindString;
  22.     CString m_strReplaceString;
  23.     CReplaceDlg(CWnd* pParent = NULL);   // standard constructor
  24.     void CommandQuotedString(WPARAM, LPARAM);
  25.     void CommandAnyChar(WPARAM, LPARAM);
  26.     void CommandInRange(WPARAM, LPARAM);
  27.     void CommandNotInRange(WPARAM, LPARAM);
  28.     void CommandBeginOL(WPARAM, LPARAM);
  29.     void CommandEOL(WPARAM, LPARAM);
  30.     void CommandTaggedExp(WPARAM, LPARAM);
  31.     void CommandNot(WPARAM, LPARAM);
  32.     void CommandOr(WPARAM, LPARAM);
  33.     void Command0OrMore(WPARAM, LPARAM);
  34.     void Command1OrMore(WPARAM, LPARAM);
  35.     void CommandGroup(WPARAM, LPARAM);
  36.     void CommandWhitespace(WPARAM, LPARAM);
  37.     void CommandAlphaNumericCharacter(WPARAM, LPARAM);
  38.     void CommandAlphaCharacter(WPARAM, LPARAM);
  39.     void CommandDecDigit(WPARAM, LPARAM);
  40.     void CommandHexNumber(WPARAM, LPARAM);
  41.     void CommandNumber(WPARAM, LPARAM);
  42.     void CommandInteger(WPARAM, LPARAM);
  43.     void CommandCIdentifier(WPARAM, LPARAM);
  44.     void CommandAlphabeticString(WPARAM, LPARAM);
  45.     void CommandFindWhatText(WPARAM, LPARAM);
  46.     void CommandTaggedExpression1(WPARAM, LPARAM);
  47.     void CommandTaggedExpression2(WPARAM, LPARAM);
  48.     void CommandTaggedExpression3(WPARAM, LPARAM);
  49.     void CommandTaggedExpression4(WPARAM, LPARAM);
  50.     void CommandTaggedExpression5(WPARAM, LPARAM);
  51.     void CommandTaggedExpression6(WPARAM, LPARAM);
  52.     void CommandTaggedExpression7(WPARAM, LPARAM);
  53.     void CommandTaggedExpression8(WPARAM, LPARAM);
  54.     void CommandTaggedExpression9(WPARAM, LPARAM);
  55.  
  56.  
  57. // Dialog Data
  58.     //{{AFX_DATA(CReplaceDlg)
  59.     enum { IDD = IDD_REPL };
  60.     CEdit    m_ReplaceText;
  61.     CEdit    m_FindText;
  62.     CButton    m_MatchWholeWord;
  63.     CButton    m_RegularExpression;
  64.     CButton    m_MatchCase;
  65.     //}}AFX_DATA
  66.  
  67.  
  68. // Overrides
  69.     // ClassWizard generated virtual function overrides
  70.     //{{AFX_VIRTUAL(CReplaceDlg)
  71.     protected:
  72.     virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
  73.     //}}AFX_VIRTUAL
  74.  
  75. // Implementation
  76. protected:
  77.  
  78.     // Generated message map functions
  79.     //{{AFX_MSG(CReplaceDlg)
  80.     virtual void OnOK();
  81.     afx_msg void OnRegexpfind();
  82.     afx_msg void OnRegExpReplace();
  83.     virtual BOOL OnInitDialog();
  84.     //}}AFX_MSG
  85.     DECLARE_MESSAGE_MAP()
  86. };
  87.  
  88. //{{AFX_INSERT_LOCATION}}
  89. // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
  90.  
  91. #endif // !defined(AFX_REPLACEDLG_H__14334320_B34A_11D0_A217_244106C10000__INCLUDED_)
  92.