X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f80ea77b4a8bac4ab005bfc592f9cd3262ffa397..20833aaa0a5e6327596eda231bdf835754bb3be7:/src/xrc/xh_listb.cpp diff --git a/src/xrc/xh_listb.cpp b/src/xrc/xh_listb.cpp index c0a41a91eb..a319449d20 100644 --- a/src/xrc/xh_listb.cpp +++ b/src/xrc/xh_listb.cpp @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: xh_listb.cpp +// Name: src/xrc/xh_listb.cpp // Purpose: XRC resource for wxListBox // Author: Bob Mitchell & Vaclav Slavik // Created: 2000/07/29 @@ -8,10 +8,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#ifdef __GNUG__ -#pragma implementation "xh_listb.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -19,9 +15,14 @@ #pragma hdrstop #endif +#if wxUSE_XRC && wxUSE_LISTBOX + #include "wx/xrc/xh_listb.h" -#include "wx/listbox.h" -#include "wx/intl.h" + +#ifndef WX_PRECOMP + #include "wx/intl.h" + #include "wx/listbox.h" +#endif IMPLEMENT_DYNAMIC_CLASS(wxListBoxXmlHandler, wxXmlResourceHandler) @@ -87,7 +88,7 @@ wxObject *wxListBoxXmlHandler::DoCreateResource() // add to the list wxString str = GetNodeContent(m_node); if (m_resource->GetFlags() & wxXRC_USE_LOCALE) - str = wxGetTranslation(str); + str = wxGetTranslation(str, m_resource->GetDomain()); strList.Add(str); return NULL; @@ -99,3 +100,5 @@ bool wxListBoxXmlHandler::CanHandle(wxXmlNode *node) return (IsOfClass(node, wxT("wxListBox")) || (m_insideBox && node->GetName() == wxT("item"))); } + +#endif // wxUSE_XRC && wxUSE_LISTBOX