00001 00006 #ifndef _GBROWSER_H_ 00007 #define _GBROWSER_H_ 00008 00009 00010 class GBrowser : public GWindow 00011 { 00012 class GBrowserPriv *d; 00013 00014 public: 00015 class GBrowserEvents 00016 { 00017 public: 00018 virtual ~GBrowserEvents() {} 00019 00020 virtual bool OnSearch(GBrowser *br, char *txt) { return false; } 00021 }; 00022 00023 GBrowser(const char *Title, char *Uri = 0); 00024 ~GBrowser(); 00025 00026 void SetEvents(GBrowserEvents *Events); 00027 bool SetUri(char *Uri = 0); 00028 bool SetHtml(char *Html); 00029 00030 void OnPosChange(); 00031 int OnNotify(GViewI *c, int f); 00032 int OnEvent(GMessage *m); 00033 }; 00034 00035 #endif