Subject: Re: commit: file drag-and-drop for win32
From: Dom Lachowicz (dominicl@seas.upenn.edu)
Date: Thu Oct 04 2001 - 08:36:40 CDT
Quoting Matti Picus <matti@picus.org>:
> 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
This archive was generated by hypermail 2b25 : Thu Oct 04 2001 - 08:36:57 CDT