00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifdef _ENABLE_COPY_AND_FIND
00023 #ifndef __CHMFINDDIALOG_H
00024 #define __CHMFINDDIALOG_H
00025
00026
00027 #include <wx/dialog.h>
00028 #include <wx/textctrl.h>
00029 #include <wx/html/htmlcell.h>
00030
00031
00032
00033 class wxCheckBox;
00034 class CHMHtmlWindow;
00035
00036
00038 enum {
00039 ID_TextFind = 1408,
00040 ID_FindNext,
00041 };
00042
00043
00045 class CHMFindDialog : public wxDialog {
00046 public:
00048 CHMFindDialog(wxWindow *parent, CHMHtmlWindow *toSearch);
00049
00051 void SetFocusToTextBox() { _text->SetFocusFromKbd(); }
00052
00054 void Reset() { _cell = NULL; }
00055
00056 protected:
00058 void OnFind(wxCommandEvent& event);
00059
00060 private:
00061 CHMHtmlWindow* _html;
00062 wxTextCtrl* _text;
00063 wxCheckBox* _whole;
00064 wxCheckBox* _case;
00065 wxString _currWord;
00066 wxHtmlCell *_cell;
00067
00068 private:
00069 DECLARE_EVENT_TABLE();
00070 };
00071
00072
00073 #endif // __CHMFINDDIALOG_H
00074 #endif // _ENABLE_COPY_AND_FIND