Added missing include

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35982 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Julian Smart 2005-10-22 09:20:09 +00:00
parent 4837b89e3b
commit 11ef729d54

View File

@ -26,6 +26,7 @@
#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"
@ -3824,7 +3825,7 @@ bool wxRichTextBuffer::SaveFile(wxOutputStream& stream, int type)
bool wxRichTextBuffer::CopyToClipboard(const wxRichTextRange& range) bool wxRichTextBuffer::CopyToClipboard(const wxRichTextRange& range)
{ {
bool success = false; bool success = false;
#if wxUSE_CLIPBOARD #if wxUSE_CLIPBOARD && wxUSE_DATAOBJ
wxString text = GetTextForRange(range); wxString text = GetTextForRange(range);
if (!wxTheClipboard->IsOpened() && wxTheClipboard->Open()) if (!wxTheClipboard->IsOpened() && wxTheClipboard->Open())
{ {
@ -3841,7 +3842,7 @@ bool wxRichTextBuffer::CopyToClipboard(const wxRichTextRange& range)
bool wxRichTextBuffer::PasteFromClipboard(long position) bool wxRichTextBuffer::PasteFromClipboard(long position)
{ {
bool success = false; bool success = false;
#if wxUSE_CLIPBOARD #if wxUSE_CLIPBOARD && wxUSE_DATAOBJ
if (CanPasteFromClipboard()) if (CanPasteFromClipboard())
{ {
if (wxTheClipboard->Open()) if (wxTheClipboard->Open())
@ -3892,7 +3893,7 @@ bool wxRichTextBuffer::PasteFromClipboard(long position)
bool wxRichTextBuffer::CanPasteFromClipboard() const bool wxRichTextBuffer::CanPasteFromClipboard() const
{ {
bool canPaste = false; bool canPaste = false;
#if wxUSE_CLIPBOARD #if wxUSE_CLIPBOARD && wxUSE_DATAOBJ
if (!wxTheClipboard->IsOpened() && wxTheClipboard->Open()) if (!wxTheClipboard->IsOpened() && wxTheClipboard->Open())
{ {
if (wxTheClipboard->IsSupported(wxDF_TEXT) || wxTheClipboard->IsSupported(wxDF_BITMAP)) if (wxTheClipboard->IsSupported(wxDF_TEXT) || wxTheClipboard->IsSupported(wxDF_BITMAP))