Refactor wxXRC to allow defining handlers outside of xrc library.

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
This commit is contained in:
Vadim Zeitlin
2012-10-23 13:51:32 +00:00
parent 4dca3e02a6
commit a3b9c43bbc
23 changed files with 1169 additions and 469 deletions

View File

@@ -714,10 +714,10 @@ SOURCE=..\..\src\common\textentrycmn.cpp
# End Source File
# Begin Source File
SOURCE=..\..\src\common\textmeasurecmn.cpp
# End Source File
# Begin Source File
SOURCE=..\..\src\common\textmeasurecmn.cpp
# End Source File
# Begin Source File
SOURCE=..\..\src\common\toplvcmn.cpp
# End Source File
# Begin Source File
@@ -2712,10 +2712,10 @@ SOURCE=..\..\src\msw\textentry.cpp
# End Source File
# Begin Source File
SOURCE=..\..\src\msw\textmeasure.cpp
# End Source File
# Begin Source File
SOURCE=..\..\src\msw\textmeasure.cpp
# End Source File
# Begin Source File
SOURCE=..\..\src\msw\tglbtn.cpp
!IF "$(CFG)" == "core - Win32 DLL Universal Release"
@@ -7268,6 +7268,10 @@ SOURCE=..\..\include\wx\xrc\xh_radbx.h
# End Source File
# Begin Source File
SOURCE=..\..\include\wx\xrc\xh_richtext.h
# End Source File
# Begin Source File
SOURCE=..\..\include\wx\xrc\xh_scrol.h
# End Source File
# Begin Source File
@@ -7356,6 +7360,10 @@ SOURCE=..\..\include\wx\xrc\xmlres.h
# End Source File
# Begin Source File
SOURCE=..\..\include\wx\xrc\xmlreshandler.h
# End Source File
# Begin Source File
SOURCE=..\..\include\wx\xpmdecod.h
# End Source File
# Begin Source File
@@ -7363,6 +7371,14 @@ SOURCE=..\..\include\wx\xpmdecod.h
SOURCE=..\..\include\wx\xpmhand.h
# End Source File
# End Group
# Begin Group "Source Files"
# PROP Default_Filter ""
# Begin Source File
SOURCE=..\..\src\xrc\xmlreshandler.cpp
# End Source File
# End Group
# End Target
# End Project