a3b9c43bbc
Split wxXmlResourceHandler into an ABC and the real implementation to allow referencing the ABC in the core library itself but without pulling in all of the XRC into it. This also allows defining XRC handlers, which only depend on this ABC and not the xrc library, in other libraries, such as richtext, as demonstrated by the now enabled wxRichTextXMLHandler. Closes #10996. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72727 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
31 lines
851 B
C++
31 lines
851 B
C++
/////////////////////////////////////////////////////////////////////////////
|
|
// Name: wx/xrc/xh_richtext.h
|
|
// Purpose: XML resource handler for wxRichTextCtrl
|
|
// Author: Julian Smart
|
|
// Created: 2006-11-08
|
|
// RCS-ID: $Id$
|
|
// Copyright: (c) 2006 Julian Smart
|
|
// Licence: wxWindows licence
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _WX_XH_RICHTEXT_H_
|
|
#define _WX_XH_RICHTEXT_H_
|
|
|
|
#include "wx/xrc/xmlres.h"
|
|
|
|
#if wxUSE_XRC && wxUSE_RICHTEXT
|
|
|
|
class WXDLLIMPEXP_RICHTEXT wxRichTextCtrlXmlHandler : public wxXmlResourceHandler
|
|
{
|
|
DECLARE_DYNAMIC_CLASS(wxRichTextCtrlXmlHandler)
|
|
|
|
public:
|
|
wxRichTextCtrlXmlHandler();
|
|
virtual wxObject *DoCreateResource();
|
|
virtual bool CanHandle(wxXmlNode *node);
|
|
};
|
|
|
|
#endif // wxUSE_XRC && wxUSE_RICHTEXT
|
|
|
|
#endif // _WX_XH_RICHTEXT_H_
|