xref: /trunk/main/svx/inc/svx/sdr/contact/viewobjectcontactofsdrmediaobj.hxx (revision 914d351e5f5b84e4342a86d6ab8d4aca7308b9bd)
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_VIEWOBJECTCONTACTOFSDRMEDIAOBJ_HXX
25 #define _SDR_CONTACT_VIEWOBJECTCONTACTOFSDRMEDIAOBJ_HXX
26 
27 #include <svx/sdr/contact/viewobjectcontactofsdrobj.hxx>
28 #include <svx/sdr/contact/viewobjectcontact.hxx>
29 
30 namespace avmedia { class MediaItem; }
31 class Window;
32 
33 namespace sdr
34 {
35     namespace contact
36     {
37         class SdrMediaWindow;
38 
39         class ViewObjectContactOfSdrMediaObj : public ViewObjectContactOfSdrObj
40         {
41         public:
42 
43             ViewObjectContactOfSdrMediaObj( ObjectContact& rObjectContact,
44                                             ViewContact& rViewContact,
45                                             const ::avmedia::MediaItem& rMediaItem );
46             virtual ~ViewObjectContactOfSdrMediaObj();
47 
48         public:
49 
50             Window* getWindow() const;
51 
52             bool    hasPreferredSize() const;
53             Size    getPreferredSize() const;
54 
55             void    updateMediaItem( ::avmedia::MediaItem& rItem ) const;
56             void    executeMediaItem( const ::avmedia::MediaItem& rItem );
57 
58         private:
59 
60             ::sdr::contact::SdrMediaWindow* mpMediaWindow;
61 
62         };
63     } // end of namespace contact
64 } // end of namespace sdr
65 
66 //////////////////////////////////////////////////////////////////////////////
67 
68 #endif // _SDR_CONTACT_VIEWOBJECTCONTACTOFSDRMEDIAOBJ_HXX
69