fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / dtrans / source / win32 / dnd / globals.hxx
bloba6214e95a16874acb4f65ed8c8ef9673bef5f620
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_DTRANS_SOURCE_WIN32_DND_GLOBALS_HXX
20 #define INCLUDED_DTRANS_SOURCE_WIN32_DND_GLOBALS_HXX
22 #include <osl/mutex.hxx>
24 #if defined _MSC_VER
25 #pragma warning(push,1)
26 #endif
27 #include <wtypes.h>
28 #if defined _MSC_VER
29 #pragma warning(pop)
30 #endif
31 #include <sal/types.h>
33 #define DNDSOURCE_SERVICE_NAME "com.sun.star.datatransfer.dnd.OleDragSource"
34 #define DNDSOURCE_IMPL_NAME "com.sun.star.comp.datatransfer.dnd.OleDragSource_V1"
36 #define DNDTARGET_SERVICE_NAME "com.sun.star.datatransfer.dnd.OleDropTarget"
37 #define DNDTARGET_IMPL_NAME "com.sun.star.comp.datatransfer.dnd.OleDropTarget_V1"
39 // This maps key states as occur as parameter, e.g. in IDropTarget::DragEnter,
40 // IDropSource::QueryContinueDrag, to actions as are declared in
41 // com::sun::star::datatransfer::dnd::DNDConstants ( ACTION_MOVE etc).
42 // If the grfKeyState indicates the ALt or right mousebutton then the returned
43 // values combines all possible actions. This is because those key and button are
44 // used when the user expect a menu to appear when he drops. The menu then
45 // contains entries, such as move, copy, link, cancel.
46 // An odd fact is that the argument grfKeyState in IDropTarget::Drop does not
47 // contain mouse buttons (winnt 4 SP6). That indicates that the right mouse button
48 // is not considered relevant in a drag operation. Contrarily the file explorer
49 // gives that button a special meaning: the user has to select the effect from
50 // a context menu on drop.
51 sal_Int8 dndOleKeysToAction( DWORD grfKeyState, sal_Int8 sourceActions);
53 // The function maps a windows DROPEFFECTs to actions
54 // ( com::sun::star::datatransfer::dnd::DNDConstants).
55 // The argument can be a combination of different DROPEFFECTS,
56 // In that case the return value is also a combination of the
57 // appropriate actions.
58 sal_Int8 dndOleDropEffectsToActions( DWORD dwEffect);
60 // The function maps actions ( com::sun::star::datatransfer::dnd::DNDConstants)
61 // to window DROPEFFECTs.
62 // The argument can be a combination of different actions
63 // In that case the return value is also a combination of the
64 // appropriate DROPEFFECTS.
65 DWORD dndActionsToDropEffects( sal_Int8 actions);
67 // If the argument constitutes only one action then it is mapped to the
68 // corresponding DROPEFFECT otherwise DROPEFFECT_MOVE is returned. This is
69 // why move is the default effect (no modifiers pressed, or right mouse button
70 // or Alt).
71 DWORD dndActionsToSingleDropEffect( sal_Int8 actions);
73 struct MutexDummy
75 osl::Mutex m_mutex;
78 #endif
80 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */