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 _XMLOFF_ANIM_HXX 29 #define _XMLOFF_ANIM_HXX 30 31 #include <com/sun/star/presentation/AnimationEffect.hpp> 32 #include <com/sun/star/drawing/XShape.hpp> 33 #include <xmloff/uniref.hxx> 34 #include <xmloff/xmlement.hxx> 35 36 enum XMLEffect 37 { 38 EK_none, 39 EK_fade, 40 EK_move, 41 EK_stripes, 42 EK_open, 43 EK_close, 44 EK_dissolve, 45 EK_wavyline, 46 EK_random, 47 EK_lines, 48 EK_laser, 49 EK_appear, 50 EK_hide, 51 EK_move_short, 52 EK_checkerboard, 53 EK_rotate, 54 EK_stretch 55 }; 56 57 extern SvXMLEnumMapEntry aXML_AnimationEffect_EnumMap[]; 58 59 enum XMLEffectDirection 60 { 61 ED_none, 62 ED_from_left, 63 ED_from_top, 64 ED_from_right, 65 ED_from_bottom, 66 ED_from_center, 67 ED_from_upperleft, 68 ED_from_upperright, 69 ED_from_lowerleft, 70 ED_from_lowerright, 71 72 ED_to_left, 73 ED_to_top, 74 ED_to_right, 75 ED_to_bottom, 76 ED_to_upperleft, 77 ED_to_upperright, 78 ED_to_lowerright, 79 ED_to_lowerleft, 80 81 ED_path, 82 ED_spiral_inward_left, 83 ED_spiral_inward_right, 84 ED_spiral_outward_left, 85 ED_spiral_outward_right, 86 87 ED_vertical, 88 ED_horizontal, 89 90 ED_to_center, 91 92 ED_clockwise, 93 ED_cclockwise 94 }; 95 96 extern SvXMLEnumMapEntry aXML_AnimationDirection_EnumMap[]; 97 98 extern SvXMLEnumMapEntry aXML_AnimationSpeed_EnumMap[]; 99 100 void SdXMLImplSetEffect( ::com::sun::star::presentation::AnimationEffect eEffect, XMLEffect& eKind, XMLEffectDirection& eDirection, sal_Int16& nStartScale, sal_Bool& bIn ); 101 ::com::sun::star::presentation::AnimationEffect ImplSdXMLgetEffect( XMLEffect eKind, XMLEffectDirection eDirection, sal_Int16 nStartScale, sal_Bool bIn ); 102 103 #endif // _XMLOFF_ANIM_HXX 104 105