1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SDR_CONTACT_SDRMEDIAWIMNDOW_HXX
25 
26 #include <avmedia/mediawindow.hxx>
27 
28 namespace sdr {	namespace contact {
29 
30 // ------------------
31 // - SdrMediaWindow -
32 // ------------------
33 
34 class ViewObjectContactOfSdrMediaObj;
35 
36 class SdrMediaWindow : public ::avmedia::MediaWindow
37 {
38 public:
39 
40 							SdrMediaWindow( Window* pParent, ViewObjectContactOfSdrMediaObj& rViewObjContact );
41 							~SdrMediaWindow();
42 
43 		virtual void		MouseMove( const MouseEvent& rMEvt );
44 		virtual void		MouseButtonDown( const MouseEvent& rMEvt );
45 		virtual void		MouseButtonUp( const MouseEvent& rMEvt );
46 
47 		virtual void		KeyInput( const KeyEvent& rKEvt );
48 		virtual void		KeyUp( const KeyEvent& rKEvt );
49 
50 		virtual void		Command( const CommandEvent& rCEvt );
51 
52 		virtual sal_Int8	AcceptDrop( const AcceptDropEvent& rEvt );
53 		virtual sal_Int8	ExecuteDrop( const ExecuteDropEvent& rEvt );
54 
55 		virtual void		StartDrag( sal_Int8 nAction, const Point& rPosPixel );
56 
57 private:
58 
59 	ViewObjectContactOfSdrMediaObj& mrViewObjectContactOfSdrMediaObj;
60 };
61 
62 } }
63 
64 #endif
65