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>
31 class SD_DLLPUBLIC SdAnimationInfo
: public SdrObjUserData
34 PresObjKind mePresObjKind
;
36 /* deprecated animation infos */
37 css::presentation::AnimationEffect meEffect
; ///< Animation effect
38 css::presentation::AnimationEffect meTextEffect
; ///< Animation effect for text content
39 css::presentation::AnimationSpeed meSpeed
; ///< Speed of the animation
40 bool mbActive
; ///< turned on?
41 bool mbDimPrevious
; ///< Object fade out
42 bool const mbIsMovie
; ///< if group object than it is a sequence of them.
43 bool mbDimHide
; ///< hide rather than dim
44 Color maBlueScreen
; ///< identifies "background pixels"
45 Color maDimColor
; ///< for fading the object
46 OUString maSoundFile
; ///< Path to the sound file in MS DOS notation
47 bool mbSoundOn
; ///< Sound on / off
48 bool mbPlayFull
; ///< play sound completely.
49 css::presentation::ClickAction meClickAction
; ///< Action at mouse click
50 css::presentation::AnimationEffect meSecondEffect
; ///< for object fading.
51 css::presentation::AnimationSpeed meSecondSpeed
; ///< for object fading.
52 OUString
const maSecondSoundFile
; ///< for object fading.
53 bool mbSecondSoundOn
; ///< for object fading.
54 bool mbSecondPlayFull
; ///< for object fading.
55 sal_uInt16 mnVerb
; ///< for OLE object
58 void SetBookmark( const OUString
& rBookmark
);
59 OUString
GetBookmark();
61 SAL_DLLPRIVATE
SdAnimationInfo(SdrObject
& rObject
);
62 SAL_DLLPRIVATE
SdAnimationInfo(const SdAnimationInfo
& rAnmInfo
, SdrObject
& rObject
);
63 SAL_DLLPRIVATE
virtual ~SdAnimationInfo() override
;
65 SAL_DLLPRIVATE
virtual std::unique_ptr
<SdrObjUserData
> Clone(SdrObject
* pObject
) const override
;
68 #endif // INCLUDED_SD_INC_ANMINFO_HXX
70 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */