Version 6.4.0.0.beta1, tag libreoffice-6.4.0.0.beta1
[LibreOffice.git] / dtrans / test / win32 / dnd / targetlistener.hxx
blob153dc64eead55eff076cafd9f18ebf4ae7dacaf4
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 .
20 #ifndef INCLUDED_DTRANS_TEST_WIN32_DND_TARGETLISTENER_HXX
21 #define INCLUDED_DTRANS_TEST_WIN32_DND_TARGETLISTENER_HXX
23 #if defined _MSC_VER
24 #pragma warning(push,1)
25 #endif
26 #include <windows.h>
27 #if defined _MSC_VER
28 #pragma warning(pop)
29 #endif
30 #include <cppuhelper/implbase.hxx>
31 #include <com/sun/star/datatransfer/dnd/XDropTargetListener.hpp>
32 #include <com/sun/star/datatransfer/dnd/DropTargetDropEvent.hpp>
33 #include <com/sun/star/datatransfer/dnd/DropTargetDragEvent.hpp>
34 #include <com/sun/star/datatransfer/dnd/DropTargetDragEnterEvent.hpp>
36 using namespace ::com::sun::star::datatransfer;
37 using namespace ::com::sun::star::datatransfer::dnd;
38 using namespace ::cppu;
39 using namespace ::com::sun::star::uno;
40 using namespace ::com::sun::star::lang;
42 class DropTargetListener: public WeakImplHelper<XDropTargetListener>
44 // this is a window where dropped data are shown as text (only text)
45 HWND m_hEdit;
46 public:
47 explicit DropTargetListener(HWND hEdit);
48 ~DropTargetListener();
50 virtual void SAL_CALL disposing( const EventObject& Source )
51 throw(RuntimeException);
53 virtual void SAL_CALL drop( const DropTargetDropEvent& dtde )
54 throw(RuntimeException);
55 virtual void SAL_CALL dragEnter( const DropTargetDragEnterEvent& dtde )
56 throw(RuntimeException);
57 virtual void SAL_CALL dragExit( const DropTargetEvent& dte )
58 throw(RuntimeException);
59 virtual void SAL_CALL dragOver( const DropTargetDragEvent& dtde )
60 throw(RuntimeException);
61 virtual void SAL_CALL dropActionChanged( const DropTargetDragEvent& dtde )
62 throw(RuntimeException);
65 #endif
67 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */