xref: /trunk/main/sd/inc/anminfo.hxx (revision 1ecadb572e7010ff3b3382ad9bf179dbc6efadbb)
1 /*************************************************************************
2  *
3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4  *
5  * Copyright 2000, 2010 Oracle and/or its affiliates.
6  *
7  * OpenOffice.org - a multi-platform office productivity suite
8  *
9  * This file is part of OpenOffice.org.
10  *
11  * OpenOffice.org is free software: you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License version 3
13  * only, as published by the Free Software Foundation.
14  *
15  * OpenOffice.org is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18  * GNU Lesser General Public License version 3 for more details
19  * (a copy is included in the LICENSE file that accompanied this code).
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * version 3 along with OpenOffice.org.  If not, see
23  * <http://www.openoffice.org/license.html>
24  * for a copy of the LGPLv3 License.
25  *
26  ************************************************************************/
27 
28 #ifndef _SD_ANMINFO_HXX
29 #define _SD_ANMINFO_HXX
30 
31 #include <com/sun/star/presentation/AnimationEffect.hpp>
32 #include <com/sun/star/presentation/AnimationSpeed.hpp>
33 #include <com/sun/star/presentation/ClickAction.hpp>
34 #include "pres.hxx"
35 #include "anmdef.hxx"
36 #include <svx/svdobj.hxx>
37 #include <tools/color.hxx>
38 #include <sddllapi.h>
39 
40 class Polygon;
41 class Point;
42 class SvStream;
43 class SdrObjSurrogate;
44 class SdrObject;
45 class SdrPathObj;
46 class SdDrawDocument;
47 
48 class SdAnimationInfo : public SdrObjUserData
49 {
50 public:
51     PresObjKind             mePresObjKind;
52 
53     /* deprecated animation infos */
54     ::com::sun::star::presentation::AnimationEffect         meEffect;       // Animationseffekt
55     ::com::sun::star::presentation::AnimationEffect         meTextEffect;   // Animationseffekt fuer Textinhalt
56     ::com::sun::star::presentation::AnimationSpeed          meSpeed;            // Geschwindigkeit der Animation
57     sal_Bool                    mbActive;       // eingeschaltet ?
58     sal_Bool                    mbDimPrevious;  // Objekt abblenden
59     sal_Bool                    mbIsMovie;      // wenn Gruppenobjekt, dann Sequenz aus den
60     sal_Bool                    mbDimHide;      // verstecken statt abblenden
61     Color                   maBlueScreen;   // identifiziert "Hintergrundpixel"
62     Color                   maDimColor;     // zum Abblenden des Objekts
63     String                  maSoundFile;        // Pfad zum Soundfile in MSDOS-Notation
64     sal_Bool                    mbSoundOn;      // Sound ein/aus
65     sal_Bool                    mbPlayFull;     // Sound ganz abspielen
66     SdrPathObj*             mpPathObj;      // das Pfadobjekt
67     ::com::sun::star::presentation::ClickAction             meClickAction;  // Aktion bei Mausklick
68     ::com::sun::star::presentation::AnimationEffect         meSecondEffect; // fuer Objekt ausblenden
69     ::com::sun::star::presentation::AnimationSpeed          meSecondSpeed;  // fuer Objekt ausblenden
70     String                  maSecondSoundFile; // fuer Objekt ausblenden
71     sal_Bool                    mbSecondSoundOn;    // fuer Objekt ausblenden
72     sal_Bool                    mbSecondPlayFull;// fuer Objekt ausblenden
73 //  String                  maBookmark;     // Sprung zu Objekt/Seite
74     sal_uInt16                  mnVerb;         // fuer OLE-Objekt
75     sal_uLong                   mnPresOrder;
76     SdrObject&              mrObject;
77 
78     SD_DLLPUBLIC void                    SetBookmark( const String& rBookmark );
79     SD_DLLPUBLIC String                  GetBookmark();
80 public:
81                             SdAnimationInfo(SdrObject& rObject);
82                             SdAnimationInfo(const SdAnimationInfo& rAnmInfo, SdrObject& rObject);
83     virtual                 ~SdAnimationInfo();
84 
85     virtual SdrObjUserData* Clone(SdrObject* pObject) const;
86 };
87 
88 #endif // _SD_ANMINFO_HXX
89 
90