xref: /AOO41X/main/slideshow/source/engine/slideshowcontext.cxx (revision f6e50924346d0b8c0b07c91832a97665dd718b0c)
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 #include "precompiled_slideshow.hxx"
24 
25 #include <com/sun/star/uno/Reference.hxx>
26 #include <com/sun/star/uno/XComponentContext.hpp>
27 
28 #include "slideshowcontext.hxx"
29 #include "subsettableshapemanager.hxx"
30 #include "screenupdater.hxx"
31 #include "eventqueue.hxx"
32 #include "activitiesqueue.hxx"
33 #include "usereventqueue.hxx"
34 #include "eventmultiplexer.hxx"
35 #include "unoviewcontainer.hxx"
36 
37 
38 using namespace ::com::sun::star;
39 
40 namespace slideshow
41 {
42 namespace internal
43 {
44 
45 SlideShowContext::SlideShowContext( SubsettableShapeManagerSharedPtr& rSubsettableShapeManager,
46                                     EventQueue&                       rEventQueue,
47                                     EventMultiplexer&                 rEventMultiplexer,
48                                     ScreenUpdater&                    rScreenUpdater,
49                                     ActivitiesQueue&                  rActivitiesQueue,
50                                     UserEventQueue&                   rUserEventQueue,
51                                     CursorManager&                    rCursorManager,
52                                     const UnoViewContainer&           rViewContainer,
53                                     const uno::Reference<
54                                           uno::XComponentContext>&    rComponentContext ) :
55         mpSubsettableShapeManager( rSubsettableShapeManager ),
56         mrEventQueue( rEventQueue ),
57         mrEventMultiplexer( rEventMultiplexer ),
58         mrScreenUpdater( rScreenUpdater ),
59         mrActivitiesQueue( rActivitiesQueue ),
60         mrUserEventQueue( rUserEventQueue ),
61         mrCursorManager( rCursorManager ),
62         mrViewContainer( rViewContainer ),
63         mxComponentContext( rComponentContext )
64     {}
65 
66 void SlideShowContext::dispose()
67 {
68     mxComponentContext.clear();
69 }
70 
71 } // namespace internal
72 } // namespace slideshow
73