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