From: Vadim Zeitlin Date: Thu, 30 Sep 2010 11:31:04 +0000 (+0000) Subject: Include correct headers from richtextimagedlg.*. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/7132641de7fc302863068cbfb9cafca04eda1766 Include correct headers from richtextimagedlg.*. Include or forward declares the classes used by the header to make it self-contained. Do not include wx/wx.h from the source file to make compiling it faster when not using PCH. This fixes compilation under Unix after SOC2010_RTC_IMAGES branch merge. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65678 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/richtext/richtextimagedlg.h b/include/wx/richtext/richtextimagedlg.h index bea7665a18..e54053dcc0 100644 --- a/include/wx/richtext/richtextimagedlg.h +++ b/include/wx/richtext/richtextimagedlg.h @@ -9,6 +9,8 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +#include "wx/dialog.h" + #ifndef _RICHTEXTIMAGEDLG_H_ #define _RICHTEXTIMAGEDLG_H_ @@ -16,16 +18,14 @@ * Includes */ #include "wx/richtext/richtextbuffer.h" -////@begin includes -#include "wx/statline.h" -////@end includes /*! * Forward declarations */ -////@begin forward declarations -////@end forward declarations +class WXDLLIMPEXP_FWD_CORE wxButton; +class WXDLLIMPEXP_FWD_CORE wxComboBox; +class WXDLLIMPEXP_FWD_CORE wxTextCtrl; /*! * Control identifiers diff --git a/src/richtext/richtextimagedlg.cpp b/src/richtext/richtextimagedlg.cpp index 33f9050eda..ac2b023c44 100644 --- a/src/richtext/richtextimagedlg.cpp +++ b/src/richtext/richtextimagedlg.cpp @@ -17,11 +17,12 @@ #endif #ifndef WX_PRECOMP -#include "wx/wx.h" + #include "wx/button.h" + #include "wx/combobox.h" + #include "wx/textctrl.h" #endif -////@begin includes -////@end includes +#include "wx/statline.h" #include "wx/richtext/richtextimagedlg.h" #include "wx/richtext/richtextctrl.h"