Debian Codegraph @

src/af/xap/win/xap_Win32DragAndDrop.h

raw
1 /* AbiSource Application Framework
2 * Copyright (C) 1998 AbiSource, Inc.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License
6 * as published by the Free Software Foundation; either version 2
7 * of the License, or (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
17 * 02110-1301 USA.
18 */
19
20
21 #ifndef XAP_WIN32DROPTARGET_H
22 #define XAP_WIN32DROPTARGET_H
23
24 #include <stdlib.h>
25 #include <windows.h>
26 #include <commctrl.h> // includes the common control header
27 #ifndef __MINGW32__
28 #include <crtdbg.h>
29 #endif
30 #include <sys/types.h>
31 #include <sys/stat.h>
32 #include <stdio.h>
33 #include <string.h>
34 #include <io.h>
35 #include <fcntl.h>
36 #include <ole2.h>
37
38 #include "xap_Frame.h"
39
40
41 /*****************************************************************
42 ******************************************************************
43 ** XAP_Win32DropTarget implements the OLE 2 Drop functionality in
44 ** AbiWord
45 ******************************************************************
46 *****************************************************************/
47
48 interface ABI_EXPORT XAP_Win32DropTarget : public IDropTarget
49 {
50
51 public:
52
53 XAP_Win32DropTarget();
54 virtual ~XAP_Win32DropTarget() {}
55
56 // Ole Methods
57 STDMETHODIMP QueryInterface (REFIID riid, LPVOID FAR* ppv);
58 STDMETHODIMP_(ULONG) AddRef ();
59 STDMETHODIMP_(ULONG) Release ();
60
61
62 STDMETHODIMP DragEnter (LPDATAOBJECT pDataObj, DWORD grfKeyState,
63 POINTL pt, LPDWORD pdwEffect);
64 STDMETHODIMP DragOver (DWORD grfKeyState, POINTL pt, LPDWORD pdwEffect);
65 STDMETHODIMP DragLeave ();
66 STDMETHODIMP Drop (LPDATAOBJECT pDataObj, DWORD grfKeyState, POINTL pt,
67 LPDWORD pdwEffect);
68
69 // Helper
70 void setFrame(XAP_Frame* pFrame) {m_pFrame = pFrame;};
71 private:
72
73 int m_nCount; // reference count
74 UINT m_uCF_RTF;
75 bool m_bSupportedFormat;
76 XAP_Frame* m_pFrame;
77
78
79 };
80
81
82 #endif