xref: /trunk/main/dtrans/source/os2/dnd/globals.hxx (revision cc13e73e)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 #ifndef _GLOBALS_HXX_
24 #define _GLOBALS_HXX_
25 
26 #include <svpm.h>
27 
28 #include <rtl/unload.h>
29 
30 #define OS2_DNDSOURCE_SERVICE_NAME  "com.sun.star.datatransfer.dnd.OleDragSource"
31 #define OS2_DNDSOURCE_IMPL_NAME  "com.sun.star.comp.datatransfer.dnd.OleDragSource_V1"
32 
33 #define OS2_DNDTARGET_SERVICE_NAME  "com.sun.star.datatransfer.dnd.OleDropTarget"
34 #define OS2_DNDTARGET_IMPL_NAME  "com.sun.star.comp.datatransfer.dnd.OleDropTarget_V1"
35 
36 // from saldata.hxx: these offsets are hardcoded in dnd/globals.hxx too to avoid vcl dependancies
37 #define SAL_FRAME_DROPTARGET			sizeof(ULONG)
38 #define SAL_FRAME_DRAGSOURCE			(sizeof(ULONG)*2)
39 // from saldata.hxx: drag&drop internal messages (see dnd/globals.hxx)
40 #define DM_AOO_ENDCONVERSATION      (WM_USER+170)
41 
42 extern rtl_StandardModuleCount g_moduleCount;
43 
44 #if OSL_DEBUG_LEVEL>0
45 extern "C" int debug_printf(const char *f, ...);
46 #else
47 #define debug_printf( ...)
48 #endif
49 
50 MRESULT OfficeToSystemDragActions( sal_Int8 dragActions);
51 sal_Int8 SystemToOfficeDragActions( USHORT usOperation);
52 
53 extern "C" MRESULT EXPENTRY dndFrameProc(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
54 
55 // private exports from saldata.hxx
56 void SetWindowDropTargetPtr( HWND hWnd, void* dt);
57 void* GetWindowDropTargetPtr( HWND hWnd);
58 void SetWindowDragSourcePtr( HWND hWnd, void* ds);
59 void* GetWindowDragSourcePtr( HWND hWnd);
60 
61 void MapWindowPoint( HWND, PDRAGINFO, PPOINTL);
62 
63 #endif
64