00001
00002
00003 #ifndef __GFINDREPLACEDLG_H
00004 #define __GFINDREPLACEDLG_H
00005
00007 class LgiClass GFindReplaceCommon
00008 {
00009 public:
00011 char *Find;
00013 bool MatchWord;
00015 bool MatchCase;
00017 bool SelectionOnly;
00018
00019 GFindReplaceCommon();
00020 ~GFindReplaceCommon();
00021 };
00022
00024 class LgiClass GFindDlg : public GDialog, public GFindReplaceCommon
00025 {
00026 class GFindDlgPrivate *d;
00027
00028 public:
00030 GFindDlg
00031 (
00033 GView *Parent,
00035 char *Init = 0
00036 );
00037 ~GFindDlg();
00038
00039 void OnCreate();
00040 int OnNotify(GViewI *Ctrl, int Flags);
00041 };
00042
00044 #define IDC_FR_FIND 21002
00045
00046 #define IDC_FR_REPLACE 21007
00047
00052 class LgiClass GReplaceDlg : public GDialog, public GFindReplaceCommon
00053 {
00054 class GReplaceDlgPrivate *d;
00055
00056 public:
00057 char *Replace;
00058
00060 GReplaceDlg
00061 (
00063 GView *Parent,
00065 char *InitFind = 0,
00067 char *InitReplace = 0
00068 );
00069 ~GReplaceDlg();
00070
00071 void OnCreate();
00072 int OnNotify(GViewI *Ctrl, int Flags);
00073 };
00074
00075
00076 #endif
00077