]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/xrc/xh_listc.h
move virtual GetPath() implementation out of line to work around an apparent Fedora...
[wxWidgets.git] / include / wx / xrc / xh_listc.h
index 25847467f1c1d75dab6fc299864f342eb7dbf747..5ca936f28bb1382ae8dfe35a4881647077aea254 100644 (file)
 
 #if wxUSE_XRC && wxUSE_LISTCTRL
 
+class WXDLLIMPEXP_FWD_CORE wxListCtrl;
+
 class WXDLLIMPEXP_XRC wxListCtrlXmlHandler : public wxXmlResourceHandler
 {
-    DECLARE_DYNAMIC_CLASS(wxListCtrlXmlHandler)
-
 public:
     wxListCtrlXmlHandler();
     virtual wxObject *DoCreateResource();
     virtual bool CanHandle(wxXmlNode *node);
+
+private:
+    long Handle_wxListItem();
+    wxObject* Handle_wxListCtrl();
+
+    // gets the items image index in the corresponding image list (normal if
+    // which is wxIMAGE_LIST_NORMAL or small if it is wxIMAGE_LIST_SMALL)
+    long GetImageIndex(wxListCtrl *listctrl, int which);
+
+    DECLARE_DYNAMIC_CLASS(wxListCtrlXmlHandler)
 };
 
 #endif // wxUSE_XRC && wxUSE_LISTCTRL