X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6ea1280cb72eca20ee34d0c76e660d5cc0a482b7..f7b06c8ce1bf0c34e4c5bde45181205101a5661e:/src/xrc/xh_chckl.cpp diff --git a/src/xrc/xh_chckl.cpp b/src/xrc/xh_chckl.cpp index f891730c2e..067f3cf7c0 100644 --- a/src/xrc/xh_chckl.cpp +++ b/src/xrc/xh_chckl.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: xh_chckl.cpp +// Name: src/xrc/xh_chckl.cpp // Purpose: XRC resource for wxCheckList // Author: Bob Mitchell // Created: 2000/03/21 @@ -8,10 +8,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "xh_chckl.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -19,12 +15,16 @@ #pragma hdrstop #endif -#if wxUSE_OWNER_DRAWN || !defined(__WXMSW__) +#if wxUSE_XRC && wxUSE_CHECKLISTBOX #include "wx/xrc/xh_chckl.h" + +#ifndef WX_PRECOMP + #include "wx/intl.h" + #include "wx/log.h" +#endif + #include "wx/checklst.h" -#include "wx/intl.h" -#include "wx/log.h" IMPLEMENT_DYNAMIC_CLASS(wxCheckListBoxXmlHandler, wxXmlResourceHandler) @@ -39,7 +39,7 @@ wxCheckListBoxXmlHandler::wxCheckListBoxXmlHandler() XRC_ADD_STYLE(wxLB_ALWAYS_SB); XRC_ADD_STYLE(wxLB_NEEDED_SB); XRC_ADD_STYLE(wxLB_SORT); - + AddWindowStyles(); } @@ -129,5 +129,4 @@ bool wxCheckListBoxXmlHandler::CanHandle(wxXmlNode *node) (m_insideBox && node->GetName() == wxT("item"))); } -#endif - +#endif // wxUSE_XRC && wxUSE_CHECKLISTBOX