wxWidgets/include/wx/xrc
Vadim Zeitlin 9fc5a47ce6 Don't keep entries for XRC resources that failed to load in wxXmlResource.
Attempting to load a resource that couldn't be loaded resulted in
wxXmlResource::Load() returning false for this and _all_the_subsequent_ calls
to it because each call to Load() reattempted to reload all resources,
including the one(s) that failed to load initially.

Instead, try to load just the resource(s) that we should load right now and
ignore all the other ones. Also, don't add entries for the one(s) that we fail
to load.

This fixes the unit test failures in the XRC test case which was affected by
the test checking that XRC couldn't be loaded from garbage that ran before it.
It also makes the code simpler by ensuring that wxXmlResourceDataRecords
elements always have a valid wxXmlDocument associated with them.

Also clean up the code: use wxScopedPtr instead of manually deleting pointers
and reorganize #if checks to be easier to follow.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@66219 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2010-11-20 23:53:34 +00:00
..
xh_all.h
xh_animatctrl.h
xh_bmp.h
xh_bmpbt.h
xh_bmpcbox.h
xh_bttn.h
xh_cald.h
xh_chckb.h
xh_chckl.h
xh_choic.h
xh_choicbk.h
xh_clrpicker.h
xh_cmdlinkbn.h
xh_collpane.h
xh_combo.h
xh_comboctrl.h
xh_datectrl.h
xh_dirpicker.h
xh_dlg.h
xh_editlbox.h
xh_filectrl.h
xh_filepicker.h
xh_fontpicker.h
xh_frame.h
xh_gauge.h
xh_gdctl.h
xh_grid.h
xh_html.h
xh_htmllbox.h
xh_hyperlink.h
xh_listb.h
xh_listbk.h
xh_listc.h
xh_mdi.h
xh_menu.h
xh_notbk.h
xh_odcombo.h
xh_panel.h
xh_propdlg.h
xh_radbt.h
xh_radbx.h
xh_richtext.h
xh_scrol.h
xh_scwin.h
xh_sizer.h Make it easier to define custom wxSizerXmlHandler subclasses. 2010-10-24 14:33:58 +00:00
xh_slidr.h
xh_spin.h
xh_split.h
xh_srchctrl.h
xh_statbar.h
xh_stbmp.h
xh_stbox.h
xh_stlin.h
xh_sttxt.h
xh_text.h
xh_tglbtn.h
xh_toolb.h
xh_toolbk.h
xh_tree.h
xh_treebk.h
xh_unkwn.h
xh_wizrd.h
xmlres.h Don't keep entries for XRC resources that failed to load in wxXmlResource. 2010-11-20 23:53:34 +00:00