Branch data Line data Source code
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 : : #ifndef _SD_UNOAPRMS_HXX
21 : : #define _SD_UNOAPRMS_HXX
22 : :
23 : : #include <com/sun/star/presentation/AnimationEffect.hpp>
24 : : #include <com/sun/star/presentation/AnimationSpeed.hpp>
25 : : #include <com/sun/star/presentation/ClickAction.hpp>
26 : : #include "sdundo.hxx"
27 : : #include <svx/svdopath.hxx>
28 : : #include <tools/color.hxx>
29 : :
30 : :
31 : : class SdDrawDocument;
32 : : class SdrObject;
33 : :
34 : : class SdAnimationPrmsUndoAction : public SdUndoAction
35 : : {
36 : : SdrObject* pObject;
37 : : sal_Bool bOldActive;
38 : : sal_Bool bNewActive;
39 : : sal_Bool bOldDimPrevious;
40 : : sal_Bool bNewDimPrevious;
41 : : sal_Bool bOldDimHide;
42 : : sal_Bool bNewDimHide;
43 : : sal_Bool bOldSoundOn;
44 : : sal_Bool bNewSoundOn;
45 : : sal_Bool bOldSecondSoundOn;
46 : : sal_Bool bNewSecondSoundOn;
47 : : sal_Bool bOldPlayFull;
48 : : sal_Bool bNewPlayFull;
49 : : sal_Bool bOldSecondPlayFull;
50 : : sal_Bool bNewSecondPlayFull;
51 : : ::com::sun::star::presentation::AnimationEffect eOldEffect;
52 : : ::com::sun::star::presentation::AnimationEffect eNewEffect;
53 : : ::com::sun::star::presentation::AnimationEffect eOldTextEffect;
54 : : ::com::sun::star::presentation::AnimationEffect eNewTextEffect;
55 : : ::com::sun::star::presentation::AnimationSpeed eOldSpeed;
56 : : ::com::sun::star::presentation::AnimationSpeed eNewSpeed;
57 : : ::com::sun::star::presentation::AnimationEffect eOldSecondEffect;
58 : : ::com::sun::star::presentation::AnimationEffect eNewSecondEffect;
59 : : ::com::sun::star::presentation::AnimationSpeed eOldSecondSpeed;
60 : : ::com::sun::star::presentation::AnimationSpeed eNewSecondSpeed;
61 : : Color aOldDimColor;
62 : : Color aNewDimColor;
63 : : Color aOldBlueScreen;
64 : : Color aNewBlueScreen;
65 : : String aOldSoundFile;
66 : : String aNewSoundFile;
67 : : SdrPathObj* pOldPathObj;
68 : : SdrPathObj* pNewPathObj;
69 : : ::com::sun::star::presentation::ClickAction eOldClickAction;
70 : : ::com::sun::star::presentation::ClickAction eNewClickAction;
71 : : String aOldBookmark;
72 : : String aNewBookmark;
73 : : sal_Bool bOldInvisibleInPres;
74 : : sal_Bool bNewInvisibleInPres;
75 : : sal_uInt16 nOldVerb;
76 : : sal_uInt16 nNewVerb;
77 : : sal_uLong nOldPresOrder;
78 : : sal_uLong nNewPresOrder;
79 : :
80 : : sal_Bool bInfoCreated;
81 : :
82 : : public:
83 : : TYPEINFO();
84 : 0 : SdAnimationPrmsUndoAction(SdDrawDocument* pTheDoc, SdrObject* pObj,
85 : : sal_Bool bCreated):
86 : : SdUndoAction (pTheDoc),
87 : : pObject (pObj),
88 [ # # ][ # # ]: 0 : bInfoCreated (bCreated)
[ # # ][ # # ]
89 : 0 : {}
90 : :
91 : 0 : void SetActive(sal_Bool bTheOldActive, sal_Bool bTheNewActive)
92 : 0 : { bOldActive = bTheOldActive; bNewActive = bTheNewActive; }
93 : 0 : void SetEffect(::com::sun::star::presentation::AnimationEffect eTheOldEffect, ::com::sun::star::presentation::AnimationEffect eTheNewEffect)
94 : 0 : { eOldEffect = eTheOldEffect; eNewEffect = eTheNewEffect; }
95 : 0 : void SetTextEffect(::com::sun::star::presentation::AnimationEffect eTheOldEffect, ::com::sun::star::presentation::AnimationEffect eTheNewEffect)
96 : 0 : { eOldTextEffect = eTheOldEffect; eNewTextEffect = eTheNewEffect; }
97 : 0 : void SetSpeed(::com::sun::star::presentation::AnimationSpeed eTheOldSpeed, ::com::sun::star::presentation::AnimationSpeed eTheNewSpeed)
98 : 0 : { eOldSpeed = eTheOldSpeed; eNewSpeed = eTheNewSpeed; }
99 : 0 : void SetDim(sal_Bool bTheOldDim, sal_Bool bTheNewDim)
100 : 0 : { bOldDimPrevious = bTheOldDim; bNewDimPrevious = bTheNewDim; }
101 : 0 : void SetDimColor(Color aTheOldDimColor, Color aTheNewDimColor)
102 : 0 : { aOldDimColor = aTheOldDimColor; aNewDimColor = aTheNewDimColor; }
103 : 0 : void SetDimHide(sal_Bool bTheOldDimHide, sal_Bool bTheNewDimHide)
104 : 0 : { bOldDimHide = bTheOldDimHide; bNewDimHide = bTheNewDimHide; }
105 : 0 : void SetSoundOn(sal_Bool bTheOldSoundOn, sal_Bool bTheNewSoundOn)
106 : 0 : { bOldSoundOn = bTheOldSoundOn; bNewSoundOn = bTheNewSoundOn; }
107 : 0 : void SetSound(String aTheOldSound, String aTheNewSound)
108 : 0 : { aOldSoundFile = aTheOldSound; aNewSoundFile = aTheNewSound; }
109 : : void SetBlueScreen(Color aTheOldBlueScreen, Color aTheNewBlueScreen)
110 : : { aOldBlueScreen = aTheOldBlueScreen; aNewBlueScreen = aTheNewBlueScreen; }
111 : 0 : void SetPlayFull(sal_Bool bTheOldPlayFull, sal_Bool bTheNewPlayFull)
112 : 0 : { bOldPlayFull = bTheOldPlayFull; bNewPlayFull = bTheNewPlayFull; }
113 : 0 : void SetPathObj(SdrPathObj* pTheOldPath, SdrPathObj* pTheNewPath)
114 : 0 : { pOldPathObj = pTheOldPath; pNewPathObj = pTheNewPath; }
115 : 0 : void SetClickAction(::com::sun::star::presentation::ClickAction eTheOldAction, ::com::sun::star::presentation::ClickAction eTheNewAction)
116 : 0 : { eOldClickAction = eTheOldAction; eNewClickAction = eTheNewAction; }
117 : 0 : void SetBookmark(String aTheOldBookmark, String aTheNewBookmark)
118 : 0 : { aOldBookmark = aTheOldBookmark; aNewBookmark = aTheNewBookmark; }
119 : : void SetInvisibleInPres(sal_Bool bTheOldInvisibleInPres, sal_Bool bTheNewInvisibleInPres)
120 : : { bOldInvisibleInPres = bTheOldInvisibleInPres; bNewInvisibleInPres = bTheNewInvisibleInPres; }
121 : 0 : void SetVerb(sal_uInt16 nTheOldVerb, sal_uInt16 nTheNewVerb)
122 : 0 : { nOldVerb = nTheOldVerb; nNewVerb = nTheNewVerb; }
123 : 0 : void SetSecondEffect(::com::sun::star::presentation::AnimationEffect eTheOldEffect, ::com::sun::star::presentation::AnimationEffect eTheNewEffect)
124 : 0 : { eOldSecondEffect = eTheOldEffect; eNewSecondEffect = eTheNewEffect; }
125 : 0 : void SetSecondSpeed(::com::sun::star::presentation::AnimationSpeed eTheOldSpeed, ::com::sun::star::presentation::AnimationSpeed eTheNewSpeed)
126 : 0 : { eOldSecondSpeed = eTheOldSpeed; eNewSecondSpeed = eTheNewSpeed; }
127 : 0 : void SetSecondSoundOn(sal_Bool bTheOldSoundOn, sal_Bool bTheNewSoundOn)
128 : 0 : { bOldSecondSoundOn = bTheOldSoundOn; bNewSecondSoundOn = bTheNewSoundOn; }
129 : 0 : void SetSecondPlayFull(sal_Bool bTheOldPlayFull, sal_Bool bTheNewPlayFull)
130 : 0 : { bOldSecondPlayFull = bTheOldPlayFull; bNewSecondPlayFull = bTheNewPlayFull; }
131 : : void SetPresOrder(sal_uLong nTheOldPresOrder, sal_uLong nTheNewPresOrder)
132 : : { nOldPresOrder = nTheOldPresOrder; nNewPresOrder = nTheNewPresOrder; }
133 : :
134 : : virtual ~SdAnimationPrmsUndoAction();
135 : : virtual void Undo();
136 : : virtual void Redo();
137 : : };
138 : :
139 : : #endif // _SD_UNOAPRMS_HXX
140 : :
141 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|