xref: /aoo4110/main/sd/inc/anminfo.hxx (revision b1cdbd2c)
1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 #ifndef _SD_ANMINFO_HXX
25 #define _SD_ANMINFO_HXX
26 
27 #include <com/sun/star/presentation/AnimationEffect.hpp>
28 #include <com/sun/star/presentation/AnimationSpeed.hpp>
29 #include <com/sun/star/presentation/ClickAction.hpp>
30 #include "pres.hxx"
31 #include "anmdef.hxx"
32 #include <svx/svdobj.hxx>
33 #include <tools/color.hxx>
34 #include <sddllapi.h>
35 
36 class Polygon;
37 class Point;
38 class SvStream;
39 class SdrObjSurrogate;
40 class SdrObject;
41 class SdrPathObj;
42 class SdDrawDocument;
43 
44 class SdAnimationInfo : public SdrObjUserData
45 {
46 public:
47 	PresObjKind				mePresObjKind;
48 
49 	/* deprecated animation infos */
50 	::com::sun::star::presentation::AnimationEffect			meEffect;		// Animationseffekt
51 	::com::sun::star::presentation::AnimationEffect			meTextEffect;	// Animationseffekt fuer Textinhalt
52 	::com::sun::star::presentation::AnimationSpeed			meSpeed;			// Geschwindigkeit der Animation
53 	sal_Bool					mbActive;		// eingeschaltet ?
54 	sal_Bool					mbDimPrevious;	// Objekt abblenden
55 	sal_Bool					mbIsMovie; 		// wenn Gruppenobjekt, dann Sequenz aus den
56 	sal_Bool					mbDimHide; 		// verstecken statt abblenden
57 	Color					maBlueScreen;	// identifiziert "Hintergrundpixel"
58 	Color					maDimColor;		// zum Abblenden des Objekts
59 	String					maSoundFile;		// Pfad zum Soundfile in MSDOS-Notation
60 	sal_Bool					mbSoundOn; 		// Sound ein/aus
61 	sal_Bool					mbPlayFull;		// Sound ganz abspielen
62 	SdrPathObj* 			mpPathObj; 		// das Pfadobjekt
63 	::com::sun::star::presentation::ClickAction 			meClickAction; 	// Aktion bei Mausklick
64 	::com::sun::star::presentation::AnimationEffect			meSecondEffect;	// fuer Objekt ausblenden
65 	::com::sun::star::presentation::AnimationSpeed			meSecondSpeed; 	// fuer Objekt ausblenden
66 	String					maSecondSoundFile; // fuer Objekt ausblenden
67 	sal_Bool					mbSecondSoundOn;	// fuer Objekt ausblenden
68 	sal_Bool					mbSecondPlayFull;// fuer Objekt ausblenden
69 //	String					maBookmark;		// Sprung zu Objekt/Seite
70 	sal_uInt16					mnVerb;			// fuer OLE-Objekt
71 	sal_uLong					mnPresOrder;
72     SdrObject&              mrObject;
73 
74     SD_DLLPUBLIC void                    SetBookmark( const String& rBookmark );
75     SD_DLLPUBLIC String                  GetBookmark();
76 public:
77 							SdAnimationInfo(SdrObject& rObject);
78 							SdAnimationInfo(const SdAnimationInfo& rAnmInfo, SdrObject& rObject);
79 	virtual					~SdAnimationInfo();
80 
81 	virtual SdrObjUserData*	Clone(SdrObject* pObject) const;
82 };
83 
84 #endif // _SD_ANMINFO_HXX
85 
86