#include "wx/settings.h"
#include "wx/msgdlg.h"
#include "wx/cmndata.h"
+#include "wx/dataobj.h"
#include "wx/control.h"
#include "wx/ctrlsub.h"
// Created: 2003/07/23
// RCS-ID: $Id$
// Copyright: (c) 2003 David Elliott
-// Licence: wxWidgets licence
+// Licence: wxWidgets licence
/////////////////////////////////////////////////////////////////////////////
#include "wx/wxprec.h"
#if wxUSE_DATAOBJ
+#include "wx/dataobj.h"
+
#ifndef WX_PRECOMP
#endif //WX_PRECOMP
-#include "wx/dataobj.h"
wxDataObject::wxDataObject()
{
#include "wx/dcclient.h"
#include "wx/menu.h"
#include "wx/log.h"
+ #include "wx/dataobj.h"
#endif
#include "wx/clipbrd.h"
-#include "wx/dataobj.h"
// ============================================================================
// implementation
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/utils.h"
+ #include "wx/dataobj.h"
#endif
-#include "wx/dataobj.h"
-
#include "wx/gtk/private.h"
//-----------------------------------------------------------------------------
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/utils.h"
+ #include "wx/dataobj.h"
#endif
-#include "wx/dataobj.h"
-
#include <glib.h>
#include <gdk/gdk.h>
#include <gtk/gtk.h>
#include "wx/dcmemory.h"
#include "wx/timer.h"
#include "wx/settings.h"
+ #include "wx/dataobj.h"
#endif
#include "wx/html/htmlwin.h"
#include "wx/html/htmlproc.h"
#include "wx/clipbrd.h"
-#include "wx/dataobj.h"
#include "wx/arrimpl.cpp"
#include "wx/listimpl.cpp"
// headers
// ----------------------------------------------------------------------------
+#include "wx/dataobj.h"
+
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/image.h"
#endif
-#include "wx/dataobj.h"
#include "wx/mstream.h"
#include "wx/mac/private.h"
#include <Scrap.h>
#include "wx/app.h"
#include "wx/utils.h"
#include "wx/bitmap.h"
+ #include "wx/dataobj.h"
#endif
-#include "wx/dataobj.h"
#include "wx/ptr_scpd.h"
#ifdef __VMS__
#include "wx/utils.h"
#include "wx/intl.h"
#include "wx/log.h"
+ #include "wx/dataobj.h"
#endif
#if wxUSE_METAFILE
// the functions using wxDataObject in wxClipboard
//#define wxUSE_DATAOBJ wxUSE_DRAG_AND_DROP
-#if wxUSE_DATAOBJ
- #include "wx/dataobj.h"
-#endif
-
#if wxUSE_OLE && !defined(__WXWINCE__)
// use OLE clipboard
#define wxUSE_OLE_CLIPBOARD 1
#include "wx/utils.h"
#include "wx/intl.h"
#include "wx/log.h"
+ #include "wx/dataobj.h"
#endif
#if wxUSE_METAFILE
// wxDataObject is tied to OLE/drag and drop implementation,
// therefore so is wxClipboard :-(
-#if wxUSE_DRAG_AND_DROP
- #include "wx/dataobj.h"
-
-// static bool wxSetClipboardData(wxDataObject *data);
-#endif
// ===========================================================================
// implementation
#if wxUSE_DATAOBJ
+#include "wx/dataobj.h"
+
#ifndef WX_PRECOMP
#include "wx/intl.h"
#include "wx/log.h"
#include "wx/image.h"
#endif
-#include "wx/dataobj.h"
#include "wx/mstream.h"
#include "wx/os2/private.h"
#include "wx/utils.h"
#include "wx/intl.h"
#include "wx/log.h"
+ #include "wx/dataobj.h"
#endif
#if wxUSE_METAFILE
#include "wx/palmos/private.h"
#if wxUSE_WXDIB
-#include "wx/palmos/dib.h"
-#endif
-
-#if wxUSE_DATAOBJ
- #include "wx/dataobj.h"
+ #include "wx/palmos/dib.h"
#endif
#if wxUSE_OLE && !defined(__WXWINCE__)
// old-style clipboard functions
// ---------------------------------------------------------------------------
-static bool gs_wxClipboardIsOpen = FALSE;
+static bool gs_wxClipboardIsOpen = false;
bool wxOpenClipboard()
{
wxClipboard::wxClipboard()
{
- m_clearOnExit = FALSE;
- m_isOpened = FALSE;
+ m_clearOnExit = false;
+ m_isOpened = false;
}
wxClipboard::~wxClipboard()
#include "wx/dc.h"
#include "wx/intl.h"
#include "wx/log.h"
+ #include "wx/dataobj.h"
#endif
#include "wx/filename.h"
#include "wx/clipbrd.h"
-#include "wx/dataobj.h"
#include "wx/wfstream.h"
#include "wx/module.h"
#include "wx/mstream.h"
wxRichTextRange range(-1, -1);
size_t i = 0;
- size_t len = text.Length();
+ size_t len = text.length();
wxString line;
while (i < len)
{
text + textObject->GetText().Mid(posInString);
textObject->SetText(newText);
- int textLength = text.Length();
+ int textLength = text.length();
textObject->SetRange(wxRichTextRange(textObject->GetRange().GetStart(),
textObject->GetRange().GetEnd() + textLength));
int spacePos = plainText.Find(wxT(' '), true);
if (spacePos != wxNOT_FOUND)
{
- int positionsFromEndOfString = plainText.Length() - spacePos - 1;
+ int positionsFromEndOfString = plainText.length() - spacePos - 1;
breakPosition = breakPosition - positionsFromEndOfString;
}
}
wxRichTextObject* wxRichTextPlainText::DoSplit(long pos)
{
int index = pos - GetRange().GetStart();
- if (index < 0 || index >= (int) m_text.Length())
+ if (index < 0 || index >= (int) m_text.length())
return NULL;
wxString firstPart = m_text.Mid(0, index);
/// Calculate range
void wxRichTextPlainText::CalculateRange(long start, long& end)
{
- end = start + m_text.Length() - 1;
+ end = start + m_text.length() - 1;
m_range.SetRange(start, end);
}
action->SetPosition(pos);
// 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);
wxString text = buffer->GetText();
wxCharBuffer buf = text.ToAscii();
- stream.Write((const char*) buf, text.Length());
+ stream.Write((const char*) buf, text.length());
return true;
}
#endif // wxUSE_STREAMS
hex = wxDecToHex(m_data[i]);
wxCharBuffer buf = hex.ToAscii();
- stream.Write((const char*) buf, hex.Length());
+ stream.Write((const char*) buf, hex.length());
}
return true;
#include "wx/log.h"
#include "wx/dcclient.h"
#include "wx/validate.h"
+ #include "wx/dataobj.h"
#endif
#include <ctype.h>
#include "wx/cmdproc.h"
-#if wxUSE_CLIPBOARD
-#include "wx/dataobj.h"
-#endif
-
// turn extra wxTextCtrl-specific debugging on/off
#define WXDEBUG_TEXT
#ifndef WX_PRECOMP
#include "wx/log.h"
#include "wx/utils.h"
+ #include "wx/dataobj.h"
#endif
-#include "wx/dataobj.h"
-
#include "wx/x11/private.h"
//-----------------------------------------------------------------------------