2010-10-12 15:51:52 +02: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/09/17 11:26:29 dbo 1.1.2.12: #110496# added ZigZagWipe, BarnZigZagWipe
Issue number:
Submitted by:
Reviewed by:
2004/09/07 12:30:15 dbo 1.1.2.11: #110496# adding SpiralWipe, BoxSnakesWipe, misc
Issue number:
Submitted by:
Reviewed by:
2004/09/03 09:09:23 dbo 1.1.2.10: #110496# fixes, tests
Issue number:
Submitted by:
Reviewed by:
2004/09/02 17:07:18 dbo 1.1.2.9: #110496# added doublediamondwipe, doublebarndoorwipe, figure wipes, sweepwipes, misc modifications
Issue number:
Submitted by:
Reviewed by:
2004/08/20 17:02:39 dbo 1.1.2.8: #110496# adopted polygon clipping order, added snake wipe, parallel snake wipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:50:59 dbo 1.1.2.7: #110496# blinds transition
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:18:22 dbo 1.1.2.6: #110496#
Issue number:
Submitted by:
Reviewed by:
2004/08/13 15:25:58 dbo 1.1.2.5: #110496# pinwheelwipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 14:47:41 dbo 1.1.2.4: #110496# more wipes
Issue number:
Submitted by:
Reviewed by:
2004/08/11 17:02:11 dbo 1.1.2.3: #110496# more transitions, modified file/class structure
Issue number:
Submitted by:
Reviewed by:
2004/08/10 16:43:09 dbo 1.1.2.2: #110496# added transistions
Issue number:
Submitted by:
Reviewed by:
2004/08/05 19:58:43 thb 1.1.2.1: Initial revision
2004-11-26 18:07:11 +00:00
|
|
|
|
2006-09-17 07:40:21 +00:00
|
|
|
|
2008-06-24 11:14:01 +00:00
|
|
|
#include <tools/diagnose_ex.h>
|
2006-12-13 14:43:25 +00:00
|
|
|
|
|
|
|
#include <com/sun/star/animations/TransitionType.hpp>
|
|
|
|
#include <com/sun/star/animations/TransitionSubType.hpp>
|
|
|
|
|
|
|
|
#include "parametricpolypolygonfactory.hxx"
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/09/17 11:26:29 dbo 1.1.2.12: #110496# added ZigZagWipe, BarnZigZagWipe
Issue number:
Submitted by:
Reviewed by:
2004/09/07 12:30:15 dbo 1.1.2.11: #110496# adding SpiralWipe, BoxSnakesWipe, misc
Issue number:
Submitted by:
Reviewed by:
2004/09/03 09:09:23 dbo 1.1.2.10: #110496# fixes, tests
Issue number:
Submitted by:
Reviewed by:
2004/09/02 17:07:18 dbo 1.1.2.9: #110496# added doublediamondwipe, doublebarndoorwipe, figure wipes, sweepwipes, misc modifications
Issue number:
Submitted by:
Reviewed by:
2004/08/20 17:02:39 dbo 1.1.2.8: #110496# adopted polygon clipping order, added snake wipe, parallel snake wipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:50:59 dbo 1.1.2.7: #110496# blinds transition
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:18:22 dbo 1.1.2.6: #110496#
Issue number:
Submitted by:
Reviewed by:
2004/08/13 15:25:58 dbo 1.1.2.5: #110496# pinwheelwipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 14:47:41 dbo 1.1.2.4: #110496# more wipes
Issue number:
Submitted by:
Reviewed by:
2004/08/11 17:02:11 dbo 1.1.2.3: #110496# more transitions, modified file/class structure
Issue number:
Submitted by:
Reviewed by:
2004/08/10 16:43:09 dbo 1.1.2.2: #110496# added transistions
Issue number:
Submitted by:
Reviewed by:
2004/08/05 19:58:43 thb 1.1.2.1: Initial revision
2004-11-26 18:07:11 +00:00
|
|
|
#include "barwipepolypolygon.hxx"
|
|
|
|
#include "boxwipe.hxx"
|
|
|
|
#include "fourboxwipe.hxx"
|
|
|
|
#include "barndoorwipe.hxx"
|
|
|
|
#include "doublediamondwipe.hxx"
|
|
|
|
#include "veewipe.hxx"
|
|
|
|
#include "iriswipe.hxx"
|
|
|
|
#include "ellipsewipe.hxx"
|
|
|
|
#include "checkerboardwipe.hxx"
|
|
|
|
#include "randomwipe.hxx"
|
|
|
|
#include "waterfallwipe.hxx"
|
|
|
|
#include "clockwipe.hxx"
|
|
|
|
#include "fanwipe.hxx"
|
|
|
|
#include "pinwheelwipe.hxx"
|
|
|
|
#include "snakewipe.hxx"
|
|
|
|
#include "spiralwipe.hxx"
|
|
|
|
#include "sweepwipe.hxx"
|
|
|
|
#include "figurewipe.hxx"
|
|
|
|
#include "zigzagwipe.hxx"
|
|
|
|
|
|
|
|
|
|
|
|
using namespace ::com::sun::star;
|
|
|
|
|
2006-12-13 14:43:25 +00:00
|
|
|
namespace slideshow
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/09/17 11:26:29 dbo 1.1.2.12: #110496# added ZigZagWipe, BarnZigZagWipe
Issue number:
Submitted by:
Reviewed by:
2004/09/07 12:30:15 dbo 1.1.2.11: #110496# adding SpiralWipe, BoxSnakesWipe, misc
Issue number:
Submitted by:
Reviewed by:
2004/09/03 09:09:23 dbo 1.1.2.10: #110496# fixes, tests
Issue number:
Submitted by:
Reviewed by:
2004/09/02 17:07:18 dbo 1.1.2.9: #110496# added doublediamondwipe, doublebarndoorwipe, figure wipes, sweepwipes, misc modifications
Issue number:
Submitted by:
Reviewed by:
2004/08/20 17:02:39 dbo 1.1.2.8: #110496# adopted polygon clipping order, added snake wipe, parallel snake wipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:50:59 dbo 1.1.2.7: #110496# blinds transition
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:18:22 dbo 1.1.2.6: #110496#
Issue number:
Submitted by:
Reviewed by:
2004/08/13 15:25:58 dbo 1.1.2.5: #110496# pinwheelwipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 14:47:41 dbo 1.1.2.4: #110496# more wipes
Issue number:
Submitted by:
Reviewed by:
2004/08/11 17:02:11 dbo 1.1.2.3: #110496# more transitions, modified file/class structure
Issue number:
Submitted by:
Reviewed by:
2004/08/10 16:43:09 dbo 1.1.2.2: #110496# added transistions
Issue number:
Submitted by:
Reviewed by:
2004/08/05 19:58:43 thb 1.1.2.1: Initial revision
2004-11-26 18:07:11 +00:00
|
|
|
{
|
|
|
|
namespace internal
|
|
|
|
{
|
|
|
|
ParametricPolyPolygonSharedPtr
|
|
|
|
ParametricPolyPolygonFactory::createClipPolyPolygon(
|
|
|
|
sal_Int16 nType, sal_Int16 nSubType )
|
|
|
|
{
|
|
|
|
using namespace ::com::sun::star::animations::TransitionType;
|
|
|
|
using namespace ::com::sun::star::animations::TransitionSubType;
|
|
|
|
|
|
|
|
switch (nType)
|
|
|
|
{
|
|
|
|
case BARWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new BarWipePolyPolygon );
|
|
|
|
case BLINDSWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
2005-03-30 07:08:20 +00:00
|
|
|
new BarWipePolyPolygon( 6 ) );
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/09/17 11:26:29 dbo 1.1.2.12: #110496# added ZigZagWipe, BarnZigZagWipe
Issue number:
Submitted by:
Reviewed by:
2004/09/07 12:30:15 dbo 1.1.2.11: #110496# adding SpiralWipe, BoxSnakesWipe, misc
Issue number:
Submitted by:
Reviewed by:
2004/09/03 09:09:23 dbo 1.1.2.10: #110496# fixes, tests
Issue number:
Submitted by:
Reviewed by:
2004/09/02 17:07:18 dbo 1.1.2.9: #110496# added doublediamondwipe, doublebarndoorwipe, figure wipes, sweepwipes, misc modifications
Issue number:
Submitted by:
Reviewed by:
2004/08/20 17:02:39 dbo 1.1.2.8: #110496# adopted polygon clipping order, added snake wipe, parallel snake wipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:50:59 dbo 1.1.2.7: #110496# blinds transition
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:18:22 dbo 1.1.2.6: #110496#
Issue number:
Submitted by:
Reviewed by:
2004/08/13 15:25:58 dbo 1.1.2.5: #110496# pinwheelwipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 14:47:41 dbo 1.1.2.4: #110496# more wipes
Issue number:
Submitted by:
Reviewed by:
2004/08/11 17:02:11 dbo 1.1.2.3: #110496# more transitions, modified file/class structure
Issue number:
Submitted by:
Reviewed by:
2004/08/10 16:43:09 dbo 1.1.2.2: #110496# added transistions
Issue number:
Submitted by:
Reviewed by:
2004/08/05 19:58:43 thb 1.1.2.1: Initial revision
2004-11-26 18:07:11 +00:00
|
|
|
case BOXWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new BoxWipe( nSubType == LEFTCENTER ||
|
|
|
|
nSubType == TOPCENTER ||
|
|
|
|
nSubType == RIGHTCENTER||
|
|
|
|
nSubType == BOTTOMCENTER ) );
|
|
|
|
case FOURBOXWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new FourBoxWipe( nSubType == CORNERSOUT ) );
|
|
|
|
case BARNDOORWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new BarnDoorWipe );
|
|
|
|
case DIAGONALWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new BarWipePolyPolygon );
|
|
|
|
case VEEWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new VeeWipe );
|
|
|
|
case IRISWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new IrisWipe );
|
|
|
|
case ELLIPSEWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new EllipseWipe(nSubType) );
|
|
|
|
case CHECKERBOARDWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new CheckerBoardWipe );
|
|
|
|
case RANDOMBARWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
2005-03-10 12:51:52 +00:00
|
|
|
new RandomWipe( 128, true /* bars */ ) );
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/09/17 11:26:29 dbo 1.1.2.12: #110496# added ZigZagWipe, BarnZigZagWipe
Issue number:
Submitted by:
Reviewed by:
2004/09/07 12:30:15 dbo 1.1.2.11: #110496# adding SpiralWipe, BoxSnakesWipe, misc
Issue number:
Submitted by:
Reviewed by:
2004/09/03 09:09:23 dbo 1.1.2.10: #110496# fixes, tests
Issue number:
Submitted by:
Reviewed by:
2004/09/02 17:07:18 dbo 1.1.2.9: #110496# added doublediamondwipe, doublebarndoorwipe, figure wipes, sweepwipes, misc modifications
Issue number:
Submitted by:
Reviewed by:
2004/08/20 17:02:39 dbo 1.1.2.8: #110496# adopted polygon clipping order, added snake wipe, parallel snake wipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:50:59 dbo 1.1.2.7: #110496# blinds transition
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:18:22 dbo 1.1.2.6: #110496#
Issue number:
Submitted by:
Reviewed by:
2004/08/13 15:25:58 dbo 1.1.2.5: #110496# pinwheelwipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 14:47:41 dbo 1.1.2.4: #110496# more wipes
Issue number:
Submitted by:
Reviewed by:
2004/08/11 17:02:11 dbo 1.1.2.3: #110496# more transitions, modified file/class structure
Issue number:
Submitted by:
Reviewed by:
2004/08/10 16:43:09 dbo 1.1.2.2: #110496# added transistions
Issue number:
Submitted by:
Reviewed by:
2004/08/05 19:58:43 thb 1.1.2.1: Initial revision
2004-11-26 18:07:11 +00:00
|
|
|
case DISSOLVE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
2005-03-10 12:51:52 +00:00
|
|
|
new RandomWipe( 16 * 16, // for now until dxcanvas is faster
|
|
|
|
// 64 * 64 /* elements */,
|
|
|
|
false /* dissolve */ ) );
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/09/17 11:26:29 dbo 1.1.2.12: #110496# added ZigZagWipe, BarnZigZagWipe
Issue number:
Submitted by:
Reviewed by:
2004/09/07 12:30:15 dbo 1.1.2.11: #110496# adding SpiralWipe, BoxSnakesWipe, misc
Issue number:
Submitted by:
Reviewed by:
2004/09/03 09:09:23 dbo 1.1.2.10: #110496# fixes, tests
Issue number:
Submitted by:
Reviewed by:
2004/09/02 17:07:18 dbo 1.1.2.9: #110496# added doublediamondwipe, doublebarndoorwipe, figure wipes, sweepwipes, misc modifications
Issue number:
Submitted by:
Reviewed by:
2004/08/20 17:02:39 dbo 1.1.2.8: #110496# adopted polygon clipping order, added snake wipe, parallel snake wipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:50:59 dbo 1.1.2.7: #110496# blinds transition
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:18:22 dbo 1.1.2.6: #110496#
Issue number:
Submitted by:
Reviewed by:
2004/08/13 15:25:58 dbo 1.1.2.5: #110496# pinwheelwipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 14:47:41 dbo 1.1.2.4: #110496# more wipes
Issue number:
Submitted by:
Reviewed by:
2004/08/11 17:02:11 dbo 1.1.2.3: #110496# more transitions, modified file/class structure
Issue number:
Submitted by:
Reviewed by:
2004/08/10 16:43:09 dbo 1.1.2.2: #110496# added transistions
Issue number:
Submitted by:
Reviewed by:
2004/08/05 19:58:43 thb 1.1.2.1: Initial revision
2004-11-26 18:07:11 +00:00
|
|
|
case WATERFALLWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new WaterfallWipe(
|
2005-03-10 12:51:52 +00:00
|
|
|
128,
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/09/17 11:26:29 dbo 1.1.2.12: #110496# added ZigZagWipe, BarnZigZagWipe
Issue number:
Submitted by:
Reviewed by:
2004/09/07 12:30:15 dbo 1.1.2.11: #110496# adding SpiralWipe, BoxSnakesWipe, misc
Issue number:
Submitted by:
Reviewed by:
2004/09/03 09:09:23 dbo 1.1.2.10: #110496# fixes, tests
Issue number:
Submitted by:
Reviewed by:
2004/09/02 17:07:18 dbo 1.1.2.9: #110496# added doublediamondwipe, doublebarndoorwipe, figure wipes, sweepwipes, misc modifications
Issue number:
Submitted by:
Reviewed by:
2004/08/20 17:02:39 dbo 1.1.2.8: #110496# adopted polygon clipping order, added snake wipe, parallel snake wipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:50:59 dbo 1.1.2.7: #110496# blinds transition
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:18:22 dbo 1.1.2.6: #110496#
Issue number:
Submitted by:
Reviewed by:
2004/08/13 15:25:58 dbo 1.1.2.5: #110496# pinwheelwipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 14:47:41 dbo 1.1.2.4: #110496# more wipes
Issue number:
Submitted by:
Reviewed by:
2004/08/11 17:02:11 dbo 1.1.2.3: #110496# more transitions, modified file/class structure
Issue number:
Submitted by:
Reviewed by:
2004/08/10 16:43:09 dbo 1.1.2.2: #110496# added transistions
Issue number:
Submitted by:
Reviewed by:
2004/08/05 19:58:43 thb 1.1.2.1: Initial revision
2004-11-26 18:07:11 +00:00
|
|
|
// flipOnYAxis:
|
|
|
|
nSubType == VERTICALRIGHT ||
|
|
|
|
nSubType == HORIZONTALLEFT ) );
|
|
|
|
case CLOCKWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new ClockWipe );
|
|
|
|
case FANWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new FanWipe( // center:
|
|
|
|
nSubType == CENTERTOP ||
|
|
|
|
nSubType == CENTERRIGHT ) );
|
|
|
|
case PINWHEELWIPE: {
|
|
|
|
sal_Int32 blades;
|
|
|
|
switch (nSubType) {
|
|
|
|
case ONEBLADE:
|
|
|
|
blades = 1;
|
|
|
|
break;
|
|
|
|
case THREEBLADE:
|
|
|
|
blades = 3;
|
|
|
|
break;
|
|
|
|
case FOURBLADE:
|
|
|
|
blades = 4;
|
|
|
|
break;
|
|
|
|
case EIGHTBLADE:
|
|
|
|
blades = 8;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
blades = 2;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new PinWheelWipe( blades ) );
|
|
|
|
}
|
|
|
|
case SNAKEWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new SnakeWipe(
|
2005-03-10 12:51:52 +00:00
|
|
|
// elements:
|
2012-08-30 11:32:06 +00:00
|
|
|
8 * 8,
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/09/17 11:26:29 dbo 1.1.2.12: #110496# added ZigZagWipe, BarnZigZagWipe
Issue number:
Submitted by:
Reviewed by:
2004/09/07 12:30:15 dbo 1.1.2.11: #110496# adding SpiralWipe, BoxSnakesWipe, misc
Issue number:
Submitted by:
Reviewed by:
2004/09/03 09:09:23 dbo 1.1.2.10: #110496# fixes, tests
Issue number:
Submitted by:
Reviewed by:
2004/09/02 17:07:18 dbo 1.1.2.9: #110496# added doublediamondwipe, doublebarndoorwipe, figure wipes, sweepwipes, misc modifications
Issue number:
Submitted by:
Reviewed by:
2004/08/20 17:02:39 dbo 1.1.2.8: #110496# adopted polygon clipping order, added snake wipe, parallel snake wipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:50:59 dbo 1.1.2.7: #110496# blinds transition
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:18:22 dbo 1.1.2.6: #110496#
Issue number:
Submitted by:
Reviewed by:
2004/08/13 15:25:58 dbo 1.1.2.5: #110496# pinwheelwipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 14:47:41 dbo 1.1.2.4: #110496# more wipes
Issue number:
Submitted by:
Reviewed by:
2004/08/11 17:02:11 dbo 1.1.2.3: #110496# more transitions, modified file/class structure
Issue number:
Submitted by:
Reviewed by:
2004/08/10 16:43:09 dbo 1.1.2.2: #110496# added transistions
Issue number:
Submitted by:
Reviewed by:
2004/08/05 19:58:43 thb 1.1.2.1: Initial revision
2004-11-26 18:07:11 +00:00
|
|
|
// diagonal:
|
|
|
|
nSubType == TOPLEFTDIAGONAL ||
|
|
|
|
nSubType == TOPRIGHTDIAGONAL ||
|
|
|
|
nSubType == BOTTOMRIGHTDIAGONAL ||
|
|
|
|
nSubType == BOTTOMLEFTDIAGONAL,
|
|
|
|
// flipOnYAxis:
|
|
|
|
nSubType == TOPLEFTVERTICAL ||
|
|
|
|
nSubType == TOPRIGHTDIAGONAL ||
|
|
|
|
nSubType == BOTTOMLEFTDIAGONAL
|
|
|
|
) );
|
|
|
|
case PARALLELSNAKESWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new ParallelSnakesWipe(
|
2005-03-10 12:51:52 +00:00
|
|
|
// elements:
|
2012-08-30 11:32:06 +00:00
|
|
|
8 * 8,
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/09/17 11:26:29 dbo 1.1.2.12: #110496# added ZigZagWipe, BarnZigZagWipe
Issue number:
Submitted by:
Reviewed by:
2004/09/07 12:30:15 dbo 1.1.2.11: #110496# adding SpiralWipe, BoxSnakesWipe, misc
Issue number:
Submitted by:
Reviewed by:
2004/09/03 09:09:23 dbo 1.1.2.10: #110496# fixes, tests
Issue number:
Submitted by:
Reviewed by:
2004/09/02 17:07:18 dbo 1.1.2.9: #110496# added doublediamondwipe, doublebarndoorwipe, figure wipes, sweepwipes, misc modifications
Issue number:
Submitted by:
Reviewed by:
2004/08/20 17:02:39 dbo 1.1.2.8: #110496# adopted polygon clipping order, added snake wipe, parallel snake wipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:50:59 dbo 1.1.2.7: #110496# blinds transition
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:18:22 dbo 1.1.2.6: #110496#
Issue number:
Submitted by:
Reviewed by:
2004/08/13 15:25:58 dbo 1.1.2.5: #110496# pinwheelwipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 14:47:41 dbo 1.1.2.4: #110496# more wipes
Issue number:
Submitted by:
Reviewed by:
2004/08/11 17:02:11 dbo 1.1.2.3: #110496# more transitions, modified file/class structure
Issue number:
Submitted by:
Reviewed by:
2004/08/10 16:43:09 dbo 1.1.2.2: #110496# added transistions
Issue number:
Submitted by:
Reviewed by:
2004/08/05 19:58:43 thb 1.1.2.1: Initial revision
2004-11-26 18:07:11 +00:00
|
|
|
// diagonal:
|
|
|
|
nSubType == DIAGONALBOTTOMLEFTOPPOSITE ||
|
|
|
|
nSubType == DIAGONALTOPLEFTOPPOSITE,
|
|
|
|
// flipOnYAxis:
|
|
|
|
nSubType == VERTICALBOTTOMLEFTOPPOSITE ||
|
|
|
|
nSubType == HORIZONTALTOPLEFTOPPOSITE ||
|
|
|
|
nSubType == DIAGONALTOPLEFTOPPOSITE,
|
|
|
|
// opposite:
|
|
|
|
nSubType == VERTICALTOPLEFTOPPOSITE ||
|
|
|
|
nSubType == VERTICALBOTTOMLEFTOPPOSITE ||
|
|
|
|
nSubType == HORIZONTALTOPLEFTOPPOSITE ||
|
|
|
|
nSubType == HORIZONTALTOPRIGHTOPPOSITE ||
|
|
|
|
nSubType == DIAGONALBOTTOMLEFTOPPOSITE ||
|
|
|
|
nSubType == DIAGONALTOPLEFTOPPOSITE
|
|
|
|
) );
|
|
|
|
case SPIRALWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new SpiralWipe(
|
|
|
|
// elements:
|
2012-08-30 11:32:06 +00:00
|
|
|
8 * 8,
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/09/17 11:26:29 dbo 1.1.2.12: #110496# added ZigZagWipe, BarnZigZagWipe
Issue number:
Submitted by:
Reviewed by:
2004/09/07 12:30:15 dbo 1.1.2.11: #110496# adding SpiralWipe, BoxSnakesWipe, misc
Issue number:
Submitted by:
Reviewed by:
2004/09/03 09:09:23 dbo 1.1.2.10: #110496# fixes, tests
Issue number:
Submitted by:
Reviewed by:
2004/09/02 17:07:18 dbo 1.1.2.9: #110496# added doublediamondwipe, doublebarndoorwipe, figure wipes, sweepwipes, misc modifications
Issue number:
Submitted by:
Reviewed by:
2004/08/20 17:02:39 dbo 1.1.2.8: #110496# adopted polygon clipping order, added snake wipe, parallel snake wipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:50:59 dbo 1.1.2.7: #110496# blinds transition
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:18:22 dbo 1.1.2.6: #110496#
Issue number:
Submitted by:
Reviewed by:
2004/08/13 15:25:58 dbo 1.1.2.5: #110496# pinwheelwipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 14:47:41 dbo 1.1.2.4: #110496# more wipes
Issue number:
Submitted by:
Reviewed by:
2004/08/11 17:02:11 dbo 1.1.2.3: #110496# more transitions, modified file/class structure
Issue number:
Submitted by:
Reviewed by:
2004/08/10 16:43:09 dbo 1.1.2.2: #110496# added transistions
Issue number:
Submitted by:
Reviewed by:
2004/08/05 19:58:43 thb 1.1.2.1: Initial revision
2004-11-26 18:07:11 +00:00
|
|
|
// flipOnYAxis:
|
|
|
|
nSubType == TOPLEFTCOUNTERCLOCKWISE ||
|
|
|
|
nSubType == TOPRIGHTCOUNTERCLOCKWISE ||
|
|
|
|
nSubType == BOTTOMRIGHTCOUNTERCLOCKWISE ||
|
|
|
|
nSubType == BOTTOMLEFTCOUNTERCLOCKWISE ) );
|
|
|
|
case BOXSNAKESWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new BoxSnakesWipe(
|
|
|
|
// elements:
|
2012-08-30 11:32:06 +00:00
|
|
|
8 * 8,
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/09/17 11:26:29 dbo 1.1.2.12: #110496# added ZigZagWipe, BarnZigZagWipe
Issue number:
Submitted by:
Reviewed by:
2004/09/07 12:30:15 dbo 1.1.2.11: #110496# adding SpiralWipe, BoxSnakesWipe, misc
Issue number:
Submitted by:
Reviewed by:
2004/09/03 09:09:23 dbo 1.1.2.10: #110496# fixes, tests
Issue number:
Submitted by:
Reviewed by:
2004/09/02 17:07:18 dbo 1.1.2.9: #110496# added doublediamondwipe, doublebarndoorwipe, figure wipes, sweepwipes, misc modifications
Issue number:
Submitted by:
Reviewed by:
2004/08/20 17:02:39 dbo 1.1.2.8: #110496# adopted polygon clipping order, added snake wipe, parallel snake wipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:50:59 dbo 1.1.2.7: #110496# blinds transition
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:18:22 dbo 1.1.2.6: #110496#
Issue number:
Submitted by:
Reviewed by:
2004/08/13 15:25:58 dbo 1.1.2.5: #110496# pinwheelwipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 14:47:41 dbo 1.1.2.4: #110496# more wipes
Issue number:
Submitted by:
Reviewed by:
2004/08/11 17:02:11 dbo 1.1.2.3: #110496# more transitions, modified file/class structure
Issue number:
Submitted by:
Reviewed by:
2004/08/10 16:43:09 dbo 1.1.2.2: #110496# added transistions
Issue number:
Submitted by:
Reviewed by:
2004/08/05 19:58:43 thb 1.1.2.1: Initial revision
2004-11-26 18:07:11 +00:00
|
|
|
// fourBox:
|
|
|
|
nSubType == FOURBOXVERTICAL ||
|
|
|
|
nSubType == FOURBOXHORIZONTAL ) );
|
|
|
|
case SINGLESWEEPWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new SweepWipe(
|
|
|
|
// center:
|
|
|
|
nSubType == CLOCKWISETOP ||
|
|
|
|
nSubType == CLOCKWISERIGHT ||
|
|
|
|
nSubType == CLOCKWISEBOTTOM ||
|
|
|
|
nSubType == CLOCKWISELEFT,
|
|
|
|
// single:
|
|
|
|
true,
|
|
|
|
// oppositeVertical:
|
|
|
|
false,
|
|
|
|
// flipOnYAxis:
|
|
|
|
nSubType == COUNTERCLOCKWISEBOTTOMLEFT ||
|
|
|
|
nSubType == COUNTERCLOCKWISETOPRIGHT
|
|
|
|
) );
|
|
|
|
case DOUBLESWEEPWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new SweepWipe(
|
|
|
|
// center:
|
|
|
|
nSubType == PARALLELVERTICAL ||
|
|
|
|
nSubType == PARALLELDIAGONAL ||
|
|
|
|
nSubType == OPPOSITEVERTICAL ||
|
|
|
|
nSubType == OPPOSITEHORIZONTAL,
|
|
|
|
// single:
|
|
|
|
false,
|
|
|
|
// oppositeVertical:
|
|
|
|
nSubType == OPPOSITEVERTICAL ||
|
|
|
|
nSubType == OPPOSITEHORIZONTAL,
|
|
|
|
// flipOnYAxis:
|
|
|
|
false ) );
|
|
|
|
case DOUBLEFANWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new FanWipe(
|
|
|
|
//center:
|
|
|
|
true,
|
|
|
|
// single:
|
|
|
|
false,
|
|
|
|
// fanIn:
|
|
|
|
nSubType == FANINVERTICAL ||
|
|
|
|
nSubType == FANINHORIZONTAL ) );
|
|
|
|
case TRIANGLEWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
FigureWipe::createTriangleWipe() );
|
|
|
|
case ARROWHEADWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
FigureWipe::createArrowHeadWipe() );
|
|
|
|
case PENTAGONWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
FigureWipe::createPentagonWipe() );
|
|
|
|
case HEXAGONWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
FigureWipe::createHexagonWipe() );
|
|
|
|
case STARWIPE: {
|
|
|
|
sal_Int32 points;
|
|
|
|
switch (nSubType) {
|
|
|
|
case FIVEPOINT:
|
|
|
|
points = 5;
|
|
|
|
break;
|
|
|
|
case SIXPOINT:
|
|
|
|
points = 6;
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
points = 4;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
FigureWipe::createStarWipe(points) );
|
|
|
|
}
|
|
|
|
case MISCDIAGONALWIPE: {
|
|
|
|
switch (nSubType) {
|
|
|
|
case DOUBLEBARNDOOR:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new BarnDoorWipe( true /* doubled */ ) );
|
|
|
|
case DOUBLEDIAMOND:
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new DoubleDiamondWipe );
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
case ZIGZAGWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr( new ZigZagWipe(5) );
|
|
|
|
case BARNZIGZAGWIPE:
|
|
|
|
return ParametricPolyPolygonSharedPtr( new BarnZigZagWipe(5) );
|
|
|
|
|
|
|
|
case BOWTIEWIPE:
|
|
|
|
case BARNVEEWIPE:
|
|
|
|
case EYEWIPE:
|
|
|
|
case ROUNDRECTWIPE:
|
|
|
|
case MISCSHAPEWIPE:
|
|
|
|
case SALOONDOORWIPE:
|
|
|
|
case WINDSHIELDWIPE:
|
|
|
|
// for now, map to barwipe transition
|
|
|
|
return ParametricPolyPolygonSharedPtr(
|
|
|
|
new BarWipePolyPolygon );
|
|
|
|
|
|
|
|
default:
|
|
|
|
case PUSHWIPE:
|
|
|
|
case SLIDEWIPE:
|
|
|
|
case FADE:
|
2008-06-24 11:14:01 +00:00
|
|
|
ENSURE_OR_THROW( false,
|
INTEGRATION: CWS presentationengine01 (1.1.2); FILE ADDED
2004/09/17 11:26:29 dbo 1.1.2.12: #110496# added ZigZagWipe, BarnZigZagWipe
Issue number:
Submitted by:
Reviewed by:
2004/09/07 12:30:15 dbo 1.1.2.11: #110496# adding SpiralWipe, BoxSnakesWipe, misc
Issue number:
Submitted by:
Reviewed by:
2004/09/03 09:09:23 dbo 1.1.2.10: #110496# fixes, tests
Issue number:
Submitted by:
Reviewed by:
2004/09/02 17:07:18 dbo 1.1.2.9: #110496# added doublediamondwipe, doublebarndoorwipe, figure wipes, sweepwipes, misc modifications
Issue number:
Submitted by:
Reviewed by:
2004/08/20 17:02:39 dbo 1.1.2.8: #110496# adopted polygon clipping order, added snake wipe, parallel snake wipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:50:59 dbo 1.1.2.7: #110496# blinds transition
Issue number:
Submitted by:
Reviewed by:
2004/08/13 16:18:22 dbo 1.1.2.6: #110496#
Issue number:
Submitted by:
Reviewed by:
2004/08/13 15:25:58 dbo 1.1.2.5: #110496# pinwheelwipe
Issue number:
Submitted by:
Reviewed by:
2004/08/13 14:47:41 dbo 1.1.2.4: #110496# more wipes
Issue number:
Submitted by:
Reviewed by:
2004/08/11 17:02:11 dbo 1.1.2.3: #110496# more transitions, modified file/class structure
Issue number:
Submitted by:
Reviewed by:
2004/08/10 16:43:09 dbo 1.1.2.2: #110496# added transistions
Issue number:
Submitted by:
Reviewed by:
2004/08/05 19:58:43 thb 1.1.2.1: Initial revision
2004-11-26 18:07:11 +00:00
|
|
|
"createShapeClipPolyPolygonAnimation(): Transition type mismatch" );
|
|
|
|
}
|
|
|
|
|
|
|
|
return ParametricPolyPolygonSharedPtr();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2010-10-12 15:51:52 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|