Simplify PCH support. Minor source cleaning.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-07-25 08:39:57 +00:00
parent 2cdcee612a
commit 613992479a
5 changed files with 60 additions and 56 deletions

View File

@@ -21,8 +21,10 @@
#include "wx/richtext/richtextctrl.h"
#ifndef WX_PRECOMP
#include "wx/wx.h"
#include "wx/settings.h"
#include "wx/menu.h"
#include "wx/intl.h"
#include "wx/stopwatch.h"
#endif
#include "wx/textfile.h"
@@ -155,7 +157,7 @@ bool wxRichTextCtrl::Create( wxWindow* parent, wxWindowID id, const wxString& va
RecreateBuffer(size);
SetCursor(wxCursor(wxCURSOR_IBEAM));
if (!value.IsEmpty())
SetValue(value);
@@ -1645,7 +1647,7 @@ wxRichTextCtrl::HitTest(const wxPoint& pt,
{
wxClientDC dc((wxRichTextCtrl*) this);
((wxRichTextCtrl*)this)->PrepareDC(dc);
// Buffer uses logical position (relative to start of buffer)
// so convert
wxPoint pt2 = GetLogicalPoint(pt);
@@ -2222,7 +2224,7 @@ const wxTextAttrEx& wxRichTextCtrl::GetDefaultStyleEx() const
const wxTextAttr& wxRichTextCtrl::GetDefaultStyle() const
{
return GetBuffer().GetDefaultStyle();
return GetBuffer().GetDefaultStyle();
}
bool wxRichTextCtrl::GetStyle(long position, wxTextAttr& style) const