home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 May / Pcwk5b98.iso / Borland / Cplus45 / BC45 / OWLINC.PAK / EDITSEAR.H < prev    next >
C/C++ Source or Header  |  1995-08-29  |  2KB  |  64 lines

  1. //----------------------------------------------------------------------------
  2. // ObjectWindows
  3. // (C) Copyright 1992, 1994 by Borland International, All Rights Reserved
  4. //
  5. //   Definition of class TEditSearch, an edit control that responds to
  6. //   Find, Replace and FindNext menu commands.
  7. //----------------------------------------------------------------------------
  8. #if !defined(OWL_EDITSEAR_H)
  9. #define OWL_EDITSEAR_H
  10.  
  11. #if !defined(OWL_EDIT_H)
  12. # include <owl/edit.h>
  13. #endif
  14. #if !defined(OWL_FINDREPL_H)
  15. # include <owl/findrepl.h>
  16. #endif
  17. #include <owl/editsear.rh>
  18.  
  19.  
  20. //
  21. //  class TEditSearch
  22. //  ----- -----------
  23. //
  24. class _OWLCLASS TEditSearch : public TEdit {
  25.   public:
  26.     TFindReplaceDialog::TData SearchData;
  27.     TFindReplaceDialog*       SearchDialog;  // Find or replace dialog
  28.     uint                      SearchCmd;     // command set that opened dialog
  29.  
  30.     TEditSearch(TWindow*        parent = 0,
  31.                 int             id = 0,
  32.                 const char far* text = 0,
  33.                 int x = 0, int y = 0, int w = 0, int h = 0,
  34.                 TModule*        module = 0);
  35.  
  36.    ~TEditSearch();
  37.  
  38.     void          SetupWindow();
  39.     void          DoSearch();
  40.  
  41.     //
  42.     // menu command handlers
  43.     //
  44.     void          CmEditFind();               // CM_EDITFIND
  45.     void          CmEditReplace();            // CM_EDITREPLACE
  46.     void          CeEditFindReplace(TCommandEnabler& ce);
  47.     void          CmEditFindNext();           // CM_EDITFINDNEXT
  48.     void          CeEditFindNext(TCommandEnabler& ce);
  49.  
  50.     LRESULT       EvFindMsg(WPARAM, LPARAM);  // Registered commdlg message
  51.  
  52.   private:
  53.     //
  54.     // hidden to prevent accidental copying or assignment
  55.     //
  56.     TEditSearch(const TEditSearch&);
  57.     TEditSearch& operator=(const TEditSearch&);
  58.  
  59.   DECLARE_RESPONSE_TABLE(TEditSearch);
  60.   DECLARE_STREAMABLE(_OWLCLASS, TEditSearch, 1);
  61. };
  62.  
  63. #endif  // OWL_EDITSEAR_H
  64.