xh_hyperlink.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /////////////////////////////////////////////////////////////////////////////
  2. // Name: wx/xrc/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. // Copyright: (c) 2005 David Norris
  8. // Licence: wxWindows licence
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef _WX_XH_HYPERLINKH__
  11. #define _WX_XH_HYPERLINKH__
  12. #include "wx/xrc/xmlres.h"
  13. #if wxUSE_XRC && wxUSE_HYPERLINKCTRL
  14. class WXDLLIMPEXP_XRC wxHyperlinkCtrlXmlHandler : public wxXmlResourceHandler
  15. {
  16. // Register with wxWindows' dynamic class subsystem.
  17. DECLARE_DYNAMIC_CLASS(wxHyperlinkCtrlXmlHandler)
  18. public:
  19. // Constructor.
  20. wxHyperlinkCtrlXmlHandler();
  21. // Creates the control and returns a pointer to it.
  22. virtual wxObject *DoCreateResource();
  23. // Returns true if we know how to create a control for the given node.
  24. virtual bool CanHandle(wxXmlNode *node);
  25. };
  26. #endif // wxUSE_XRC && wxUSE_HYPERLINKCTRL
  27. #endif // _WX_XH_HYPERLINKH__