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 _SD_UNOAPRMS_HXX
21 #define _SD_UNOAPRMS_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/svdopath.hxx>
28 #include <tools/color.hxx>
34 class SdAnimationPrmsUndoAction
: public SdUndoAction
39 sal_Bool bOldDimPrevious
;
40 sal_Bool bNewDimPrevious
;
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
;
67 SdrPathObj
* pOldPathObj
;
68 SdrPathObj
* pNewPathObj
;
69 ::com::sun::star::presentation::ClickAction eOldClickAction
;
70 ::com::sun::star::presentation::ClickAction eNewClickAction
;
73 sal_Bool bOldInvisibleInPres
;
74 sal_Bool bNewInvisibleInPres
;
77 sal_uLong nOldPresOrder
;
78 sal_uLong nNewPresOrder
;
80 sal_Bool bInfoCreated
;
84 SdAnimationPrmsUndoAction(SdDrawDocument
* pTheDoc
, SdrObject
* pObj
,
86 SdUndoAction (pTheDoc
),
88 bInfoCreated (bCreated
)
91 void SetActive(sal_Bool bTheOldActive
, sal_Bool bTheNewActive
)
92 { bOldActive
= bTheOldActive
; bNewActive
= bTheNewActive
; }
93 void SetEffect(::com::sun::star::presentation::AnimationEffect eTheOldEffect
, ::com::sun::star::presentation::AnimationEffect eTheNewEffect
)
94 { eOldEffect
= eTheOldEffect
; eNewEffect
= eTheNewEffect
; }
95 void SetTextEffect(::com::sun::star::presentation::AnimationEffect eTheOldEffect
, ::com::sun::star::presentation::AnimationEffect eTheNewEffect
)
96 { eOldTextEffect
= eTheOldEffect
; eNewTextEffect
= eTheNewEffect
; }
97 void SetSpeed(::com::sun::star::presentation::AnimationSpeed eTheOldSpeed
, ::com::sun::star::presentation::AnimationSpeed eTheNewSpeed
)
98 { eOldSpeed
= eTheOldSpeed
; eNewSpeed
= eTheNewSpeed
; }
99 void SetDim(sal_Bool bTheOldDim
, sal_Bool bTheNewDim
)
100 { bOldDimPrevious
= bTheOldDim
; bNewDimPrevious
= bTheNewDim
; }
101 void SetDimColor(Color aTheOldDimColor
, Color aTheNewDimColor
)
102 { aOldDimColor
= aTheOldDimColor
; aNewDimColor
= aTheNewDimColor
; }
103 void SetDimHide(sal_Bool bTheOldDimHide
, sal_Bool bTheNewDimHide
)
104 { bOldDimHide
= bTheOldDimHide
; bNewDimHide
= bTheNewDimHide
; }
105 void SetSoundOn(sal_Bool bTheOldSoundOn
, sal_Bool bTheNewSoundOn
)
106 { bOldSoundOn
= bTheOldSoundOn
; bNewSoundOn
= bTheNewSoundOn
; }
107 void SetSound(String aTheOldSound
, String aTheNewSound
)
108 { aOldSoundFile
= aTheOldSound
; aNewSoundFile
= aTheNewSound
; }
109 void SetBlueScreen(Color aTheOldBlueScreen
, Color aTheNewBlueScreen
)
110 { aOldBlueScreen
= aTheOldBlueScreen
; aNewBlueScreen
= aTheNewBlueScreen
; }
111 void SetPlayFull(sal_Bool bTheOldPlayFull
, sal_Bool bTheNewPlayFull
)
112 { bOldPlayFull
= bTheOldPlayFull
; bNewPlayFull
= bTheNewPlayFull
; }
113 void SetPathObj(SdrPathObj
* pTheOldPath
, SdrPathObj
* pTheNewPath
)
114 { pOldPathObj
= pTheOldPath
; pNewPathObj
= pTheNewPath
; }
115 void SetClickAction(::com::sun::star::presentation::ClickAction eTheOldAction
, ::com::sun::star::presentation::ClickAction eTheNewAction
)
116 { eOldClickAction
= eTheOldAction
; eNewClickAction
= eTheNewAction
; }
117 void SetBookmark(String aTheOldBookmark
, String aTheNewBookmark
)
118 { aOldBookmark
= aTheOldBookmark
; aNewBookmark
= aTheNewBookmark
; }
119 void SetInvisibleInPres(sal_Bool bTheOldInvisibleInPres
, sal_Bool bTheNewInvisibleInPres
)
120 { bOldInvisibleInPres
= bTheOldInvisibleInPres
; bNewInvisibleInPres
= bTheNewInvisibleInPres
; }
121 void SetVerb(sal_uInt16 nTheOldVerb
, sal_uInt16 nTheNewVerb
)
122 { nOldVerb
= nTheOldVerb
; nNewVerb
= nTheNewVerb
; }
123 void SetSecondEffect(::com::sun::star::presentation::AnimationEffect eTheOldEffect
, ::com::sun::star::presentation::AnimationEffect eTheNewEffect
)
124 { eOldSecondEffect
= eTheOldEffect
; eNewSecondEffect
= eTheNewEffect
; }
125 void SetSecondSpeed(::com::sun::star::presentation::AnimationSpeed eTheOldSpeed
, ::com::sun::star::presentation::AnimationSpeed eTheNewSpeed
)
126 { eOldSecondSpeed
= eTheOldSpeed
; eNewSecondSpeed
= eTheNewSpeed
; }
127 void SetSecondSoundOn(sal_Bool bTheOldSoundOn
, sal_Bool bTheNewSoundOn
)
128 { bOldSecondSoundOn
= bTheOldSoundOn
; bNewSecondSoundOn
= bTheNewSoundOn
; }
129 void SetSecondPlayFull(sal_Bool bTheOldPlayFull
, sal_Bool bTheNewPlayFull
)
130 { bOldSecondPlayFull
= bTheOldPlayFull
; bNewSecondPlayFull
= bTheNewPlayFull
; }
131 void SetPresOrder(sal_uLong nTheOldPresOrder
, sal_uLong nTheNewPresOrder
)
132 { nOldPresOrder
= nTheOldPresOrder
; nNewPresOrder
= nTheNewPresOrder
; }
134 virtual ~SdAnimationPrmsUndoAction();
139 #endif // _SD_UNOAPRMS_HXX
141 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */