added wxHyperlinkCtrl (patch 1476781 from Francesco)
[wxWidgets.git] / include / wx / xrc / xh_hyperlink.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: xh_hyperlink.h
3 // Purpose: Hyperlink control (wxAdv)
4 // Author: David Norris <danorris@gmail.com>
5 // Modified by: Ryan Norton, Francesco Montorsi
6 // Created: 04/02/2005
7 // RCS-ID: $Id$
8 // Copyright: (c) 2005 David Norris
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_XH_HYPERLINKH__
13 #define _WX_XH_HYPERLINKH__
14
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "hyperlink.h"
17 #endif
18
19 #include "wx/defs.h"
20
21 #if wxUSE_HYPERLINKCTRL
22
23 #include "wx/hyperlink.h"
24 #include "wx/xrc/xmlres.h"
25
26 class WXDLLIMPEXP_XRC wxHyperlinkCtrlXmlHandler : public wxXmlResourceHandler
27 {
28 public:
29 // Constructor.
30 wxHyperlinkCtrlXmlHandler();
31
32 // Creates the control and returns a pointer to it.
33 virtual wxObject *DoCreateResource();
34
35 // Returns true if we know how to create a control for the given node.
36 virtual bool CanHandle(wxXmlNode *node);
37
38 // Register with wxWindows' dynamic class subsystem.
39 DECLARE_DYNAMIC_CLASS(wxHyperlinkCtrlXmlHandler)
40 };
41
42 #endif // wxUSE_HYPERLINKCTRL
43 #endif // _WX_XH_HYPERLINKH__
44