note that the clipboard format is spreadsheet compatible
This commit is contained in:
parent
f477464f77
commit
ee48de6744
|
@ -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 ) )
|
||||||
|
|
Loading…
Reference in New Issue