LibreOffice Module vcl (master)  1
dndhelper.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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/.
8  */
9 
10 #pragma once
11 
12 #include <sal/types.h>
13 #include <vcl/dllapi.h>
14 #include <com/sun/star/uno/Reference.hxx>
15 
16 namespace com::sun::star::lang
17 {
18 class XInitialization;
19 }
20 namespace com::sun::star::uno
21 {
22 class XInterface;
23 }
24 
25 namespace vcl
26 {
27 // Ole and X11 refer to the UNO DnD interface names and their expected XInitialization arguments.
28 
29 enum class DragOrDrop
30 {
31  Drag,
32  Drop
33 };
34 VCL_DLLPUBLIC css::uno::Reference<css::uno::XInterface>
35 OleDnDHelper(const css::uno::Reference<css::lang::XInitialization>&, sal_IntPtr pWin, DragOrDrop);
36 
37 VCL_DLLPUBLIC css::uno::Reference<css::uno::XInterface>
38 X11DnDHelper(const css::uno::Reference<css::lang::XInitialization>&, sal_IntPtr pWin);
39 }
40 
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
DragOrDrop
Definition: dndhelper.hxx:29
VCL_DLLPUBLIC css::uno::Reference< css::uno::XInterface > OleDnDHelper(const css::uno::Reference< css::lang::XInitialization > &, sal_IntPtr pWin, DragOrDrop)
Definition: dndhelp.cxx:146
VCL_DLLPUBLIC css::uno::Reference< css::uno::XInterface > X11DnDHelper(const css::uno::Reference< css::lang::XInitialization > &, sal_IntPtr pWin)
Definition: dndhelp.cxx:159