2010-10-27 12:53:26 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-06-21 14:30:25 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/10/19 22:12:04 thb 1.1.2.8: #110496#, #i35043#, #i35133#: Chose some more speaking names for some Shape methods; added GIF animation support; corrected a few slide transitions
2004/09/12 21:03:40 thb 1.1.2.7: #110496# Now painting views black, intially. The slide now has an explicit shape, which, if necessary, paints the page background in white. Furthermore, slide transitions now handle the case correctly, when the leaving slide is invalid
2004/09/03 17:56:21 thb 1.1.2.6: #110496# Added support for TransitionType::RANDOM
2004/09/01 20:26:46 thb 1.1.2.5: #110496# Implemented fade, slide and push special transition effects (had to pass Slide ptrs to transitionfactory again)
2004/08/27 18:54:36 thb 1.1.2.4: #110496# Implemented slide transitions, fixed some minor sd integration probs (repaints, updateScreen
2004/08/19 17:31:25 thb 1.1.2.3: #110496# Converted concrete shape class to interface, to support different shape flavours (actual trigger was the need to have video/sound objects). Fixed a problem for shape repaint, where instead of the correctly transformed bound rect the original shape bounds where taken
2004/08/11 16:54:38 dbo 1.1.2.2: #110496# transition info
Issue number:
Submitted by:
Reviewed by:
2004/08/05 20:00:02 thb 1.1.2.1: #110496# Moved from source/engine
2004-11-26 18:22:33 +00:00
|
|
|
|
2014-04-18 22:23:58 +02:00
|
|
|
#ifndef INCLUDED_SLIDESHOW_SOURCE_INC_TRANSITIONFACTORY_HXX
|
|
|
|
#define INCLUDED_SLIDESHOW_SOURCE_INC_TRANSITIONFACTORY_HXX
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/10/19 22:12:04 thb 1.1.2.8: #110496#, #i35043#, #i35133#: Chose some more speaking names for some Shape methods; added GIF animation support; corrected a few slide transitions
2004/09/12 21:03:40 thb 1.1.2.7: #110496# Now painting views black, intially. The slide now has an explicit shape, which, if necessary, paints the page background in white. Furthermore, slide transitions now handle the case correctly, when the leaving slide is invalid
2004/09/03 17:56:21 thb 1.1.2.6: #110496# Added support for TransitionType::RANDOM
2004/09/01 20:26:46 thb 1.1.2.5: #110496# Implemented fade, slide and push special transition effects (had to pass Slide ptrs to transitionfactory again)
2004/08/27 18:54:36 thb 1.1.2.4: #110496# Implemented slide transitions, fixed some minor sd integration probs (repaints, updateScreen
2004/08/19 17:31:25 thb 1.1.2.3: #110496# Converted concrete shape class to interface, to support different shape flavours (actual trigger was the need to have video/sound objects). Fixed a problem for shape repaint, where instead of the correctly transformed bound rect the original shape bounds where taken
2004/08/11 16:54:38 dbo 1.1.2.2: #110496# transition info
Issue number:
Submitted by:
Reviewed by:
2004/08/05 20:00:02 thb 1.1.2.1: #110496# Moved from source/engine
2004-11-26 18:22:33 +00:00
|
|
|
|
|
|
|
#include <com/sun/star/animations/XTransitionFilter.hpp>
|
2007-11-09 09:19:33 +00:00
|
|
|
#include <com/sun/star/presentation/XTransitionFactory.hpp>
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/10/19 22:12:04 thb 1.1.2.8: #110496#, #i35043#, #i35133#: Chose some more speaking names for some Shape methods; added GIF animation support; corrected a few slide transitions
2004/09/12 21:03:40 thb 1.1.2.7: #110496# Now painting views black, intially. The slide now has an explicit shape, which, if necessary, paints the page background in white. Furthermore, slide transitions now handle the case correctly, when the leaving slide is invalid
2004/09/03 17:56:21 thb 1.1.2.6: #110496# Added support for TransitionType::RANDOM
2004/09/01 20:26:46 thb 1.1.2.5: #110496# Implemented fade, slide and push special transition effects (had to pass Slide ptrs to transitionfactory again)
2004/08/27 18:54:36 thb 1.1.2.4: #110496# Implemented slide transitions, fixed some minor sd integration probs (repaints, updateScreen
2004/08/19 17:31:25 thb 1.1.2.3: #110496# Converted concrete shape class to interface, to support different shape flavours (actual trigger was the need to have video/sound objects). Fixed a problem for shape repaint, where instead of the correctly transformed bound rect the original shape bounds where taken
2004/08/11 16:54:38 dbo 1.1.2.2: #110496# transition info
Issue number:
Submitted by:
Reviewed by:
2004/08/05 20:00:02 thb 1.1.2.1: #110496# Moved from source/engine
2004-11-26 18:22:33 +00:00
|
|
|
|
2006-12-13 15:05:20 +00:00
|
|
|
#include "rgbcolor.hxx"
|
|
|
|
#include "slide.hxx"
|
2007-07-17 14:17:38 +00:00
|
|
|
#include "screenupdater.hxx"
|
2006-12-13 15:05:20 +00:00
|
|
|
#include "animationactivity.hxx"
|
|
|
|
#include "activitiesfactory.hxx"
|
|
|
|
#include "numberanimation.hxx"
|
|
|
|
#include "soundplayer.hxx"
|
2020-01-01 17:26:50 +01:00
|
|
|
#include "shapemanager.hxx"
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/10/19 22:12:04 thb 1.1.2.8: #110496#, #i35043#, #i35133#: Chose some more speaking names for some Shape methods; added GIF animation support; corrected a few slide transitions
2004/09/12 21:03:40 thb 1.1.2.7: #110496# Now painting views black, intially. The slide now has an explicit shape, which, if necessary, paints the page background in white. Furthermore, slide transitions now handle the case correctly, when the leaving slide is invalid
2004/09/03 17:56:21 thb 1.1.2.6: #110496# Added support for TransitionType::RANDOM
2004/09/01 20:26:46 thb 1.1.2.5: #110496# Implemented fade, slide and push special transition effects (had to pass Slide ptrs to transitionfactory again)
2004/08/27 18:54:36 thb 1.1.2.4: #110496# Implemented slide transitions, fixed some minor sd integration probs (repaints, updateScreen
2004/08/19 17:31:25 thb 1.1.2.3: #110496# Converted concrete shape class to interface, to support different shape flavours (actual trigger was the need to have video/sound objects). Fixed a problem for shape repaint, where instead of the correctly transformed bound rect the original shape bounds where taken
2004/08/11 16:54:38 dbo 1.1.2.2: #110496# transition info
Issue number:
Submitted by:
Reviewed by:
2004/08/05 20:00:02 thb 1.1.2.1: #110496# Moved from source/engine
2004-11-26 18:22:33 +00:00
|
|
|
|
2020-07-19 20:43:52 +02:00
|
|
|
namespace slideshow::internal
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/10/19 22:12:04 thb 1.1.2.8: #110496#, #i35043#, #i35133#: Chose some more speaking names for some Shape methods; added GIF animation support; corrected a few slide transitions
2004/09/12 21:03:40 thb 1.1.2.7: #110496# Now painting views black, intially. The slide now has an explicit shape, which, if necessary, paints the page background in white. Furthermore, slide transitions now handle the case correctly, when the leaving slide is invalid
2004/09/03 17:56:21 thb 1.1.2.6: #110496# Added support for TransitionType::RANDOM
2004/09/01 20:26:46 thb 1.1.2.5: #110496# Implemented fade, slide and push special transition effects (had to pass Slide ptrs to transitionfactory again)
2004/08/27 18:54:36 thb 1.1.2.4: #110496# Implemented slide transitions, fixed some minor sd integration probs (repaints, updateScreen
2004/08/19 17:31:25 thb 1.1.2.3: #110496# Converted concrete shape class to interface, to support different shape flavours (actual trigger was the need to have video/sound objects). Fixed a problem for shape repaint, where instead of the correctly transformed bound rect the original shape bounds where taken
2004/08/11 16:54:38 dbo 1.1.2.2: #110496# transition info
Issue number:
Submitted by:
Reviewed by:
2004/08/05 20:00:02 thb 1.1.2.1: #110496# Moved from source/engine
2004-11-26 18:22:33 +00:00
|
|
|
{
|
|
|
|
/* Definition of Transitionfactory class */
|
2015-02-12 22:18:06 +01:00
|
|
|
namespace TransitionFactory
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/10/19 22:12:04 thb 1.1.2.8: #110496#, #i35043#, #i35133#: Chose some more speaking names for some Shape methods; added GIF animation support; corrected a few slide transitions
2004/09/12 21:03:40 thb 1.1.2.7: #110496# Now painting views black, intially. The slide now has an explicit shape, which, if necessary, paints the page background in white. Furthermore, slide transitions now handle the case correctly, when the leaving slide is invalid
2004/09/03 17:56:21 thb 1.1.2.6: #110496# Added support for TransitionType::RANDOM
2004/09/01 20:26:46 thb 1.1.2.5: #110496# Implemented fade, slide and push special transition effects (had to pass Slide ptrs to transitionfactory again)
2004/08/27 18:54:36 thb 1.1.2.4: #110496# Implemented slide transitions, fixed some minor sd integration probs (repaints, updateScreen
2004/08/19 17:31:25 thb 1.1.2.3: #110496# Converted concrete shape class to interface, to support different shape flavours (actual trigger was the need to have video/sound objects). Fixed a problem for shape repaint, where instead of the correctly transformed bound rect the original shape bounds where taken
2004/08/11 16:54:38 dbo 1.1.2.2: #110496# transition info
Issue number:
Submitted by:
Reviewed by:
2004/08/05 20:00:02 thb 1.1.2.1: #110496# Moved from source/engine
2004-11-26 18:22:33 +00:00
|
|
|
{
|
|
|
|
/** Create a transition effect for shapes.
|
|
|
|
|
|
|
|
This method creates an AnimationActivity, which, when
|
|
|
|
run, performs the requested transition effect on the
|
|
|
|
given shape.
|
|
|
|
|
|
|
|
@param rParms
|
|
|
|
Collection of activity parameters, see ActivitiesFactory
|
|
|
|
|
|
|
|
@param rShape
|
|
|
|
Shape to animate
|
|
|
|
|
2007-07-17 14:17:38 +00:00
|
|
|
@param rShapeManager
|
|
|
|
ShapeManager, to manage shape animation
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/10/19 22:12:04 thb 1.1.2.8: #110496#, #i35043#, #i35133#: Chose some more speaking names for some Shape methods; added GIF animation support; corrected a few slide transitions
2004/09/12 21:03:40 thb 1.1.2.7: #110496# Now painting views black, intially. The slide now has an explicit shape, which, if necessary, paints the page background in white. Furthermore, slide transitions now handle the case correctly, when the leaving slide is invalid
2004/09/03 17:56:21 thb 1.1.2.6: #110496# Added support for TransitionType::RANDOM
2004/09/01 20:26:46 thb 1.1.2.5: #110496# Implemented fade, slide and push special transition effects (had to pass Slide ptrs to transitionfactory again)
2004/08/27 18:54:36 thb 1.1.2.4: #110496# Implemented slide transitions, fixed some minor sd integration probs (repaints, updateScreen
2004/08/19 17:31:25 thb 1.1.2.3: #110496# Converted concrete shape class to interface, to support different shape flavours (actual trigger was the need to have video/sound objects). Fixed a problem for shape repaint, where instead of the correctly transformed bound rect the original shape bounds where taken
2004/08/11 16:54:38 dbo 1.1.2.2: #110496# transition info
Issue number:
Submitted by:
Reviewed by:
2004/08/05 20:00:02 thb 1.1.2.1: #110496# Moved from source/engine
2004-11-26 18:22:33 +00:00
|
|
|
|
|
|
|
@param xTransition
|
|
|
|
The transition effect
|
|
|
|
|
|
|
|
@return the created activity, or NULL for no
|
|
|
|
transition effect
|
|
|
|
*/
|
2015-02-12 22:18:06 +01:00
|
|
|
AnimationActivitySharedPtr createShapeTransition(
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/10/19 22:12:04 thb 1.1.2.8: #110496#, #i35043#, #i35133#: Chose some more speaking names for some Shape methods; added GIF animation support; corrected a few slide transitions
2004/09/12 21:03:40 thb 1.1.2.7: #110496# Now painting views black, intially. The slide now has an explicit shape, which, if necessary, paints the page background in white. Furthermore, slide transitions now handle the case correctly, when the leaving slide is invalid
2004/09/03 17:56:21 thb 1.1.2.6: #110496# Added support for TransitionType::RANDOM
2004/09/01 20:26:46 thb 1.1.2.5: #110496# Implemented fade, slide and push special transition effects (had to pass Slide ptrs to transitionfactory again)
2004/08/27 18:54:36 thb 1.1.2.4: #110496# Implemented slide transitions, fixed some minor sd integration probs (repaints, updateScreen
2004/08/19 17:31:25 thb 1.1.2.3: #110496# Converted concrete shape class to interface, to support different shape flavours (actual trigger was the need to have video/sound objects). Fixed a problem for shape repaint, where instead of the correctly transformed bound rect the original shape bounds where taken
2004/08/11 16:54:38 dbo 1.1.2.2: #110496# transition info
Issue number:
Submitted by:
Reviewed by:
2004/08/05 20:00:02 thb 1.1.2.1: #110496# Moved from source/engine
2004-11-26 18:22:33 +00:00
|
|
|
const ActivitiesFactory::CommonParameters& rParms,
|
|
|
|
const AnimatableShapeSharedPtr& rShape,
|
2007-07-17 14:17:38 +00:00
|
|
|
const ShapeManagerSharedPtr& rShapeManager,
|
|
|
|
const ::basegfx::B2DVector& rSlideSize,
|
2015-10-29 10:47:45 +02:00
|
|
|
css::uno::Reference< css::animations::XTransitionFilter > const& xTransition );
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/10/19 22:12:04 thb 1.1.2.8: #110496#, #i35043#, #i35133#: Chose some more speaking names for some Shape methods; added GIF animation support; corrected a few slide transitions
2004/09/12 21:03:40 thb 1.1.2.7: #110496# Now painting views black, intially. The slide now has an explicit shape, which, if necessary, paints the page background in white. Furthermore, slide transitions now handle the case correctly, when the leaving slide is invalid
2004/09/03 17:56:21 thb 1.1.2.6: #110496# Added support for TransitionType::RANDOM
2004/09/01 20:26:46 thb 1.1.2.5: #110496# Implemented fade, slide and push special transition effects (had to pass Slide ptrs to transitionfactory again)
2004/08/27 18:54:36 thb 1.1.2.4: #110496# Implemented slide transitions, fixed some minor sd integration probs (repaints, updateScreen
2004/08/19 17:31:25 thb 1.1.2.3: #110496# Converted concrete shape class to interface, to support different shape flavours (actual trigger was the need to have video/sound objects). Fixed a problem for shape repaint, where instead of the correctly transformed bound rect the original shape bounds where taken
2004/08/11 16:54:38 dbo 1.1.2.2: #110496# transition info
Issue number:
Submitted by:
Reviewed by:
2004/08/05 20:00:02 thb 1.1.2.1: #110496# Moved from source/engine
2004-11-26 18:22:33 +00:00
|
|
|
|
|
|
|
|
|
|
|
/** Create a transition effect for slides.
|
|
|
|
|
2006-12-13 15:05:20 +00:00
|
|
|
This method creates a NumberAnimation, which,
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/10/19 22:12:04 thb 1.1.2.8: #110496#, #i35043#, #i35133#: Chose some more speaking names for some Shape methods; added GIF animation support; corrected a few slide transitions
2004/09/12 21:03:40 thb 1.1.2.7: #110496# Now painting views black, intially. The slide now has an explicit shape, which, if necessary, paints the page background in white. Furthermore, slide transitions now handle the case correctly, when the leaving slide is invalid
2004/09/03 17:56:21 thb 1.1.2.6: #110496# Added support for TransitionType::RANDOM
2004/09/01 20:26:46 thb 1.1.2.5: #110496# Implemented fade, slide and push special transition effects (had to pass Slide ptrs to transitionfactory again)
2004/08/27 18:54:36 thb 1.1.2.4: #110496# Implemented slide transitions, fixed some minor sd integration probs (repaints, updateScreen
2004/08/19 17:31:25 thb 1.1.2.3: #110496# Converted concrete shape class to interface, to support different shape flavours (actual trigger was the need to have video/sound objects). Fixed a problem for shape repaint, where instead of the correctly transformed bound rect the original shape bounds where taken
2004/08/11 16:54:38 dbo 1.1.2.2: #110496# transition info
Issue number:
Submitted by:
Reviewed by:
2004/08/05 20:00:02 thb 1.1.2.1: #110496# Moved from source/engine
2004-11-26 18:22:33 +00:00
|
|
|
when run, performs the requested transition effect
|
|
|
|
with the slide bitmaps.
|
|
|
|
|
|
|
|
@param rEnteringBitmap
|
|
|
|
Bitmap of the slide which 'enters' the screen.
|
|
|
|
|
|
|
|
@param rLeavingBitmap
|
|
|
|
Bitmap of the slide which 'leaves' the screen.
|
|
|
|
|
|
|
|
@param nTransitionType
|
|
|
|
Type of the transition (see XTransitionFilter)
|
|
|
|
|
|
|
|
@param nTransitionSubType
|
|
|
|
Subtype of the transition (see XTransitionFilter)
|
|
|
|
|
|
|
|
@param bTransitionDirection
|
|
|
|
Direction of the transition (see XTransitionFilter)
|
|
|
|
|
|
|
|
@param rTransitionFadeColor
|
|
|
|
Optional fade color for the transition
|
|
|
|
|
|
|
|
@return the created animation, or NULL for no
|
|
|
|
transition effect
|
|
|
|
*/
|
2015-02-12 22:18:06 +01:00
|
|
|
NumberAnimationSharedPtr createSlideTransition(
|
2007-11-09 09:19:33 +00:00
|
|
|
const SlideSharedPtr& rLeavingSlide,
|
|
|
|
const SlideSharedPtr& rEnteringSlide,
|
|
|
|
const UnoViewContainer& rViewContainer,
|
|
|
|
ScreenUpdater& rScreenUpdater,
|
|
|
|
EventMultiplexer& rEventMultiplexer,
|
2015-10-29 10:47:45 +02:00
|
|
|
const css::uno::Reference< css::presentation::XTransitionFactory>&
|
2007-11-09 09:19:33 +00:00
|
|
|
xOptionalFactory,
|
|
|
|
sal_Int16 nTransitionType,
|
|
|
|
sal_Int16 nTransitionSubType,
|
|
|
|
bool bTransitionDirection,
|
|
|
|
const RGBColor& rTransitionFadeColor,
|
|
|
|
const SoundPlayerSharedPtr& rSoundPlayer );
|
2015-02-12 22:18:06 +01:00
|
|
|
}
|
2020-07-19 20:43:52 +02:00
|
|
|
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/10/19 22:12:04 thb 1.1.2.8: #110496#, #i35043#, #i35133#: Chose some more speaking names for some Shape methods; added GIF animation support; corrected a few slide transitions
2004/09/12 21:03:40 thb 1.1.2.7: #110496# Now painting views black, intially. The slide now has an explicit shape, which, if necessary, paints the page background in white. Furthermore, slide transitions now handle the case correctly, when the leaving slide is invalid
2004/09/03 17:56:21 thb 1.1.2.6: #110496# Added support for TransitionType::RANDOM
2004/09/01 20:26:46 thb 1.1.2.5: #110496# Implemented fade, slide and push special transition effects (had to pass Slide ptrs to transitionfactory again)
2004/08/27 18:54:36 thb 1.1.2.4: #110496# Implemented slide transitions, fixed some minor sd integration probs (repaints, updateScreen
2004/08/19 17:31:25 thb 1.1.2.3: #110496# Converted concrete shape class to interface, to support different shape flavours (actual trigger was the need to have video/sound objects). Fixed a problem for shape repaint, where instead of the correctly transformed bound rect the original shape bounds where taken
2004/08/11 16:54:38 dbo 1.1.2.2: #110496# transition info
Issue number:
Submitted by:
Reviewed by:
2004/08/05 20:00:02 thb 1.1.2.1: #110496# Moved from source/engine
2004-11-26 18:22:33 +00:00
|
|
|
}
|
|
|
|
|
2014-04-18 22:23:58 +02:00
|
|
|
#endif // INCLUDED_SLIDESHOW_SOURCE_INC_TRANSITIONFACTORY_HXX
|
2010-10-27 12:53:26 +01:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|