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