Include wx/dataobj.h according to precompiled headers of wx/wx.h (with other minor cleaning).

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@40345 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Włodzimierz Skiba
2006-07-27 12:57:16 +00:00
parent eab77b5983
commit 28f92d74ee
15 changed files with 31 additions and 43 deletions

View File

@@ -62,6 +62,7 @@
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/msgdlg.h" #include "wx/msgdlg.h"
#include "wx/cmndata.h" #include "wx/cmndata.h"
#include "wx/dataobj.h"
#include "wx/control.h" #include "wx/control.h"
#include "wx/ctrlsub.h" #include "wx/ctrlsub.h"

View File

@@ -6,16 +6,17 @@
// Created: 2003/07/23 // Created: 2003/07/23
// RCS-ID: $Id$ // RCS-ID: $Id$
// Copyright: (c) 2003 David Elliott // Copyright: (c) 2003 David Elliott
// Licence: wxWidgets licence // Licence: wxWidgets licence
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h" #include "wx/wxprec.h"
#if wxUSE_DATAOBJ #if wxUSE_DATAOBJ
#include "wx/dataobj.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#endif //WX_PRECOMP #endif //WX_PRECOMP
#include "wx/dataobj.h"
wxDataObject::wxDataObject() wxDataObject::wxDataObject()
{ {

View File

@@ -37,10 +37,10 @@
#include "wx/dcclient.h" #include "wx/dcclient.h"
#include "wx/menu.h" #include "wx/menu.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/dataobj.h"
#endif #endif
#include "wx/clipbrd.h" #include "wx/clipbrd.h"
#include "wx/dataobj.h"
// ============================================================================ // ============================================================================
// implementation // implementation

View File

@@ -17,10 +17,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/log.h" #include "wx/log.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/dataobj.h"
#endif #endif
#include "wx/dataobj.h"
#include "wx/gtk/private.h" #include "wx/gtk/private.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------

View File

@@ -17,10 +17,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/log.h" #include "wx/log.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/dataobj.h"
#endif #endif
#include "wx/dataobj.h"
#include <glib.h> #include <glib.h>
#include <gdk/gdk.h> #include <gdk/gdk.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>

View File

@@ -24,12 +24,12 @@
#include "wx/dcmemory.h" #include "wx/dcmemory.h"
#include "wx/timer.h" #include "wx/timer.h"
#include "wx/settings.h" #include "wx/settings.h"
#include "wx/dataobj.h"
#endif #endif
#include "wx/html/htmlwin.h" #include "wx/html/htmlwin.h"
#include "wx/html/htmlproc.h" #include "wx/html/htmlproc.h"
#include "wx/clipbrd.h" #include "wx/clipbrd.h"
#include "wx/dataobj.h"
#include "wx/arrimpl.cpp" #include "wx/arrimpl.cpp"
#include "wx/listimpl.cpp" #include "wx/listimpl.cpp"

View File

@@ -23,13 +23,14 @@
// headers // headers
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------------
#include "wx/dataobj.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/image.h" #include "wx/image.h"
#endif #endif
#include "wx/dataobj.h"
#include "wx/mstream.h" #include "wx/mstream.h"
#include "wx/mac/private.h" #include "wx/mac/private.h"
#include <Scrap.h> #include <Scrap.h>

View File

@@ -29,9 +29,9 @@
#include "wx/app.h" #include "wx/app.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/bitmap.h" #include "wx/bitmap.h"
#include "wx/dataobj.h"
#endif #endif
#include "wx/dataobj.h"
#include "wx/ptr_scpd.h" #include "wx/ptr_scpd.h"
#ifdef __VMS__ #ifdef __VMS__

View File

@@ -37,6 +37,7 @@
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/dataobj.h"
#endif #endif
#if wxUSE_METAFILE #if wxUSE_METAFILE
@@ -57,10 +58,6 @@
// the functions using wxDataObject in wxClipboard // the functions using wxDataObject in wxClipboard
//#define wxUSE_DATAOBJ wxUSE_DRAG_AND_DROP //#define wxUSE_DATAOBJ wxUSE_DRAG_AND_DROP
#if wxUSE_DATAOBJ
#include "wx/dataobj.h"
#endif
#if wxUSE_OLE && !defined(__WXWINCE__) #if wxUSE_OLE && !defined(__WXWINCE__)
// use OLE clipboard // use OLE clipboard
#define wxUSE_OLE_CLIPBOARD 1 #define wxUSE_OLE_CLIPBOARD 1

View File

@@ -25,6 +25,7 @@
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/dataobj.h"
#endif #endif
#if wxUSE_METAFILE #if wxUSE_METAFILE
@@ -37,11 +38,6 @@
// wxDataObject is tied to OLE/drag and drop implementation, // wxDataObject is tied to OLE/drag and drop implementation,
// therefore so is wxClipboard :-( // therefore so is wxClipboard :-(
#if wxUSE_DRAG_AND_DROP
#include "wx/dataobj.h"
// static bool wxSetClipboardData(wxDataObject *data);
#endif
// =========================================================================== // ===========================================================================
// implementation // implementation

View File

@@ -22,13 +22,14 @@
#if wxUSE_DATAOBJ #if wxUSE_DATAOBJ
#include "wx/dataobj.h"
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/image.h" #include "wx/image.h"
#endif #endif
#include "wx/dataobj.h"
#include "wx/mstream.h" #include "wx/mstream.h"
#include "wx/os2/private.h" #include "wx/os2/private.h"

View File

@@ -37,6 +37,7 @@
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/dataobj.h"
#endif #endif
#if wxUSE_METAFILE #if wxUSE_METAFILE
@@ -48,11 +49,7 @@
#include "wx/palmos/private.h" #include "wx/palmos/private.h"
#if wxUSE_WXDIB #if wxUSE_WXDIB
#include "wx/palmos/dib.h" #include "wx/palmos/dib.h"
#endif
#if wxUSE_DATAOBJ
#include "wx/dataobj.h"
#endif #endif
#if wxUSE_OLE && !defined(__WXWINCE__) #if wxUSE_OLE && !defined(__WXWINCE__)
@@ -75,7 +72,7 @@
// old-style clipboard functions // old-style clipboard functions
// --------------------------------------------------------------------------- // ---------------------------------------------------------------------------
static bool gs_wxClipboardIsOpen = FALSE; static bool gs_wxClipboardIsOpen = false;
bool wxOpenClipboard() bool wxOpenClipboard()
{ {
@@ -142,8 +139,8 @@ IMPLEMENT_DYNAMIC_CLASS(wxClipboard, wxObject)
wxClipboard::wxClipboard() wxClipboard::wxClipboard()
{ {
m_clearOnExit = FALSE; m_clearOnExit = false;
m_isOpened = FALSE; m_isOpened = false;
} }
wxClipboard::~wxClipboard() wxClipboard::~wxClipboard()

View File

@@ -24,11 +24,11 @@
#include "wx/dc.h" #include "wx/dc.h"
#include "wx/intl.h" #include "wx/intl.h"
#include "wx/log.h" #include "wx/log.h"
#include "wx/dataobj.h"
#endif #endif
#include "wx/filename.h" #include "wx/filename.h"
#include "wx/clipbrd.h" #include "wx/clipbrd.h"
#include "wx/dataobj.h"
#include "wx/wfstream.h" #include "wx/wfstream.h"
#include "wx/module.h" #include "wx/module.h"
#include "wx/mstream.h" #include "wx/mstream.h"
@@ -908,7 +908,7 @@ wxRichTextRange wxRichTextParagraphLayoutBox::AddParagraphs(const wxString& text
wxRichTextRange range(-1, -1); wxRichTextRange range(-1, -1);
size_t i = 0; size_t i = 0;
size_t len = text.Length(); size_t len = text.length();
wxString line; wxString line;
while (i < len) while (i < len)
{ {
@@ -2266,7 +2266,7 @@ bool wxRichTextParagraph::InsertText(long pos, const wxString& text)
text + textObject->GetText().Mid(posInString); text + textObject->GetText().Mid(posInString);
textObject->SetText(newText); textObject->SetText(newText);
int textLength = text.Length(); int textLength = text.length();
textObject->SetRange(wxRichTextRange(textObject->GetRange().GetStart(), textObject->SetRange(wxRichTextRange(textObject->GetRange().GetStart(),
textObject->GetRange().GetEnd() + textLength)); textObject->GetRange().GetEnd() + textLength));
@@ -2760,7 +2760,7 @@ bool wxRichTextParagraph::FindWrapPosition(const wxRichTextRange& range, wxDC& d
int spacePos = plainText.Find(wxT(' '), true); int spacePos = plainText.Find(wxT(' '), true);
if (spacePos != wxNOT_FOUND) if (spacePos != wxNOT_FOUND)
{ {
int positionsFromEndOfString = plainText.Length() - spacePos - 1; int positionsFromEndOfString = plainText.length() - spacePos - 1;
breakPosition = breakPosition - positionsFromEndOfString; breakPosition = breakPosition - positionsFromEndOfString;
} }
} }
@@ -3198,7 +3198,7 @@ bool wxRichTextPlainText::GetRangeSize(const wxRichTextRange& range, wxSize& siz
wxRichTextObject* wxRichTextPlainText::DoSplit(long pos) wxRichTextObject* wxRichTextPlainText::DoSplit(long pos)
{ {
int index = pos - GetRange().GetStart(); int index = pos - GetRange().GetStart();
if (index < 0 || index >= (int) m_text.Length()) if (index < 0 || index >= (int) m_text.length())
return NULL; return NULL;
wxString firstPart = m_text.Mid(0, index); wxString firstPart = m_text.Mid(0, index);
@@ -3218,7 +3218,7 @@ wxRichTextObject* wxRichTextPlainText::DoSplit(long pos)
/// Calculate range /// Calculate range
void wxRichTextPlainText::CalculateRange(long start, long& end) void wxRichTextPlainText::CalculateRange(long start, long& end)
{ {
end = start + m_text.Length() - 1; end = start + m_text.length() - 1;
m_range.SetRange(start, end); m_range.SetRange(start, end);
} }
@@ -3343,7 +3343,7 @@ bool wxRichTextBuffer::InsertTextWithUndo(long pos, const wxString& text, wxRich
action->SetPosition(pos); action->SetPosition(pos);
// Set the range we'll need to delete in Undo // Set the range we'll need to delete in Undo
action->SetRange(wxRichTextRange(pos, pos + text.Length() - 1)); action->SetRange(wxRichTextRange(pos, pos + text.length() - 1));
SubmitAction(action); SubmitAction(action);
@@ -5286,7 +5286,7 @@ bool wxRichTextPlainTextHandler::DoSaveFile(wxRichTextBuffer *buffer, wxOutputSt
wxString text = buffer->GetText(); wxString text = buffer->GetText();
wxCharBuffer buf = text.ToAscii(); wxCharBuffer buf = text.ToAscii();
stream.Write((const char*) buf, text.Length()); stream.Write((const char*) buf, text.length());
return true; return true;
} }
#endif // wxUSE_STREAMS #endif // wxUSE_STREAMS
@@ -5485,7 +5485,7 @@ bool wxRichTextImageBlock::WriteHex(wxOutputStream& stream)
hex = wxDecToHex(m_data[i]); hex = wxDecToHex(m_data[i]);
wxCharBuffer buf = hex.ToAscii(); wxCharBuffer buf = hex.ToAscii();
stream.Write((const char*) buf, hex.Length()); stream.Write((const char*) buf, hex.length());
} }
return true; return true;

View File

@@ -131,6 +131,7 @@
#include "wx/log.h" #include "wx/log.h"
#include "wx/dcclient.h" #include "wx/dcclient.h"
#include "wx/validate.h" #include "wx/validate.h"
#include "wx/dataobj.h"
#endif #endif
#include <ctype.h> #include <ctype.h>
@@ -148,10 +149,6 @@
#include "wx/cmdproc.h" #include "wx/cmdproc.h"
#if wxUSE_CLIPBOARD
#include "wx/dataobj.h"
#endif
// turn extra wxTextCtrl-specific debugging on/off // turn extra wxTextCtrl-specific debugging on/off
#define WXDEBUG_TEXT #define WXDEBUG_TEXT

View File

@@ -18,10 +18,9 @@
#ifndef WX_PRECOMP #ifndef WX_PRECOMP
#include "wx/log.h" #include "wx/log.h"
#include "wx/utils.h" #include "wx/utils.h"
#include "wx/dataobj.h"
#endif #endif
#include "wx/dataobj.h"
#include "wx/x11/private.h" #include "wx/x11/private.h"
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------