2010-10-12 15:51:52 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2005-01-21 16:02:57 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 23:41:01 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2005-01-21 16:02:57 +00:00
|
|
|
*
|
2010-02-12 15:01:35 +01:00
|
|
|
* Copyright 2000, 2010 Oracle and/or its affiliates.
|
2005-01-21 16:02:57 +00:00
|
|
|
*
|
2008-04-10 23:41:01 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2005-01-21 16:02:57 +00:00
|
|
|
*
|
2008-04-10 23:41:01 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2005-01-21 16:02:57 +00:00
|
|
|
*
|
2008-04-10 23:41:01 +00:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2005-01-21 16:02:57 +00:00
|
|
|
*
|
2008-04-10 23:41:01 +00:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2005-01-21 16:02:57 +00:00
|
|
|
*
|
2008-04-10 23:41:01 +00:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2005-01-21 16:02:57 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-17 07:34:20 +00:00
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_slideshow.hxx"
|
|
|
|
|
2005-01-21 16:02:57 +00:00
|
|
|
// must be first
|
INTEGRATION: CWS presfixes12 (1.6.12); FILE MERGED
2007/02/06 17:18:05 thb 1.6.12.2: #i37778# Moved clear() method from View to ViewLayer (also sprites need to be cleared); fixed a few more cases of local code style violations; removed redundant inline keywords; finished Layer/LayerManager rework (Layer now represents ViewLayers, shapes and rendering are fully under LayerManager control); made shape comparator reusable
2007/01/29 14:02:00 thb 1.6.12.1: Issue number: #i37778#
Larger slideshow refactoring. Wrote design and coding style manifest,
and adapted the code to actually conform to this. In detail:
- cleaned up ownership/disposable/weak_ptr story. removed hacks and
explicit Disposable implementations, where workaround were available
- removed object mutices, where superfluous
- reworked EventMultiplexer (using templatized listener class now), added
more events. EventMultiplexer now serves as a true blackboard
- reworked directory structure: disjunct parts are now physically separated
into directories, instantiation happens via factories & abstract interfaces
- added CursorManager, to make setting mouse cursor less hackish
- reworked DrawShape, to implement SeparateListener pattern
- reworked IntrinsicAnimationActivity, to avoid cyclic references
- modified hyperlink & shape cursor handling to communicate via
EventMultiplexer
- renamed & cleaned up files (presentation.cxx now named slideshowimpl.cxx,
etc.)
- added first version of the z-order fix to layer/layermanager
- cleaned up include guards and include syntax
2007-07-17 13:47:40 +00:00
|
|
|
#include <canvas/debug.hxx>
|
|
|
|
#include <canvas/verbosetrace.hxx>
|
|
|
|
|
2006-07-26 06:32:17 +00:00
|
|
|
#include "animationpathmotionnode.hxx"
|
|
|
|
#include "animationfactory.hxx"
|
2005-01-21 16:02:57 +00:00
|
|
|
|
2006-12-13 14:30:18 +00:00
|
|
|
namespace slideshow {
|
2006-07-26 06:32:17 +00:00
|
|
|
namespace internal {
|
2005-01-21 16:02:57 +00:00
|
|
|
|
2006-07-26 06:32:17 +00:00
|
|
|
void AnimationPathMotionNode::dispose()
|
2005-01-21 16:02:57 +00:00
|
|
|
{
|
2006-07-26 06:32:17 +00:00
|
|
|
mxPathMotionNode.clear();
|
|
|
|
AnimationBaseNode::dispose();
|
|
|
|
}
|
2005-01-21 16:02:57 +00:00
|
|
|
|
2006-07-26 06:32:17 +00:00
|
|
|
AnimationActivitySharedPtr AnimationPathMotionNode::createActivity() const
|
|
|
|
{
|
|
|
|
rtl::OUString aString;
|
2008-06-24 11:07:27 +00:00
|
|
|
ENSURE_OR_THROW( (mxPathMotionNode->getPath() >>= aString),
|
2006-07-26 06:32:17 +00:00
|
|
|
"no string-based SVG:d path found" );
|
2005-01-21 16:02:57 +00:00
|
|
|
|
2006-07-26 06:32:17 +00:00
|
|
|
ActivitiesFactory::CommonParameters const aParms( fillCommonParameters() );
|
|
|
|
return ActivitiesFactory::createSimpleActivity(
|
|
|
|
aParms,
|
|
|
|
AnimationFactory::createPathMotionAnimation(
|
|
|
|
aString,
|
2007-08-01 10:10:28 +00:00
|
|
|
mxPathMotionNode->getAdditive(),
|
2006-07-26 06:32:17 +00:00
|
|
|
getShape(),
|
INTEGRATION: CWS presfixes12 (1.6.12); FILE MERGED
2007/02/06 17:18:05 thb 1.6.12.2: #i37778# Moved clear() method from View to ViewLayer (also sprites need to be cleared); fixed a few more cases of local code style violations; removed redundant inline keywords; finished Layer/LayerManager rework (Layer now represents ViewLayers, shapes and rendering are fully under LayerManager control); made shape comparator reusable
2007/01/29 14:02:00 thb 1.6.12.1: Issue number: #i37778#
Larger slideshow refactoring. Wrote design and coding style manifest,
and adapted the code to actually conform to this. In detail:
- cleaned up ownership/disposable/weak_ptr story. removed hacks and
explicit Disposable implementations, where workaround were available
- removed object mutices, where superfluous
- reworked EventMultiplexer (using templatized listener class now), added
more events. EventMultiplexer now serves as a true blackboard
- reworked directory structure: disjunct parts are now physically separated
into directories, instantiation happens via factories & abstract interfaces
- added CursorManager, to make setting mouse cursor less hackish
- reworked DrawShape, to implement SeparateListener pattern
- reworked IntrinsicAnimationActivity, to avoid cyclic references
- modified hyperlink & shape cursor handling to communicate via
EventMultiplexer
- renamed & cleaned up files (presentation.cxx now named slideshowimpl.cxx,
etc.)
- added first version of the z-order fix to layer/layermanager
- cleaned up include guards and include syntax
2007-07-17 13:47:40 +00:00
|
|
|
getContext().mpSubsettableShapeManager,
|
|
|
|
getSlideSize() ),
|
2006-07-26 06:32:17 +00:00
|
|
|
true );
|
|
|
|
}
|
2005-01-21 16:02:57 +00:00
|
|
|
|
2006-07-26 06:32:17 +00:00
|
|
|
} // namespace internal
|
2006-12-13 14:30:18 +00:00
|
|
|
} // namespace slideshow
|
2005-01-21 16:02:57 +00:00
|
|
|
|
2010-10-12 15:51:52 +02:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|