xref: /AOO41X/main/dtrans/source/win32/dnd/targetdragcontext.hxx (revision fbcf0fe955ab8df0a2f1d76ae10cf7d5c87503b1)
1*fbcf0fe9SAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*fbcf0fe9SAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*fbcf0fe9SAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*fbcf0fe9SAndrew Rist  * distributed with this work for additional information
6*fbcf0fe9SAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*fbcf0fe9SAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*fbcf0fe9SAndrew Rist  * "License"); you may not use this file except in compliance
9*fbcf0fe9SAndrew Rist  * with the License.  You may obtain a copy of the License at
10cdf0e10cSrcweir  *
11*fbcf0fe9SAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12cdf0e10cSrcweir  *
13*fbcf0fe9SAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*fbcf0fe9SAndrew Rist  * software distributed under the License is distributed on an
15*fbcf0fe9SAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*fbcf0fe9SAndrew Rist  * KIND, either express or implied.  See the License for the
17*fbcf0fe9SAndrew Rist  * specific language governing permissions and limitations
18*fbcf0fe9SAndrew Rist  * under the License.
19cdf0e10cSrcweir  *
20*fbcf0fe9SAndrew Rist  *************************************************************/
21*fbcf0fe9SAndrew Rist 
22*fbcf0fe9SAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _TARGETDRAGCONTEXT_HXX_
25cdf0e10cSrcweir #define _TARGETDRAGCONTEXT_HXX_
26cdf0e10cSrcweir 
27cdf0e10cSrcweir 
28cdf0e10cSrcweir #include <cppuhelper/implbase1.hxx>
29cdf0e10cSrcweir #include <com/sun/star/datatransfer/dnd/XDropTargetDragContext.hpp>
30cdf0e10cSrcweir #include <com/sun/star/datatransfer/DataFlavor.hpp>
31cdf0e10cSrcweir 
32cdf0e10cSrcweir #include "target.hxx"
33cdf0e10cSrcweir using namespace ::com::sun::star::datatransfer;
34cdf0e10cSrcweir using namespace ::com::sun::star::datatransfer::dnd;
35cdf0e10cSrcweir using namespace ::cppu;
36cdf0e10cSrcweir using namespace ::com::sun::star::uno;
37cdf0e10cSrcweir using namespace ::com::sun::star::lang;
38cdf0e10cSrcweir 
39cdf0e10cSrcweir class TargetDragContext: public WeakImplHelper1<XDropTargetDragContext>
40cdf0e10cSrcweir {
41cdf0e10cSrcweir 	// some calls to the functions of XDropTargetDragContext are delegated
42cdf0e10cSrcweir 	// to non-interface functions of m_pDropTarget
43cdf0e10cSrcweir 	DropTarget* m_pDropTarget;
44cdf0e10cSrcweir 
45cdf0e10cSrcweir 	TargetDragContext();
46cdf0e10cSrcweir 	TargetDragContext( const TargetDragContext&);
47cdf0e10cSrcweir 	TargetDragContext &operator= ( const TargetDragContext&);
48cdf0e10cSrcweir public:
49cdf0e10cSrcweir 	TargetDragContext( DropTarget* pTarget);
50cdf0e10cSrcweir 	~TargetDragContext();
51cdf0e10cSrcweir 
52cdf0e10cSrcweir     virtual void SAL_CALL acceptDrag( sal_Int8 dragOperation )
53cdf0e10cSrcweir 		throw( RuntimeException);
54cdf0e10cSrcweir     virtual void SAL_CALL rejectDrag(  )
55cdf0e10cSrcweir 		throw( RuntimeException);
56cdf0e10cSrcweir };
57cdf0e10cSrcweir 
58cdf0e10cSrcweir #endif
59