LibreOffice Module sd (master) 1
unoaprms.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#include <drawdoc.hxx>
21#include <unoaprms.hxx>
22#include <anminfo.hxx>
23
24
26{
27 // no new info created: restore data
28 if (!bInfoCreated)
29 {
32 if (pInfo)
33 {
34 pInfo->mbActive = bOldActive;
35 pInfo->meEffect = eOldEffect;
37 pInfo->meSpeed = eOldSpeed;
39 pInfo->maDimColor = aOldDimColor;
40 pInfo->mbDimHide = bOldDimHide;
41 pInfo->mbSoundOn = bOldSoundOn;
43 pInfo->mbPlayFull = bOldPlayFull;
45 pInfo->SetBookmark( aOldBookmark );
46 pInfo->mnVerb = nOldVerb;
47
52 }
53 }
54 // info was created by action: delete info
55 else
56 {
58 }
59 // force ModelHasChanged() in order to update effect window (animation order)
62}
63
65{
67
68 pInfo->mbActive = bNewActive;
69 pInfo->meEffect = eNewEffect;
71 pInfo->meSpeed = eNewSpeed;
73 pInfo->maDimColor = aNewDimColor;
74 pInfo->mbDimHide = bNewDimHide;
75 pInfo->mbSoundOn = bNewSoundOn;
77 pInfo->mbPlayFull = bNewPlayFull;
79 pInfo->SetBookmark( aNewBookmark );
80 pInfo->mnVerb = nNewVerb;
81
86
87 // force ModelHasChanged() in order to update effect window (animation order)
90}
91
93{
94}
95
96/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
bool mbPlayFull
play sound completely.
Definition: anminfo.hxx:47
css::presentation::AnimationEffect meTextEffect
Animation effect for text content.
Definition: anminfo.hxx:37
bool mbDimHide
hide rather than dim
Definition: anminfo.hxx:42
css::presentation::AnimationEffect meEffect
Animation effect.
Definition: anminfo.hxx:36
void SetBookmark(const OUString &rBookmark)
Definition: anminfo.cxx:95
css::presentation::ClickAction meClickAction
Action at mouse click.
Definition: anminfo.hxx:48
Color maDimColor
for fading the object
Definition: anminfo.hxx:44
sal_uInt16 mnVerb
for OLE object
Definition: anminfo.hxx:54
css::presentation::AnimationEffect meSecondEffect
for object fading.
Definition: anminfo.hxx:49
bool mbSecondSoundOn
for object fading.
Definition: anminfo.hxx:52
OUString maSoundFile
Path to the sound file in MS DOS notation.
Definition: anminfo.hxx:45
css::presentation::AnimationSpeed meSpeed
Speed of the animation.
Definition: anminfo.hxx:38
bool mbDimPrevious
Object fade out.
Definition: anminfo.hxx:40
bool mbActive
turned on?
Definition: anminfo.hxx:39
bool mbSoundOn
Sound on / off.
Definition: anminfo.hxx:46
bool mbSecondPlayFull
for object fading.
Definition: anminfo.hxx:53
css::presentation::AnimationSpeed meSecondSpeed
for object fading.
Definition: anminfo.hxx:50
css::presentation::AnimationEffect eOldTextEffect
Definition: unoaprms.hxx:50
css::presentation::ClickAction eOldClickAction
Definition: unoaprms.hxx:62
css::presentation::AnimationSpeed eNewSecondSpeed
Definition: unoaprms.hxx:57
css::presentation::AnimationSpeed eOldSecondSpeed
Definition: unoaprms.hxx:56
css::presentation::AnimationSpeed eOldSpeed
Definition: unoaprms.hxx:52
css::presentation::AnimationEffect eNewSecondEffect
Definition: unoaprms.hxx:55
virtual void Undo() override
Definition: unoaprms.cxx:25
virtual ~SdAnimationPrmsUndoAction() override
Definition: unoaprms.cxx:92
virtual void Redo() override
Definition: unoaprms.cxx:64
css::presentation::AnimationEffect eOldEffect
Definition: unoaprms.hxx:48
css::presentation::AnimationEffect eOldSecondEffect
Definition: unoaprms.hxx:54
css::presentation::AnimationEffect eNewTextEffect
Definition: unoaprms.hxx:51
css::presentation::ClickAction eNewClickAction
Definition: unoaprms.hxx:63
css::presentation::AnimationSpeed eNewSpeed
Definition: unoaprms.hxx:53
css::presentation::AnimationEffect eNewEffect
Definition: unoaprms.hxx:49
static SdAnimationInfo * GetShapeUserData(SdrObject &rObject, bool bCreate=false)
Definition: drawdoc2.cxx:959
static SAL_DLLPRIVATE SdAnimationInfo * GetAnimationInfo(SdrObject *pObject)
deprecated
Definition: drawdoc2.cxx:950
void BroadcastObjectChange() const
SdrModel & getSdrModelFromSdrObject() const
virtual void SetChanged()
void DeleteUserData(sal_uInt16 nNum)