LibreOffice Module slideshow (master) 1
slideshowcontext.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 */
19
20#include <com/sun/star/uno/Reference.hxx>
21#include <com/sun/star/uno/XComponentContext.hpp>
22
23#include <slideshowcontext.hxx>
25#include <screenupdater.hxx>
26#include <eventqueue.hxx>
27#include <activitiesqueue.hxx>
28#include <usereventqueue.hxx>
29#include <eventmultiplexer.hxx>
30#include <unoviewcontainer.hxx>
31#include <utility>
32
33
34using namespace ::com::sun::star;
35
36namespace slideshow::internal
37{
38
40 EventQueue& rEventQueue,
41 EventMultiplexer& rEventMultiplexer,
42 ScreenUpdater& rScreenUpdater,
43 ActivitiesQueue& rActivitiesQueue,
44 UserEventQueue& rUserEventQueue,
45 CursorManager& rCursorManager,
46 MediaFileManager& rMediaFileManager,
47 const UnoViewContainer& rViewContainer,
49 uno::XComponentContext> xComponentContext,
50 box2d::utils::Box2DWorldSharedPtr& rBox2DWorldPtr ) :
51 mpSubsettableShapeManager( rSubsettableShapeManager ),
52 mrEventQueue( rEventQueue ),
53 mrEventMultiplexer( rEventMultiplexer ),
54 mrScreenUpdater( rScreenUpdater ),
55 mrActivitiesQueue( rActivitiesQueue ),
56 mrUserEventQueue( rUserEventQueue ),
57 mrCursorManager( rCursorManager ),
58 mrMediaFileManager( rMediaFileManager ),
59 mrViewContainer( rViewContainer ),
60 mxComponentContext(std::move( xComponentContext )),
61 mpBox2DWorld( rBox2DWorldPtr )
62 {}
63
65{
66 mxComponentContext.clear();
67}
68
69} // namespace slideshow::internal
70
71/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::uno::XComponentContext > mxComponentContext
box2d::utils::Box2DWorldSharedPtr mpBox2DWorld
This class handles the XSprite updates needed for animations, such as moves, scales etc.
This class multiplexes user-activated and slide-show global events.
This class handles events in a presentation.
Definition: eventqueue.hxx:41
This class schedules user-activated events.
::std::shared_ptr< box2DWorld > Box2DWorldSharedPtr
::std::shared_ptr< SubsettableShapeManager > SubsettableShapeManagerSharedPtr
CursorManager & mrCursorManager
parent cursor manager
Definition: slideimpl.cxx:206
std::shared_ptr< SubsettableShapeManager > mpSubsettableShapeManager
Definition: slideimpl.cxx:199
EventMultiplexer & mrEventMultiplexer
Definition: slideview.cxx:728
EventQueue & mrEventQueue
Definition: slideview.cxx:729
SlideShowContext(SubsettableShapeManagerSharedPtr &rSubsettableShapeManager, EventQueue &rEventQueue, EventMultiplexer &rEventMultiplexer, ScreenUpdater &rScreenUpdater, ActivitiesQueue &rActivitiesQueue, UserEventQueue &rUserEventQueue, CursorManager &rCursorManager, MediaFileManager &rMediaFileManager, const UnoViewContainer &rViewContainer, css::uno::Reference< css::uno::XComponentContext > xComponentContext, box2d::utils::Box2DWorldSharedPtr &rBox2DWorldPtr)
Common context for node creation.
css::uno::Reference< css::uno::XComponentContext > mxComponentContext