X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/db679b8c836e69c111cdc31e62cf92cebe4f938f..507abc7b3af8d73e7caf05261d1f40b51775ae7a:/src/xrc/xh_chckl.cpp diff --git a/src/xrc/xh_chckl.cpp b/src/xrc/xh_chckl.cpp index d7e5226486..d3a8257cd3 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 ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "xh_chckl.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -19,14 +15,15 @@ #pragma hdrstop #endif -#if wxUSE_XRC - -#if wxUSE_CHECKLISTBOX +#if wxUSE_XRC && wxUSE_CHECKLISTBOX #include "wx/xrc/xh_chckl.h" -#include "wx/checklst.h" -#include "wx/intl.h" -#include "wx/log.h" + +#ifndef WX_PRECOMP + #include "wx/intl.h" + #include "wx/log.h" + #include "wx/checklst.h" +#endif IMPLEMENT_DYNAMIC_CLASS(wxCheckListBoxXmlHandler, wxXmlResourceHandler) @@ -41,7 +38,7 @@ wxCheckListBoxXmlHandler::wxCheckListBoxXmlHandler() XRC_ADD_STYLE(wxLB_ALWAYS_SB); XRC_ADD_STYLE(wxLB_NEEDED_SB); XRC_ADD_STYLE(wxLB_SORT); - + AddWindowStyles(); } @@ -131,6 +128,4 @@ bool wxCheckListBoxXmlHandler::CanHandle(wxXmlNode *node) (m_insideBox && node->GetName() == wxT("item"))); } -#endif // wxUSE_CHECKLISTBOX - -#endif // wxUSE_XRC +#endif // wxUSE_XRC && wxUSE_CHECKLISTBOX