1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SD_INC_ANMINFO_HXX
21 #define INCLUDED_SD_INC_ANMINFO_HXX
23 #include <com/sun/star/presentation/AnimationEffect.hpp>
24 #include <com/sun/star/presentation/AnimationSpeed.hpp>
25 #include <com/sun/star/presentation/ClickAction.hpp>
27 #include <svx/svdobj.hxx>
28 #include <tools/color.hxx>
34 class SD_DLLPUBLIC SdAnimationInfo
: public SdrObjUserData
37 PresObjKind mePresObjKind
;
39 /* deprecated animation infos */
40 ::com::sun::star::presentation::AnimationEffect meEffect
; ///< Animation effect
41 ::com::sun::star::presentation::AnimationEffect meTextEffect
; ///< Animation effect for text content
42 ::com::sun::star::presentation::AnimationSpeed meSpeed
; ///< Speed of the animation
43 bool mbActive
; ///< turned on?
44 bool mbDimPrevious
; ///< Object fade out
45 bool mbIsMovie
; ///< if group object than it is a sequence of them.
46 bool mbDimHide
; ///< hide rather than dim
47 Color maBlueScreen
; ///< identifies "background pixels"
48 Color maDimColor
; ///< for fading the object
49 OUString maSoundFile
; ///< Path to the sound file in MS DOS notation
50 bool mbSoundOn
; ///< Sound on / off
51 bool mbPlayFull
; ///< play sound completely.
52 SdrPathObj
* mpPathObj
; ///< The path object
53 ::com::sun::star::presentation::ClickAction meClickAction
; ///< Action at mouse click
54 ::com::sun::star::presentation::AnimationEffect meSecondEffect
; ///< for object fading.
55 ::com::sun::star::presentation::AnimationSpeed meSecondSpeed
; ///< for object fading.
56 OUString maSecondSoundFile
; ///< for object fading.
57 bool mbSecondSoundOn
; ///< for object fading.
58 bool mbSecondPlayFull
; ///< for object fading.
59 sal_uInt16 mnVerb
; ///< for OLE object
60 sal_uLong mnPresOrder
;
63 void SetBookmark( const OUString
& rBookmark
);
64 OUString
GetBookmark();
66 SAL_DLLPRIVATE
SdAnimationInfo(SdrObject
& rObject
);
67 SAL_DLLPRIVATE
SdAnimationInfo(const SdAnimationInfo
& rAnmInfo
, SdrObject
& rObject
);
68 SAL_DLLPRIVATE
virtual ~SdAnimationInfo();
70 SAL_DLLPRIVATE
virtual SdrObjUserData
* Clone(SdrObject
* pObject
) const SAL_OVERRIDE
;
73 #endif // INCLUDED_SD_INC_ANMINFO_HXX
75 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */