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/checkbox.h>
00028 #include <wx/dialog.h>
00029 #include <wx/textctrl.h>
00030 #include <wx/html/htmlcell.h>
00031
00032
00033 class CHMHtmlWindow;
00034
00035
00037 enum {
00038 ID_TextFind = 1408,
00039 ID_FindNext,
00040 };
00041
00042
00044 class CHMFindDialog : public wxDialog {
00045 public:
00047 CHMFindDialog(wxWindow *parent, CHMHtmlWindow *toSearch);
00048
00050 void SetFocusToTextBox() { _text->SetFocusFromKbd(); }
00051
00053 void Reset() { _cell = NULL; }
00054
00055 protected:
00057 void OnFind(wxCommandEvent& event);
00058
00059 private:
00060 CHMHtmlWindow* _html;
00061 wxTextCtrl* _text;
00062 wxCheckBox* _whole;
00063 wxCheckBox* _case;
00064 wxString _currWord;
00065 wxHtmlCell *_cell;
00066
00067 private:
00068 DECLARE_EVENT_TABLE();
00069 };
00070
00071
00072 #endif // __CHMFINDDIALOG_H
00073 #endif // _ENABLE_COPY_AND_FIND