2000-09-18 18:16:46 -05:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-08 21:10:22 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 18:16:46 -05:00
|
|
|
*
|
2005-09-08 21:10:22 -05:00
|
|
|
* $RCSfile: anminfo.cxx,v $
|
2000-09-18 18:16:46 -05:00
|
|
|
*
|
2006-11-14 07:20:48 -06:00
|
|
|
* $Revision: 1.14 $
|
2000-09-18 18:16:46 -05:00
|
|
|
*
|
2006-11-14 07:20:48 -06:00
|
|
|
* last change: $Author: ihi $ $Date: 2006-11-14 14:20:48 $
|
2000-09-18 18:16:46 -05:00
|
|
|
*
|
2005-09-08 21:10:22 -05:00
|
|
|
* The Contents of this file are made available subject to
|
|
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
2000-09-18 18:16:46 -05:00
|
|
|
*
|
|
|
|
*
|
2005-09-08 21:10:22 -05:00
|
|
|
* GNU Lesser General Public License Version 2.1
|
|
|
|
* =============================================
|
|
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2000-09-18 18:16:46 -05:00
|
|
|
*
|
2005-09-08 21:10:22 -05:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License version 2.1, as published by the Free Software Foundation.
|
2000-09-18 18:16:46 -05:00
|
|
|
*
|
2005-09-08 21:10:22 -05:00
|
|
|
* This library 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 for more details.
|
2000-09-18 18:16:46 -05:00
|
|
|
*
|
2005-09-08 21:10:22 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
2000-09-18 18:16:46 -05:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
2006-09-16 12:13:40 -05:00
|
|
|
// MARKER(update_precomp.py): autogen include statement, do not remove
|
|
|
|
#include "precompiled_sd.hxx"
|
|
|
|
|
2000-09-18 18:16:46 -05:00
|
|
|
#ifndef _URLOBJ_HXX
|
|
|
|
#include <tools/urlobj.hxx>
|
|
|
|
#endif
|
|
|
|
#ifndef _SFXSMPLHINT_HXX //autogen
|
|
|
|
#include <svtools/smplhint.hxx>
|
|
|
|
#endif
|
|
|
|
#include "svx/xtable.hxx"
|
|
|
|
#ifndef _SVDOPATH_HXX //autogen
|
|
|
|
#include <svx/svdopath.hxx>
|
|
|
|
#endif
|
|
|
|
#include <svtools/urihelper.hxx>
|
|
|
|
|
|
|
|
|
|
|
|
#include "anminfo.hxx"
|
|
|
|
#include "glob.hxx"
|
|
|
|
#include "sdiocmpt.hxx"
|
|
|
|
#include "drawdoc.hxx"
|
|
|
|
|
2001-08-06 02:34:08 -05:00
|
|
|
// #90477#
|
|
|
|
#ifndef _TOOLS_TENCCVT_HXX
|
|
|
|
#include <tools/tenccvt.hxx>
|
|
|
|
#endif
|
|
|
|
|
2000-09-18 18:16:46 -05:00
|
|
|
using namespace ::com::sun::star;
|
|
|
|
|
2006-01-10 07:25:05 -06:00
|
|
|
SdAnimationInfo::SdAnimationInfo()
|
2000-09-18 18:16:46 -05:00
|
|
|
: SdrObjUserData(SdUDInventor, SD_ANIMATIONINFO_ID, 0),
|
2006-01-10 07:25:05 -06:00
|
|
|
mePresObjKind (PRESOBJ_NONE),
|
2000-09-18 18:16:46 -05:00
|
|
|
eEffect (presentation::AnimationEffect_NONE),
|
|
|
|
eTextEffect (presentation::AnimationEffect_NONE),
|
|
|
|
eSpeed (presentation::AnimationSpeed_SLOW),
|
|
|
|
bActive (TRUE),
|
|
|
|
bDimPrevious (FALSE),
|
|
|
|
bIsMovie (FALSE),
|
|
|
|
bDimHide (FALSE),
|
|
|
|
bSoundOn (FALSE),
|
|
|
|
bPlayFull (FALSE),
|
|
|
|
pPathObj (NULL),
|
|
|
|
eClickAction (presentation::ClickAction_NONE),
|
|
|
|
eSecondEffect (presentation::AnimationEffect_NONE),
|
|
|
|
eSecondSpeed (presentation::AnimationSpeed_SLOW),
|
|
|
|
bSecondSoundOn (FALSE),
|
|
|
|
bSecondPlayFull (FALSE),
|
|
|
|
nVerb (0),
|
|
|
|
nPresOrder (LIST_APPEND)
|
|
|
|
{
|
|
|
|
aBlueScreen = RGB_Color(COL_LIGHTMAGENTA);
|
|
|
|
aDimColor = RGB_Color(COL_LIGHTGRAY);
|
|
|
|
}
|
|
|
|
|
|
|
|
SdAnimationInfo::SdAnimationInfo(const SdAnimationInfo& rAnmInfo)
|
|
|
|
: SdrObjUserData (rAnmInfo),
|
2006-01-10 07:25:05 -06:00
|
|
|
mePresObjKind (PRESOBJ_NONE),
|
2000-09-18 18:16:46 -05:00
|
|
|
eEffect (rAnmInfo.eEffect),
|
|
|
|
eTextEffect (rAnmInfo.eTextEffect),
|
|
|
|
eSpeed (rAnmInfo.eSpeed),
|
|
|
|
bActive (rAnmInfo.bActive),
|
|
|
|
bDimPrevious (rAnmInfo.bDimPrevious),
|
|
|
|
bIsMovie (rAnmInfo.bIsMovie),
|
|
|
|
bDimHide (rAnmInfo.bDimHide),
|
|
|
|
aBlueScreen (rAnmInfo.aBlueScreen),
|
|
|
|
aDimColor (rAnmInfo.aDimColor),
|
|
|
|
aSoundFile (rAnmInfo.aSoundFile),
|
|
|
|
bSoundOn (rAnmInfo.bSoundOn),
|
|
|
|
bPlayFull (rAnmInfo.bPlayFull),
|
|
|
|
pPathObj (NULL),
|
|
|
|
eClickAction (rAnmInfo.eClickAction),
|
|
|
|
eSecondEffect (rAnmInfo.eSecondEffect),
|
|
|
|
eSecondSpeed (rAnmInfo.eSecondSpeed),
|
|
|
|
bSecondSoundOn (rAnmInfo.bSecondSoundOn),
|
|
|
|
bSecondPlayFull (rAnmInfo.bSecondPlayFull),
|
|
|
|
nVerb (rAnmInfo.nVerb),
|
|
|
|
aBookmark (rAnmInfo.aBookmark),
|
|
|
|
aSecondSoundFile (rAnmInfo.aSecondSoundFile),
|
|
|
|
nPresOrder (LIST_APPEND)
|
|
|
|
{
|
2006-01-10 07:25:05 -06:00
|
|
|
// can not be copied
|
2000-09-18 18:16:46 -05:00
|
|
|
if (eEffect == presentation::AnimationEffect_PATH)
|
|
|
|
eEffect = presentation::AnimationEffect_NONE;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
SdAnimationInfo::~SdAnimationInfo()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2001-10-22 07:36:57 -05:00
|
|
|
SdrObjUserData* SdAnimationInfo::Clone(SdrObject* pObj) const
|
2000-09-18 18:16:46 -05:00
|
|
|
{
|
|
|
|
return new SdAnimationInfo(*this);
|
|
|
|
}
|