#if wxUSE_DOC_VIEW_ARCHITECTURE
 
+#include "wx/docview.h"
+
 #ifndef WX_PRECOMP
     #include "wx/list.h"
     #include "wx/string.h"
     #include "wx/filedlg.h"
     #include "wx/intl.h"
     #include "wx/log.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/ffile.h"
     #include "wx/printdlg.h"
 #endif
 
-#include "wx/msgdlg.h"
 #include "wx/choicdlg.h"
-#include "wx/docview.h"
 #include "wx/confbase.h"
 #include "wx/file.h"
 #include "wx/cmdproc.h"
 
 /////////////////////////////////////////////////////////////////////////////
-// Name:        common/fontmap.cpp
+// Name:        src/common/fontmap.cpp
 // Purpose:     wxFontMapper class
 // Author:      Vadim Zeitlin
 // Modified by:
 
 #if wxUSE_FONTMAP
 
+#include "wx/fontmap.h"
+
 #ifndef WX_PRECOMP
     #include "wx/app.h"
     #include "wx/log.h"
     #include "wx/intl.h"
+    #include "wx/msgdlg.h"
 #endif // PCH
 
 #if wxUSE_CONFIG
   #include  "wx/msw/winundef.h"
 #endif
 
-#include "wx/fontmap.h"
 #include "wx/fmappriv.h"
 #include "wx/fontutil.h"
-#include "wx/msgdlg.h"
 #include "wx/fontdlg.h"
 #include "wx/choicdlg.h"
 #include "wx/encinfo.h"
 
     #include "wx/button.h"
     #include "wx/icon.h"
     #include "wx/settings.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/module.h"
 #include "wx/layout.h"
-#include "wx/msgdlg.h"
 #include "wx/textctrl.h"
 #include "wx/textdlg.h"
 #include "wx/filefn.h"
 
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
 #if wxUSE_FILEDLG
     #include "wx/intl.h"
     #include "wx/settings.h"
     #include "wx/log.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/checkbox.h"
 #include "wx/checkbox.h"
 #include "wx/stattext.h"
 #include "wx/longlong.h"
-#include "wx/msgdlg.h"
 #include "wx/sizer.h"
 #include "wx/bmpbuttn.h"
 #include "wx/tokenzr.h"
 
     #include "wx/listctrl.h"
     #include "wx/imaglist.h"
     #include "wx/image.h"
-#else // !wxUSE_LOG_DIALOG
-    #include "wx/msgdlg.h"
 #endif // wxUSE_LOG_DIALOG/!wxUSE_LOG_DIALOG
 
 #if defined(__MWERKS__) && wxUSE_UNICODE
 
     #include "wx/utils.h"
     #include "wx/dialog.h"
     #include "wx/settings.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/gdicmn.h"
 #include "wx/memory.h"
 #include "wx/font.h"
-#include "wx/msgdlg.h"
 #include "wx/file.h"
 #include "wx/filename.h"
 #include "wx/module.h"
 
 
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #ifdef __WXGTK24__
 #include "wx/filename.h" // wxFilename
 #include "wx/tokenzr.h" // wxStringTokenizer
 #include "wx/filefn.h" // ::wxGetCwd
-#include "wx/msgdlg.h" // wxMessageDialog
 
 //-----------------------------------------------------------------------------
 // idle system
 
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
     #include "wx/utils.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/fontutil.h"
-#include "wx/msgdlg.h"
 
 #include "wx/gtk/private.h"
 
 
     #include "wx/log.h"
     #include "wx/utils.h"
     #include "wx/panel.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/imaglist.h"
 
 #include <gdk/gdkkeysyms.h>
 
-#include "wx/msgdlg.h"
-
 // ----------------------------------------------------------------------------
 // events
 // ----------------------------------------------------------------------------
 
     #include "wx/menu.h"
     #include "wx/dialog.h"
     #include "wx/settings.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/layout.h"
-#include "wx/msgdlg.h"
 #include "wx/module.h"
 #include "wx/combobox.h"
 
 
     #include "wx/utils.h"
     #include "wx/dialog.h"
     #include "wx/settings.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/gdicmn.h"
 #include "wx/memory.h"
 #include "wx/font.h"
-#include "wx/msgdlg.h"
 #include "wx/file.h"
 #include "wx/filename.h"
 #include "wx/module.h"
 
 #ifndef WX_PRECOMP
     #include "wx/intl.h"
     #include "wx/utils.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/fontutil.h"
-#include "wx/msgdlg.h"
 
 #include "wx/gtk1/private.h"
 
 
     #include "wx/log.h"
     #include "wx/utils.h"
     #include "wx/panel.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/imaglist.h"
 
 #include <gdk/gdkkeysyms.h>
 
-#include "wx/msgdlg.h"
-
 // ----------------------------------------------------------------------------
 // events
 // ----------------------------------------------------------------------------
 
     #include "wx/menu.h"
     #include "wx/dialog.h"
     #include "wx/settings.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/layout.h"
-#include "wx/msgdlg.h"
 #include "wx/module.h"
 #include "wx/combobox.h"
 
 
     #include "wx/statbox.h"
     #include "wx/radiobox.h"
     #include "wx/menu.h"
-#endif // WXPRECOMP
-
-#ifdef __WXMAC__
     #include "wx/msgdlg.h"
-#endif
+#endif // WXPRECOMP
 
 #include "wx/html/htmlwin.h"
 #include "wx/html/helpdlg.h"
 
     #include "wx/radiobox.h"
     #include "wx/menu.h"
     #include "wx/settings.h"
-#endif // WXPRECOMP
-
-#ifdef __WXMAC__
     #include "wx/msgdlg.h"
