note that the clipboard format is spreadsheet compatible

This commit is contained in:
Dick Hollenbeck 2012-12-09 14:53:46 -06:00
parent f477464f77
commit ee48de6744
1 changed files with 2 additions and 0 deletions

View File

@ -306,6 +306,7 @@ class DIALOG_FP_LIB_TABLE : public DIALOG_FP_LIB_TABLE_BASE
{ {
case ID_CUT: case ID_CUT:
case ID_COPY: case ID_COPY:
// this format is compatible with most spreadsheets
if( wxTheClipboard->Open() ) if( wxTheClipboard->Open() )
{ {
wxGridTableBase* tbl = m_cur_grid->GetTable(); wxGridTableBase* tbl = m_cur_grid->GetTable();
@ -334,6 +335,7 @@ class DIALOG_FP_LIB_TABLE : public DIALOG_FP_LIB_TABLE_BASE
case ID_PASTE: case ID_PASTE:
D(printf( "paste\n" );) D(printf( "paste\n" );)
// assume format came from a spreadsheet or us.
if( wxTheClipboard->Open() ) if( wxTheClipboard->Open() )
{ {
if( wxTheClipboard->IsSupported( wxDF_TEXT ) ) if( wxTheClipboard->IsSupported( wxDF_TEXT ) )