Quoting Matti Picus <[EMAIL PROTECTED]>:

> The following commits enable file drag-and-drop (from a file manager or 
> browser) onto abiword.
> 
> abi/src/af/xap/win/xap_Win32Frame.cpp updated to 1.74
> abi/src/wp/ap/win/ap_Win32App.cpp updated to 1.71
> 
> 
> Still todo: how can I tell if the target frame is empty so I can reuse
> it 
> instead of opening a new one?
> 
> Matti

The UNIX code for this is:

                        if (pFrame->isDirty() || pFrame->getFilename() || 
                                (pFrame->getViewNumber() > 0))
                        {
                                pNewUnixFrame = pApp->newFrame ();
                        }
                        else
                        {
                                pNewUnixFrame = pUnixFrame;
                        }
                        error = pNewUnixFrame->loadDocument(filename, 0 /* 
IEFT_Unknown */);

You can definitely use the logic from the if statement there to help you on 
win32.

Dom

Reply via email to