00001
00002
00003 #ifndef __GFINDREPLACEDLG_H
00004 #define __GFINDREPLACEDLG_H
00005
00007 class LgiClass GFindReplaceCommon : public GDialog
00008 {
00009 public:
00011 char *Find;
00013 bool MatchWord;
00015 bool MatchCase;
00017 bool SelectionOnly;
00018
00019 GFindReplaceCommon();
00020 ~GFindReplaceCommon();
00021 };
00022
00023 typedef bool (*GFrCallback)(GFindReplaceCommon *Dlg, bool Replace, void *User);
00024
00026 class LgiClass GFindDlg : public GFindReplaceCommon
00027 {
00028 class GFindDlgPrivate *d;
00029
00030 public:
00032 GFindDlg
00033 (
00035 GView *Parent,
00037 char *Init = 0,
00039 GFrCallback Callback = 0,
00041 void *UserData = 0
00042 );
00043 ~GFindDlg();
00044
00045 void OnCreate();
00046 int OnNotify(GViewI *Ctrl, int Flags);
00047 };
00048
00050 #define IDC_FR_FIND 21002
00052 #define IDC_FR_REPLACE 21007
00053
00058 class LgiClass GReplaceDlg : public GFindReplaceCommon
00059 {
00060 class GReplaceDlgPrivate *d;
00061
00062 public:
00063 char *Replace;
00064
00066 GReplaceDlg
00067 (
00069 GView *Parent,
00071 char *InitFind = 0,
00073 char *InitReplace = 0,
00075 GFrCallback Callback = 0,
00077 void *UserData = 0
00078 );
00079 ~GReplaceDlg();
00080
00081 void OnCreate();
00082 int OnNotify(GViewI *Ctrl, int Flags);
00083 };
00084
00085
00086 #endif
00087