-#endif
+#endif // WXPRECOMP
 
 #include "wx/html/helpfrm.h"
 #include "wx/html/helpctrl.h"
 
     #include "wx/radiobox.h"
     #include "wx/menu.h"
     #include "wx/settings.h"
-#endif // WXPRECOMP
-
-#ifdef __WXMAC__
     #include "wx/msgdlg.h"
-#endif
+#endif // WXPRECOMP
 
 #include "wx/html/helpfrm.h"
 #include "wx/html/helpdlg.h"
 
     #include "wx/icon.h"
     #include "wx/cursor.h"
     #include "wx/dialog.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/gdicmn.h"
-#include "wx/msgdlg.h"
 #include "wx/module.h"
 #include "wx/memory.h"
 #include "wx/tooltip.h"
 
 #include "wx/dcprint.h"
 
 #ifndef WX_PRECOMP
+    #include "wx/msgdlg.h"
 #endif
 
-#include "wx/msgdlg.h"
 #include "wx/math.h"
 #include "wx/mac/uma.h"
 #include "wx/mac/private/print.h"
 
 
 #if wxUSE_PRINTING_ARCHITECTURE
 
+#include "wx/printdlg.h"
+
 #ifndef WXPRECOMP
     #include "wx/object.h"
     #include "wx/dcprint.h"
+    #include "wx/msgdlg.h"
 #endif
 
-#include "wx/printdlg.h"
 #include "wx/mac/printdlg.h"
-#include "wx/msgdlg.h"
 #include "wx/mac/private/print.h"
 
 
 
     #include "wx/button.h"
     #include "wx/menu.h"
     #include "wx/settings.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #ifdef __DARWIN__
     #include <stat.h>
 #endif
 
-#include "wx/msgdlg.h"
-
 #if wxUSE_STD_IOSTREAM
     #if wxUSE_IOSTREAMH
         #include <fstream.h>
 
     #include "wx/menu.h"
     #include "wx/dialog.h"
     #include "wx/settings.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/layout.h"
 #include "wx/scrolbar.h"
 #include "wx/statbox.h"
-#include "wx/msgdlg.h"
 #include "wx/tooltip.h"
 #include "wx/statusbr.h"
 #include "wx/menuitem.h"
 
     #include "wx/icon.h"
     #include "wx/cursor.h"
     #include "wx/dialog.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/gdicmn.h"
-#include "wx/msgdlg.h"
 #include "wx/module.h"
 #include "wx/memory.h"
 #include "wx/tooltip.h"
 
 #include "wx/dcprint.h"
 
 #ifndef WX_PRECOMP
+    #include "wx/msgdlg.h"
 #endif
 
-#include "wx/msgdlg.h"
 #include "wx/math.h"
 #include "wx/mac/uma.h"
 #include "wx/mac/private/print.h"
 
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#include "wx/printdlg.h"
+
 #ifndef WX_PRECOMP
     #include "wx/object.h"
     #include "wx/dcprint.h"
+    #include "wx/msgdlg.h"
 #endif
 
-#include "wx/printdlg.h"
-#include "wx/msgdlg.h"
 #include "wx/mac/private/print.h"
 
 // Use generic page setup dialog: use your own native one if one exists.
 
     #include "wx/dc.h"
     #include "wx/button.h"
     #include "wx/settings.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #ifdef __DARWIN__
     #include <stat.h>
 #endif
 
-#include "wx/msgdlg.h"
-
 #if wxUSE_STD_IOSTREAM
     #if wxUSE_IOSTREAMH
         #include <fstream.h>
 
     #include "wx/menu.h"
     #include "wx/dialog.h"
     #include "wx/settings.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/layout.h"
 #include "wx/listbox.h"
 #include "wx/scrolbar.h"
 #include "wx/statbox.h"
-#include "wx/msgdlg.h"
 #include "wx/notebook.h"
 #include "wx/tabctrl.h"
 #include "wx/tooltip.h"
 
     #pragma hdrstop
 #endif
 
+#include "wx/msgdlg.h"
+
 #ifndef WX_PRECOMP
     #include "wx/app.h"
     #include "wx/utils.h"
     #include "wx/dialog.h"
-    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/msw/private.h"
 
 // For compilers that support precompilation, includes "wx.h".
 #include "wx/wxprec.h"
 
+#include "wx/msgdlg.h"
+
 #ifndef WX_PRECOMP
     #include <stdio.h>
     #include "wx/utils.h"
     #include "wx/dialog.h"
     #include "wx/app.h"
-    #include "wx/msgdlg.h"
     #include "wx/math.h"
 #endif
 
 
 #include "wx/wxprec.h"
 
 #ifdef __BORLANDC__
-#pragma hdrstop
+    #pragma hdrstop
 #endif
 
-#ifndef WX_PRECOMP
-    #include  "wx/string.h"
-#endif //WX_PRECOMP
-
 #if wxUSE_PROGRESSDLG
 
 #include "wx/progdlg.h"
-#include "wx/msgdlg.h"
+
+#ifndef WX_PRECOMP
+    #include  "wx/string.h"
+    #include "wx/msgdlg.h"
+#endif //WX_PRECOMP
 
 #include <Progress.h>
 #include <SysEvtMgr.h>
 
     #include "wx/app.h"
     #include "wx/window.h" // for wxTopLevelWindows
     #include "wx/cursor.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/apptrait.h"
-#include "wx/msgdlg.h"
 
 #include <ctype.h>
 #include <stdarg.h>
 
     #include "wx/dialog.h"
     #include "wx/timer.h"
     #include "wx/settings.h"
+    #include "wx/msgdlg.h"
 #endif
 
 #include "wx/layout.h"
 #include "wx/listbox.h"
-#include "wx/msgdlg.h"
 #include "wx/scrolwin.h"
 #include "wx/scrolbar.h"
 #include "wx/module.h"