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
17{
18class XInitialization;
19}
20namespace com::sun::star::uno
21{
22class XInterface;
23}
24
25namespace vcl
26{
27// Ole and X11 refer to the UNO DnD interface names and their expected XInitialization arguments.
28
29enum class DragOrDrop
30{
31 Drag,
32 Drop
33};
34VCL_DLLPUBLIC css::uno::Reference<css::uno::XInterface>
35OleDnDHelper(const css::uno::Reference<css::lang::XInitialization>&, sal_IntPtr pWin, DragOrDrop);
36
37VCL_DLLPUBLIC css::uno::Reference<css::uno::XInterface>
38X11DnDHelper(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
VCL_DLLPUBLIC css::uno::Reference< css::uno::XInterface > OleDnDHelper(const css::uno::Reference< css::lang::XInitialization > &, sal_IntPtr pWin, DragOrDrop)
Definition: dndhelp.cxx:146
DragOrDrop
Definition: dndhelper.hxx:30
VCL_DLLPUBLIC css::uno::Reference< css::uno::XInterface > X11DnDHelper(const css::uno::Reference< css::lang::XInitialization > &, sal_IntPtr pWin)
Definition: dndhelp.cxx:159