1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir 28*cdf0e10cSrcweir #ifndef _SD_CUSTOMANIMATIONDIALOG_HXX 29*cdf0e10cSrcweir #define _SD_CUSTOMANIMATIONDIALOG_HXX 30*cdf0e10cSrcweir 31*cdf0e10cSrcweir #include "CustomAnimationEffect.hxx" 32*cdf0e10cSrcweir #include "CustomAnimationPreset.hxx" 33*cdf0e10cSrcweir #include <vcl/tabdlg.hxx> 34*cdf0e10cSrcweir #include <vcl/lstbox.hxx> 35*cdf0e10cSrcweir 36*cdf0e10cSrcweir class TabControl; 37*cdf0e10cSrcweir class OKButton; 38*cdf0e10cSrcweir class CancelButton; 39*cdf0e10cSrcweir class HelpButton; 40*cdf0e10cSrcweir namespace sd { 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir 43*cdf0e10cSrcweir // -------------------------------------------------------------------- 44*cdf0e10cSrcweir 45*cdf0e10cSrcweir // property handles 46*cdf0e10cSrcweir const sal_Int32 nHandleSound = 0; 47*cdf0e10cSrcweir const sal_Int32 nHandleHasAfterEffect = 1; 48*cdf0e10cSrcweir const sal_Int32 nHandleIterateType = 2; 49*cdf0e10cSrcweir const sal_Int32 nHandleIterateInterval = 3; 50*cdf0e10cSrcweir const sal_Int32 nHandleStart = 4; 51*cdf0e10cSrcweir const sal_Int32 nHandleBegin = 5; 52*cdf0e10cSrcweir const sal_Int32 nHandleDuration = 6; 53*cdf0e10cSrcweir const sal_Int32 nHandleRepeat = 7; 54*cdf0e10cSrcweir const sal_Int32 nHandleRewind = 8; 55*cdf0e10cSrcweir const sal_Int32 nHandleEnd = 9; 56*cdf0e10cSrcweir const sal_Int32 nHandleAfterEffectOnNextEffect = 10; 57*cdf0e10cSrcweir const sal_Int32 nHandleDimColor = 11; 58*cdf0e10cSrcweir const sal_Int32 nHandleMaxParaDepth = 12; 59*cdf0e10cSrcweir const sal_Int32 nHandlePresetId = 13; 60*cdf0e10cSrcweir const sal_Int32 nHandleProperty1Type = 14; 61*cdf0e10cSrcweir const sal_Int32 nHandleProperty1Value = 15; 62*cdf0e10cSrcweir const sal_Int32 nHandleProperty2Type = 16; 63*cdf0e10cSrcweir const sal_Int32 nHandleProperty2Value = 17; 64*cdf0e10cSrcweir 65*cdf0e10cSrcweir const sal_Int32 nHandleAccelerate = 18; 66*cdf0e10cSrcweir const sal_Int32 nHandleDecelerate = 19; 67*cdf0e10cSrcweir const sal_Int32 nHandleAutoReverse = 20; 68*cdf0e10cSrcweir const sal_Int32 nHandleTrigger = 21; 69*cdf0e10cSrcweir 70*cdf0e10cSrcweir const sal_Int32 nHandleHasText = 22; 71*cdf0e10cSrcweir const sal_Int32 nHandleTextGrouping = 23; 72*cdf0e10cSrcweir const sal_Int32 nHandleAnimateForm = 24; 73*cdf0e10cSrcweir const sal_Int32 nHandleTextGroupingAuto = 25; 74*cdf0e10cSrcweir const sal_Int32 nHandleTextReverse = 26; 75*cdf0e10cSrcweir 76*cdf0e10cSrcweir const sal_Int32 nHandleCurrentPage = 27; 77*cdf0e10cSrcweir const sal_Int32 nHandleSoundURL = 28; 78*cdf0e10cSrcweir const sal_Int32 nHandleSoundVolumne = 29; 79*cdf0e10cSrcweir const sal_Int32 nHandleSoundEndAfterSlide = 30; 80*cdf0e10cSrcweir 81*cdf0e10cSrcweir const sal_Int32 nHandleCommand = 31; 82*cdf0e10cSrcweir 83*cdf0e10cSrcweir const sal_Int32 nHandleHasVisibleShape = 32; 84*cdf0e10cSrcweir 85*cdf0e10cSrcweir const sal_Int32 nPropertyTypeNone = 0; 86*cdf0e10cSrcweir const sal_Int32 nPropertyTypeDirection = 1; 87*cdf0e10cSrcweir const sal_Int32 nPropertyTypeSpokes = 2; 88*cdf0e10cSrcweir const sal_Int32 nPropertyTypeFirstColor = 3; 89*cdf0e10cSrcweir const sal_Int32 nPropertyTypeSecondColor = 4; 90*cdf0e10cSrcweir const sal_Int32 nPropertyTypeZoom = 5; 91*cdf0e10cSrcweir const sal_Int32 nPropertyTypeFillColor = 6; 92*cdf0e10cSrcweir const sal_Int32 nPropertyTypeColorStyle = 7; 93*cdf0e10cSrcweir const sal_Int32 nPropertyTypeFont = 8; 94*cdf0e10cSrcweir const sal_Int32 nPropertyTypeCharHeight = 9; 95*cdf0e10cSrcweir const sal_Int32 nPropertyTypeCharColor = 10; 96*cdf0e10cSrcweir const sal_Int32 nPropertyTypeCharHeightStyle = 11; 97*cdf0e10cSrcweir const sal_Int32 nPropertyTypeCharDecoration = 12; 98*cdf0e10cSrcweir const sal_Int32 nPropertyTypeLineColor = 13; 99*cdf0e10cSrcweir const sal_Int32 nPropertyTypeRotate = 14; 100*cdf0e10cSrcweir const sal_Int32 nPropertyTypeColor = 15; 101*cdf0e10cSrcweir const sal_Int32 nPropertyTypeAccelerate = 16; 102*cdf0e10cSrcweir const sal_Int32 nPropertyTypeDecelerate = 17; 103*cdf0e10cSrcweir const sal_Int32 nPropertyTypeAutoReverse = 18; 104*cdf0e10cSrcweir const sal_Int32 nPropertyTypeTransparency = 19; 105*cdf0e10cSrcweir const sal_Int32 nPropertyTypeFontStyle = 20; 106*cdf0e10cSrcweir const sal_Int32 nPropertyTypeScale = 21; 107*cdf0e10cSrcweir 108*cdf0e10cSrcweir // -------------------------------------------------------------------- 109*cdf0e10cSrcweir 110*cdf0e10cSrcweir class PropertySubControl 111*cdf0e10cSrcweir { 112*cdf0e10cSrcweir public: 113*cdf0e10cSrcweir PropertySubControl( sal_Int32 nType ) : mnType( nType ) {} 114*cdf0e10cSrcweir virtual ~PropertySubControl(); 115*cdf0e10cSrcweir 116*cdf0e10cSrcweir virtual ::com::sun::star::uno::Any getValue() = 0; 117*cdf0e10cSrcweir virtual void setValue( const ::com::sun::star::uno::Any& rValue, const rtl::OUString& rPresetId ) = 0; 118*cdf0e10cSrcweir 119*cdf0e10cSrcweir virtual Control* getControl() = 0; 120*cdf0e10cSrcweir 121*cdf0e10cSrcweir static PropertySubControl* 122*cdf0e10cSrcweir create( sal_Int32 nType, 123*cdf0e10cSrcweir ::Window* pParent, 124*cdf0e10cSrcweir const ::com::sun::star::uno::Any& rValue, 125*cdf0e10cSrcweir const rtl::OUString& rPresetId, 126*cdf0e10cSrcweir const Link& rModifyHdl ); 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir sal_Int32 getControlType() const { return mnType; } 129*cdf0e10cSrcweir 130*cdf0e10cSrcweir protected: 131*cdf0e10cSrcweir sal_Int32 mnType; 132*cdf0e10cSrcweir }; 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir // -------------------------------------------------------------------- 135*cdf0e10cSrcweir 136*cdf0e10cSrcweir class PropertyControl : public ListBox 137*cdf0e10cSrcweir { 138*cdf0e10cSrcweir public: 139*cdf0e10cSrcweir PropertyControl( Window* pParent, const ResId& rResId ); 140*cdf0e10cSrcweir ~PropertyControl(); 141*cdf0e10cSrcweir 142*cdf0e10cSrcweir void setSubControl( PropertySubControl* pSubControl ); 143*cdf0e10cSrcweir PropertySubControl* getSubControl() const { return mpSubControl; } 144*cdf0e10cSrcweir 145*cdf0e10cSrcweir virtual void Resize(); 146*cdf0e10cSrcweir 147*cdf0e10cSrcweir private: 148*cdf0e10cSrcweir PropertySubControl* mpSubControl; 149*cdf0e10cSrcweir }; 150*cdf0e10cSrcweir 151*cdf0e10cSrcweir // -------------------------------------------------------------------- 152*cdf0e10cSrcweir 153*cdf0e10cSrcweir class CustomAnimationDurationTabPage; 154*cdf0e10cSrcweir class CustomAnimationEffectTabPage; 155*cdf0e10cSrcweir class CustomAnimationTextAnimTabPage; 156*cdf0e10cSrcweir class STLPropertySet; 157*cdf0e10cSrcweir 158*cdf0e10cSrcweir class CustomAnimationDialog : public TabDialog 159*cdf0e10cSrcweir { 160*cdf0e10cSrcweir public: 161*cdf0e10cSrcweir CustomAnimationDialog( Window* pParent, STLPropertySet* pSet, sal_uInt16 nPage = 0 ); 162*cdf0e10cSrcweir ~CustomAnimationDialog(); 163*cdf0e10cSrcweir 164*cdf0e10cSrcweir STLPropertySet* getDefaultSet() { return mpSet; } 165*cdf0e10cSrcweir STLPropertySet* getResultSet(); 166*cdf0e10cSrcweir 167*cdf0e10cSrcweir static STLPropertySet* createDefaultSet(); 168*cdf0e10cSrcweir 169*cdf0e10cSrcweir private: 170*cdf0e10cSrcweir STLPropertySet* mpSet; 171*cdf0e10cSrcweir STLPropertySet* mpResultSet; 172*cdf0e10cSrcweir 173*cdf0e10cSrcweir CustomAnimationEffectPtr mpEffect; 174*cdf0e10cSrcweir TabControl* mpTabControl; 175*cdf0e10cSrcweir OKButton* mpOKButton; 176*cdf0e10cSrcweir CancelButton* mpCancelButton; 177*cdf0e10cSrcweir HelpButton* mpHelpButton; 178*cdf0e10cSrcweir 179*cdf0e10cSrcweir CustomAnimationDurationTabPage* mpDurationTabPage; 180*cdf0e10cSrcweir CustomAnimationEffectTabPage* mpEffectTabPage; 181*cdf0e10cSrcweir CustomAnimationTextAnimTabPage* mpTextAnimTabPage; 182*cdf0e10cSrcweir }; 183*cdf0e10cSrcweir 184*cdf0e10cSrcweir } 185*cdf0e10cSrcweir 186*cdf0e10cSrcweir #endif // _SD_CUSTOMANIMATIONDIALOG_HXX 187