1*b1cdbd2cSJim Jagielski /************************************************************** 2*b1cdbd2cSJim Jagielski * 3*b1cdbd2cSJim Jagielski * Licensed to the Apache Software Foundation (ASF) under one 4*b1cdbd2cSJim Jagielski * or more contributor license agreements. See the NOTICE file 5*b1cdbd2cSJim Jagielski * distributed with this work for additional information 6*b1cdbd2cSJim Jagielski * regarding copyright ownership. The ASF licenses this file 7*b1cdbd2cSJim Jagielski * to you under the Apache License, Version 2.0 (the 8*b1cdbd2cSJim Jagielski * "License"); you may not use this file except in compliance 9*b1cdbd2cSJim Jagielski * with the License. You may obtain a copy of the License at 10*b1cdbd2cSJim Jagielski * 11*b1cdbd2cSJim Jagielski * http://www.apache.org/licenses/LICENSE-2.0 12*b1cdbd2cSJim Jagielski * 13*b1cdbd2cSJim Jagielski * Unless required by applicable law or agreed to in writing, 14*b1cdbd2cSJim Jagielski * software distributed under the License is distributed on an 15*b1cdbd2cSJim Jagielski * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*b1cdbd2cSJim Jagielski * KIND, either express or implied. See the License for the 17*b1cdbd2cSJim Jagielski * specific language governing permissions and limitations 18*b1cdbd2cSJim Jagielski * under the License. 19*b1cdbd2cSJim Jagielski * 20*b1cdbd2cSJim Jagielski *************************************************************/ 21*b1cdbd2cSJim Jagielski 22*b1cdbd2cSJim Jagielski 23*b1cdbd2cSJim Jagielski 24*b1cdbd2cSJim Jagielski #ifndef INCLUDED_SLIDESHOW_SLIDESHOWCONTEXT_HXX 25*b1cdbd2cSJim Jagielski #define INCLUDED_SLIDESHOW_SLIDESHOWCONTEXT_HXX 26*b1cdbd2cSJim Jagielski 27*b1cdbd2cSJim Jagielski #include <com/sun/star/uno/Reference.hxx> 28*b1cdbd2cSJim Jagielski #include <boost/shared_ptr.hpp> 29*b1cdbd2cSJim Jagielski 30*b1cdbd2cSJim Jagielski namespace com{ namespace sun{ namespace star{ namespace uno 31*b1cdbd2cSJim Jagielski { 32*b1cdbd2cSJim Jagielski class XComponentContext; 33*b1cdbd2cSJim Jagielski }}}} 34*b1cdbd2cSJim Jagielski 35*b1cdbd2cSJim Jagielski 36*b1cdbd2cSJim Jagielski namespace slideshow 37*b1cdbd2cSJim Jagielski { 38*b1cdbd2cSJim Jagielski namespace internal 39*b1cdbd2cSJim Jagielski { 40*b1cdbd2cSJim Jagielski class ShapeManager; 41*b1cdbd2cSJim Jagielski class EventQueue; 42*b1cdbd2cSJim Jagielski class ActivitiesQueue; 43*b1cdbd2cSJim Jagielski class UserEventQueue; 44*b1cdbd2cSJim Jagielski class EventMultiplexer; 45*b1cdbd2cSJim Jagielski class ScreenUpdater; 46*b1cdbd2cSJim Jagielski class UnoViewContainer; 47*b1cdbd2cSJim Jagielski class CursorManager; 48*b1cdbd2cSJim Jagielski class SubsettableShapeManager; 49*b1cdbd2cSJim Jagielski 50*b1cdbd2cSJim Jagielski /** Common arguments for slideshow objects. 51*b1cdbd2cSJim Jagielski 52*b1cdbd2cSJim Jagielski This struct combines a number of object references 53*b1cdbd2cSJim Jagielski ubiquituously needed throughout the slideshow. 54*b1cdbd2cSJim Jagielski */ 55*b1cdbd2cSJim Jagielski struct SlideShowContext 56*b1cdbd2cSJim Jagielski { 57*b1cdbd2cSJim Jagielski /** Common context for node creation 58*b1cdbd2cSJim Jagielski 59*b1cdbd2cSJim Jagielski @param rShapeManager 60*b1cdbd2cSJim Jagielski ShapeManager, which handles all shapes 61*b1cdbd2cSJim Jagielski 62*b1cdbd2cSJim Jagielski @param rEventQueue 63*b1cdbd2cSJim Jagielski Event queue, where time-based events are to be 64*b1cdbd2cSJim Jagielski scheduled. A node must not schedule events there 65*b1cdbd2cSJim Jagielski before it's not resolved. 66*b1cdbd2cSJim Jagielski 67*b1cdbd2cSJim Jagielski @param rEventMultiplexer 68*b1cdbd2cSJim Jagielski Event multiplexer. Clients can register there for 69*b1cdbd2cSJim Jagielski about any event that happens in the slideshow 70*b1cdbd2cSJim Jagielski 71*b1cdbd2cSJim Jagielski @param rScreenUpdater 72*b1cdbd2cSJim Jagielski Screen updater. Gets notified of necessary screen 73*b1cdbd2cSJim Jagielski updates. 74*b1cdbd2cSJim Jagielski 75*b1cdbd2cSJim Jagielski @param rActivitiesQueue 76*b1cdbd2cSJim Jagielski Activities queue, where repeating activities are 77*b1cdbd2cSJim Jagielski to be scheduled. 78*b1cdbd2cSJim Jagielski 79*b1cdbd2cSJim Jagielski @param rUserEventQueue 80*b1cdbd2cSJim Jagielski User event queue 81*b1cdbd2cSJim Jagielski 82*b1cdbd2cSJim Jagielski @param rViewContainer 83*b1cdbd2cSJim Jagielski Holds all views added to slideshow 84*b1cdbd2cSJim Jagielski 85*b1cdbd2cSJim Jagielski @param rComponentContext 86*b1cdbd2cSJim Jagielski To create UNO services from 87*b1cdbd2cSJim Jagielski */ 88*b1cdbd2cSJim Jagielski SlideShowContext( boost::shared_ptr<SubsettableShapeManager>& rSubsettableShapeManager, 89*b1cdbd2cSJim Jagielski EventQueue& rEventQueue, 90*b1cdbd2cSJim Jagielski EventMultiplexer& rEventMultiplexer, 91*b1cdbd2cSJim Jagielski ScreenUpdater& rScreenUpdater, 92*b1cdbd2cSJim Jagielski ActivitiesQueue& rActivitiesQueue, 93*b1cdbd2cSJim Jagielski UserEventQueue& rUserEventQueue, 94*b1cdbd2cSJim Jagielski CursorManager& rCursorManager, 95*b1cdbd2cSJim Jagielski const UnoViewContainer& rViewContainer, 96*b1cdbd2cSJim Jagielski const ::com::sun::star::uno::Reference< 97*b1cdbd2cSJim Jagielski ::com::sun::star::uno::XComponentContext>& rComponentContext ); 98*b1cdbd2cSJim Jagielski void dispose(); 99*b1cdbd2cSJim Jagielski 100*b1cdbd2cSJim Jagielski boost::shared_ptr<SubsettableShapeManager>& mpSubsettableShapeManager; 101*b1cdbd2cSJim Jagielski EventQueue& mrEventQueue; 102*b1cdbd2cSJim Jagielski EventMultiplexer& mrEventMultiplexer; 103*b1cdbd2cSJim Jagielski ScreenUpdater& mrScreenUpdater; 104*b1cdbd2cSJim Jagielski ActivitiesQueue& mrActivitiesQueue; 105*b1cdbd2cSJim Jagielski UserEventQueue& mrUserEventQueue; 106*b1cdbd2cSJim Jagielski CursorManager& mrCursorManager; 107*b1cdbd2cSJim Jagielski const UnoViewContainer& mrViewContainer; 108*b1cdbd2cSJim Jagielski ::com::sun::star::uno::Reference< 109*b1cdbd2cSJim Jagielski ::com::sun::star::uno::XComponentContext> mxComponentContext; 110*b1cdbd2cSJim Jagielski }; 111*b1cdbd2cSJim Jagielski } 112*b1cdbd2cSJim Jagielski } 113*b1cdbd2cSJim Jagielski 114*b1cdbd2cSJim Jagielski #endif /* INCLUDED_SLIDESHOW_SLIDESHOWCONTEXT_HXX */ 115