Update ooo320-m1
[ooovba.git] / sd / source / ui / inc / unoaprms.hxx
blob6e29a295e9e2bfc16f70125738961e9df5748ddd
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: unoaprms.hxx,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 #ifndef _SD_UNOAPRMS_HXX
32 #define _SD_UNOAPRMS_HXX
34 #include <com/sun/star/presentation/AnimationEffect.hpp>
35 #include <com/sun/star/presentation/AnimationSpeed.hpp>
36 #include <com/sun/star/presentation/ClickAction.hpp>
37 #include "sdundo.hxx"
38 #include "anmdef.hxx"
39 #include <svx/svdopath.hxx>
40 #include <tools/color.hxx>
43 class SdDrawDocument;
44 class SdrObject;
46 class SdAnimationPrmsUndoAction : public SdUndoAction
48 SdrObject* pObject;
49 BOOL bOldActive;
50 BOOL bNewActive;
51 BOOL bOldDimPrevious;
52 BOOL bNewDimPrevious;
53 BOOL bOldDimHide;
54 BOOL bNewDimHide;
55 BOOL bOldSoundOn;
56 BOOL bNewSoundOn;
57 BOOL bOldSecondSoundOn;
58 BOOL bNewSecondSoundOn;
59 BOOL bOldPlayFull;
60 BOOL bNewPlayFull;
61 BOOL bOldSecondPlayFull;
62 BOOL bNewSecondPlayFull;
63 ::com::sun::star::presentation::AnimationEffect eOldEffect;
64 ::com::sun::star::presentation::AnimationEffect eNewEffect;
65 ::com::sun::star::presentation::AnimationEffect eOldTextEffect;
66 ::com::sun::star::presentation::AnimationEffect eNewTextEffect;
67 ::com::sun::star::presentation::AnimationSpeed eOldSpeed;
68 ::com::sun::star::presentation::AnimationSpeed eNewSpeed;
69 ::com::sun::star::presentation::AnimationEffect eOldSecondEffect;
70 ::com::sun::star::presentation::AnimationEffect eNewSecondEffect;
71 ::com::sun::star::presentation::AnimationSpeed eOldSecondSpeed;
72 ::com::sun::star::presentation::AnimationSpeed eNewSecondSpeed;
73 Color aOldDimColor;
74 Color aNewDimColor;
75 Color aOldBlueScreen;
76 Color aNewBlueScreen;
77 String aOldSoundFile;
78 String aNewSoundFile;
79 SdrPathObj* pOldPathObj;
80 SdrPathObj* pNewPathObj;
81 ::com::sun::star::presentation::ClickAction eOldClickAction;
82 ::com::sun::star::presentation::ClickAction eNewClickAction;
83 String aOldBookmark;
84 String aNewBookmark;
85 BOOL bOldInvisibleInPres;
86 BOOL bNewInvisibleInPres;
87 USHORT nOldVerb;
88 USHORT nNewVerb;
89 ULONG nOldPresOrder;
90 ULONG nNewPresOrder;
92 BOOL bInfoCreated;
94 public:
95 TYPEINFO();
96 SdAnimationPrmsUndoAction(SdDrawDocument* pTheDoc, SdrObject* pObj,
97 BOOL bCreated):
98 SdUndoAction (pTheDoc),
99 pObject (pObj),
100 bInfoCreated (bCreated)
103 SdAnimationPrmsUndoAction( SdDrawDocument* pTheDoc, SdrObject* pObj );
105 void SetActive(BOOL bTheOldActive, BOOL bTheNewActive)
106 { bOldActive = bTheOldActive; bNewActive = bTheNewActive; }
107 void SetEffect(::com::sun::star::presentation::AnimationEffect eTheOldEffect, ::com::sun::star::presentation::AnimationEffect eTheNewEffect)
108 { eOldEffect = eTheOldEffect; eNewEffect = eTheNewEffect; }
109 void SetTextEffect(::com::sun::star::presentation::AnimationEffect eTheOldEffect, ::com::sun::star::presentation::AnimationEffect eTheNewEffect)
110 { eOldTextEffect = eTheOldEffect; eNewTextEffect = eTheNewEffect; }
111 void SetSpeed(::com::sun::star::presentation::AnimationSpeed eTheOldSpeed, ::com::sun::star::presentation::AnimationSpeed eTheNewSpeed)
112 { eOldSpeed = eTheOldSpeed; eNewSpeed = eTheNewSpeed; }
113 void SetDim(BOOL bTheOldDim, BOOL bTheNewDim)
114 { bOldDimPrevious = bTheOldDim; bNewDimPrevious = bTheNewDim; }
115 void SetDimColor(Color aTheOldDimColor, Color aTheNewDimColor)
116 { aOldDimColor = aTheOldDimColor; aNewDimColor = aTheNewDimColor; }
117 void SetDimHide(BOOL bTheOldDimHide, BOOL bTheNewDimHide)
118 { bOldDimHide = bTheOldDimHide; bNewDimHide = bTheNewDimHide; }
119 void SetSoundOn(BOOL bTheOldSoundOn, BOOL bTheNewSoundOn)
120 { bOldSoundOn = bTheOldSoundOn; bNewSoundOn = bTheNewSoundOn; }
121 void SetSound(String aTheOldSound, String aTheNewSound)
122 { aOldSoundFile = aTheOldSound; aNewSoundFile = aTheNewSound; }
123 void SetBlueScreen(Color aTheOldBlueScreen, Color aTheNewBlueScreen)
124 { aOldBlueScreen = aTheOldBlueScreen; aNewBlueScreen = aTheNewBlueScreen; }
125 void SetPlayFull(BOOL bTheOldPlayFull, BOOL bTheNewPlayFull)
126 { bOldPlayFull = bTheOldPlayFull; bNewPlayFull = bTheNewPlayFull; }
127 void SetPathObj(SdrPathObj* pTheOldPath, SdrPathObj* pTheNewPath)
128 { pOldPathObj = pTheOldPath; pNewPathObj = pTheNewPath; }
129 void SetClickAction(::com::sun::star::presentation::ClickAction eTheOldAction, ::com::sun::star::presentation::ClickAction eTheNewAction)
130 { eOldClickAction = eTheOldAction; eNewClickAction = eTheNewAction; }
131 void SetBookmark(String aTheOldBookmark, String aTheNewBookmark)
132 { aOldBookmark = aTheOldBookmark; aNewBookmark = aTheNewBookmark; }
133 void SetInvisibleInPres(BOOL bTheOldInvisibleInPres, BOOL bTheNewInvisibleInPres)
134 { bOldInvisibleInPres = bTheOldInvisibleInPres; bNewInvisibleInPres = bTheNewInvisibleInPres; }
135 void SetVerb(USHORT nTheOldVerb, USHORT nTheNewVerb)
136 { nOldVerb = nTheOldVerb; nNewVerb = nTheNewVerb; }
137 void SetSecondEffect(::com::sun::star::presentation::AnimationEffect eTheOldEffect, ::com::sun::star::presentation::AnimationEffect eTheNewEffect)
138 { eOldSecondEffect = eTheOldEffect; eNewSecondEffect = eTheNewEffect; }
139 void SetSecondSpeed(::com::sun::star::presentation::AnimationSpeed eTheOldSpeed, ::com::sun::star::presentation::AnimationSpeed eTheNewSpeed)
140 { eOldSecondSpeed = eTheOldSpeed; eNewSecondSpeed = eTheNewSpeed; }
141 void SetSecondSoundOn(BOOL bTheOldSoundOn, BOOL bTheNewSoundOn)
142 { bOldSecondSoundOn = bTheOldSoundOn; bNewSecondSoundOn = bTheNewSoundOn; }
143 void SetSecondPlayFull(BOOL bTheOldPlayFull, BOOL bTheNewPlayFull)
144 { bOldSecondPlayFull = bTheOldPlayFull; bNewSecondPlayFull = bTheNewPlayFull; }
145 void SetPresOrder(ULONG nTheOldPresOrder, ULONG nTheNewPresOrder)
146 { nOldPresOrder = nTheOldPresOrder; nNewPresOrder = nTheNewPresOrder; }
148 virtual ~SdAnimationPrmsUndoAction();
149 virtual void Undo();
150 virtual void Redo();
153 #endif // _SD_UNOAPRMS_HXX