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