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