1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 2 /* 3 * This file is part of the LibreOffice project. 4 * 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/. 8 * 9 * This file incorporates work covered by the following license notice: 10 * 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 . 18 */ 19 20 #pragma once 21 22 #include <com/sun/star/presentation/AnimationEffect.hpp> 23 #include <com/sun/star/presentation/AnimationSpeed.hpp> 24 #include <xmloff/xmlement.hxx> 25 26 enum XMLEffect 27 { 28 EK_none, 29 EK_fade, 30 EK_move, 31 EK_stripes, 32 EK_open, 33 EK_close, 34 EK_dissolve, 35 EK_wavyline, 36 EK_random, 37 EK_lines, 38 EK_laser, 39 EK_appear, 40 EK_hide, 41 EK_move_short, 42 EK_checkerboard, 43 EK_rotate, 44 EK_stretch 45 }; 46 47 extern const SvXMLEnumMapEntry<XMLEffect> aXML_AnimationEffect_EnumMap[]; 48 49 enum XMLEffectDirection 50 { 51 ED_none, 52 ED_from_left, 53 ED_from_top, 54 ED_from_right, 55 ED_from_bottom, 56 ED_from_center, 57 ED_from_upperleft, 58 ED_from_upperright, 59 ED_from_lowerleft, 60 ED_from_lowerright, 61 62 ED_to_left, 63 ED_to_top, 64 ED_to_right, 65 ED_to_bottom, 66 ED_to_upperleft, 67 ED_to_upperright, 68 ED_to_lowerright, 69 ED_to_lowerleft, 70 71 ED_path, 72 ED_spiral_inward_left, 73 ED_spiral_inward_right, 74 ED_spiral_outward_left, 75 ED_spiral_outward_right, 76 77 ED_vertical, 78 ED_horizontal, 79 80 ED_to_center, 81 82 ED_clockwise, 83 ED_cclockwise 84 }; 85 86 extern const SvXMLEnumMapEntry<XMLEffectDirection> aXML_AnimationDirection_EnumMap[]; 87 88 extern const SvXMLEnumMapEntry<css::presentation::AnimationSpeed> aXML_AnimationSpeed_EnumMap[]; 89 90 void SdXMLImplSetEffect(css::presentation::AnimationEffect eEffect, XMLEffect& eKind, 91 XMLEffectDirection& eDirection, sal_Int16& nStartScale, bool& bIn); 92 css::presentation::AnimationEffect 93 ImplSdXMLgetEffect(XMLEffect eKind, XMLEffectDirection eDirection, sal_Int16 nStartScale, bool bIn); 94 95 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ 96