build fix: no comphelper/profilezone.hxx in this branch
[LibreOffice.git] / sd / inc / EffectMigration.hxx
blobf1702b1d7f8f28992b065eee3e20b57640037c20
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SD_INC_EFFECTMIGRATION_HXX
21 #define INCLUDED_SD_INC_EFFECTMIGRATION_HXX
23 #include <com/sun/star/presentation/AnimationEffect.hpp>
24 #include <com/sun/star/presentation/AnimationSpeed.hpp>
25 #include <com/sun/star/presentation/FadeEffect.hpp>
27 class SdDrawDocument;
28 class SdPage;
29 class SvxShape;
30 class SdAnimationInfo;
31 class SdrObject;
32 class SdrPathObj;
33 class SdrObjGroup;
35 namespace sd {
37 /** this helper class gives various methods to convert effects from OOo 1.1
38 and below to and from OOo 2.0 and above
40 class EffectMigration
42 public:
43 static css::presentation::AnimationSpeed ConvertDuration( double fDuration );
44 static double ConvertAnimationSpeed( css::presentation::AnimationSpeed eSpeed );
46 static bool ConvertPreset( const OUString& rPresetId, const OUString* pPresetSubType, css::presentation::AnimationEffect& rEffect );
47 static bool ConvertAnimationEffect( const css::presentation::AnimationEffect& rEffect, OUString& rPresetId, OUString& rPresetSubType );
49 static void SetFadeEffect( SdPage* pPage, css::presentation::FadeEffect eNewEffect);
50 static css::presentation::FadeEffect GetFadeEffect( const SdPage* pPage );
52 static void SetAnimationEffect( SvxShape* pShape, css::presentation::AnimationEffect eValue );
53 static css::presentation::AnimationEffect GetAnimationEffect( SvxShape* pShape );
54 static void SetTextAnimationEffect( SvxShape* pShape, css::presentation::AnimationEffect eValue );
55 static css::presentation::AnimationEffect GetTextAnimationEffect( SvxShape* pShape );
56 static void SetAnimationSpeed( SvxShape* pShape, css::presentation::AnimationSpeed eSpeed );
57 static css::presentation::AnimationSpeed GetAnimationSpeed( SvxShape* pShape );
58 static void SetDimColor( SvxShape* pShape, sal_Int32 nColor );
59 static sal_Int32 GetDimColor( SvxShape* pShape );
60 static void SetDimHide( SvxShape* pShape, bool bDimHide );
61 static bool GetDimHide( SvxShape* pShape );
62 static void SetDimPrevious( SvxShape* pShape, bool bDimPrevious );
63 static bool GetDimPrevious( SvxShape* pShape );
64 static void SetPresentationOrder( SvxShape* pShape, sal_Int32 nNewPos );
65 static sal_Int32 GetPresentationOrder( SvxShape* pShape );
66 static void UpdateSoundEffect( SvxShape* pShape, SdAnimationInfo* pInfo );
67 static OUString GetSoundFile( SvxShape* pShape );
68 static bool GetSoundOn( SvxShape* pShape );
70 static void SetAnimationPath( SvxShape* pShape, SdrPathObj* pPathObj );
71 static void CreateAnimatedGroup(SdrObjGroup& rGroupObj, SdPage& rPage);
72 static void DocumentLoaded(SdDrawDocument & rDoc);
75 } // end of namespace sd
77 #endif
79 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */