git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@4368
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
if(keyCode == WXK_F1)
{
m_llist->Debug();
if(keyCode == WXK_F1)
{
m_llist->Debug();
// this should work even in read-only mode
Copy();
break;
// this should work even in read-only mode
Copy();
break;
-#ifdef M_BASEDIR
- case 's': // search
Find("");
break;
case 't': // search again
FindAgain();
break;
Find("");
break;
case 't': // search again
FindAgain();
break;
;
}
else if( IsEditable() )
;
}
else if( IsEditable() )
case 's': // search
Find("");
break;
case 't': // search again
FindAgain();
break;
case 's': // search
Find("");
break;
case 't': // search again
FindAgain();
break;
m_llist->DeleteToBeginOfLine();
SetDirty();
break;
m_llist->DeleteToBeginOfLine();
SetDirty();
break;
// Read some text
if (wxTheClipboard->Open())
{
// Read some text
if (wxTheClipboard->Open())
{
if(primary)
wxTheClipboard->UsePrimarySelection();
if(primary)
wxTheClipboard->UsePrimarySelection();
+#endif
+#if wxUSE_PRIVATE_CLIPBOARD_FORMAT
wxLayoutDataObject wxldo;
if (wxTheClipboard->IsSupported( wxldo.GetFormat() ))
{
wxLayoutDataObject wxldo;
if (wxTheClipboard->IsSupported( wxldo.GetFormat() ))
{
- wxTheClipboard->GetData(wxldo);
-
- // now we can access the data we had put into wxLayoutDataObject in
- // wxLayoutList::GetSelection by calling its GetLayoutData() - the
- // trouble is that I don't know what to do with it! (VZ)
+ wxTheClipboard->GetData(&wxldo);
+ {
+ }
+ //FIXME: missing functionality m_llist->Insert(wxldo.GetList());
+#if 0 //RE_ENABLE FIXME!!
wxTextDataObject data;
if (wxTheClipboard->IsSupported( data.GetFormat() ))
{
wxTextDataObject data;
if (wxTheClipboard->IsSupported( data.GetFormat() ))
{
- wxTheClipboard->GetData(data);
+ wxTheClipboard->GetData(&data);
wxString text = data.GetText();
wxLayoutImportText( m_llist, text);
SetDirty();
}
wxString text = data.GetText();
wxLayoutImportText( m_llist, text);
SetDirty();
}
}
wxTheClipboard->Close();
}
}
wxTheClipboard->Close();
}
m_llist->EndSelection();
}
m_llist->EndSelection();
}
- wxLayoutDataObject *wldo = new wxLayoutDataObject;
- wxLayoutList *llist = m_llist->GetSelection(wldo, invalidate);
+#if 0 //FIXME CLIPBOARD
+ wxLayoutDataObject wldo;
+ wxLayoutList *llist = m_llist->GetSelection(&wldo, invalidate);
if(! llist)
return FALSE;
// Export selection as text:
if(! llist)
return FALSE;
// Export selection as text:
if (wxTheClipboard->Open())
{
if (wxTheClipboard->Open())
{
- wxDataObjectComposite *dobj = new wxDataObjectComposite;
- dobj->Add(new wxTextDataObject(text));
- dobj->Add(wldo);
-
- bool rc = wxTheClipboard->SetData(dobj);
-
+ wxTextDataObject *data = new wxTextDataObject( text );
+ bool rc = wxTheClipboard->SetData( data );
+#if wxUSE_PRIVATE_CLIPBOARD_FORMAT
+ rc |= wxTheClipboard->AddData( &wldo );
+#endif
wxTheClipboard->Close();
return rc;
}
wxTheClipboard->Close();
return rc;
}
+#endif //FIXME CLIPBOARD
+