merge the formfield patch from ooo-build
[ooovba.git] / slideshow / source / engine / slideshowcontext.cxx
blob2b1b481980139fc61de7489537bead46a5de5194
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: slideshowcontext.cxx,v $
10 * $Revision: 1.4 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #include "precompiled_slideshow.hxx"
32 #include <com/sun/star/uno/Reference.hxx>
33 #include <com/sun/star/uno/XComponentContext.hpp>
35 #include "slideshowcontext.hxx"
36 #include "subsettableshapemanager.hxx"
37 #include "screenupdater.hxx"
38 #include "eventqueue.hxx"
39 #include "activitiesqueue.hxx"
40 #include "usereventqueue.hxx"
41 #include "eventmultiplexer.hxx"
42 #include "unoviewcontainer.hxx"
45 using namespace ::com::sun::star;
47 namespace slideshow
49 namespace internal
52 SlideShowContext::SlideShowContext( SubsettableShapeManagerSharedPtr& rSubsettableShapeManager,
53 EventQueue& rEventQueue,
54 EventMultiplexer& rEventMultiplexer,
55 ScreenUpdater& rScreenUpdater,
56 ActivitiesQueue& rActivitiesQueue,
57 UserEventQueue& rUserEventQueue,
58 CursorManager& rCursorManager,
59 const UnoViewContainer& rViewContainer,
60 const uno::Reference<
61 uno::XComponentContext>& rComponentContext ) :
62 mpSubsettableShapeManager( rSubsettableShapeManager ),
63 mrEventQueue( rEventQueue ),
64 mrEventMultiplexer( rEventMultiplexer ),
65 mrScreenUpdater( rScreenUpdater ),
66 mrActivitiesQueue( rActivitiesQueue ),
67 mrUserEventQueue( rUserEventQueue ),
68 mrCursorManager( rCursorManager ),
69 mrViewContainer( rViewContainer ),
70 mxComponentContext( rComponentContext )
73 void SlideShowContext::dispose()
75 mxComponentContext.clear();
78 } // namespace internal
79 } // namespace slideshow