/**
	\file
	\author Matthew Allen <fret@memecode.com>
	\brief Simple single window wrapper around the LHtml2 control
 */
#ifndef _GBROWSER_H_
#define _GBROWSER_H_


class GBrowser : public LWindow
{
	class GBrowserPriv *d;

public:
	class GBrowserEvents
	{
	public:
		virtual ~GBrowserEvents() {}

		virtual bool OnSearch(GBrowser *br, const char *txt) { return false; }
	};
	
	GBrowser(LViewI *owner, const char *Title, char *Uri = 0);
	~GBrowser();

	void SetEvents(GBrowserEvents *Events);
	bool SetUri(const char *Uri = 0);
	bool SetHtml(char *Html);

	void OnPosChange();
	int OnNotify(LViewI *c, LNotification n);
	LMessage::Result OnEvent(LMessage *m);
};

#endif