1*c4eee24dSAndrew Rist /************************************************************** 2*c4eee24dSAndrew Rist * 3*c4eee24dSAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*c4eee24dSAndrew Rist * or more contributor license agreements. See the NOTICE file 5*c4eee24dSAndrew Rist * distributed with this work for additional information 6*c4eee24dSAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*c4eee24dSAndrew Rist * to you under the Apache License, Version 2.0 (the 8*c4eee24dSAndrew Rist * "License"); you may not use this file except in compliance 9*c4eee24dSAndrew Rist * with the License. You may obtain a copy of the License at 10*c4eee24dSAndrew Rist * 11*c4eee24dSAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12cdf0e10cSrcweir * 13*c4eee24dSAndrew Rist * Unless required by applicable law or agreed to in writing, 14*c4eee24dSAndrew Rist * software distributed under the License is distributed on an 15*c4eee24dSAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*c4eee24dSAndrew Rist * KIND, either express or implied. See the License for the 17*c4eee24dSAndrew Rist * specific language governing permissions and limitations 18*c4eee24dSAndrew Rist * under the License. 19*c4eee24dSAndrew Rist * 20*c4eee24dSAndrew Rist *************************************************************/ 21*c4eee24dSAndrew Rist 22*c4eee24dSAndrew Rist 23cdf0e10cSrcweir #ifndef _SVX_TEXTANIM_HXX 24cdf0e10cSrcweir #define _SVX_TEXTANIM_HXX 25cdf0e10cSrcweir 26cdf0e10cSrcweir // include --------------------------------------------------------------- 27cdf0e10cSrcweir 28cdf0e10cSrcweir #include <vcl/field.hxx> 29cdf0e10cSrcweir #include <sfx2/tabdlg.hxx> 30cdf0e10cSrcweir #include <svx/svdattr.hxx> 31cdf0e10cSrcweir #include <vcl/fixed.hxx> 32cdf0e10cSrcweir #include <vcl/lstbox.hxx> 33cdf0e10cSrcweir #include <vcl/group.hxx> 34cdf0e10cSrcweir 35cdf0e10cSrcweir class SdrView; 36cdf0e10cSrcweir 37cdf0e10cSrcweir /************************************************************************* 38cdf0e10cSrcweir |* 39cdf0e10cSrcweir |* Page zum "Andern von TextAnimationen (Lauftext etc.) 40cdf0e10cSrcweir |* 41cdf0e10cSrcweir \************************************************************************/ 42cdf0e10cSrcweir 43cdf0e10cSrcweir class SvxTextAnimationPage : public SfxTabPage 44cdf0e10cSrcweir { 45cdf0e10cSrcweir private: 46cdf0e10cSrcweir FixedLine aFlEffect; 47cdf0e10cSrcweir FixedText aFtEffects; 48cdf0e10cSrcweir ListBox aLbEffect; 49cdf0e10cSrcweir //ValueSet aCtlEffect; 50cdf0e10cSrcweir FixedText aFtDirection; 51cdf0e10cSrcweir ImageButton aBtnUp; 52cdf0e10cSrcweir ImageButton aBtnLeft; 53cdf0e10cSrcweir ImageButton aBtnRight; 54cdf0e10cSrcweir ImageButton aBtnDown; 55cdf0e10cSrcweir 56cdf0e10cSrcweir FixedLine aFlProperties; 57cdf0e10cSrcweir TriStateBox aTsbStartInside; 58cdf0e10cSrcweir TriStateBox aTsbStopInside; 59cdf0e10cSrcweir 60cdf0e10cSrcweir FixedText aFtCount; 61cdf0e10cSrcweir TriStateBox aTsbEndless; 62cdf0e10cSrcweir NumericField aNumFldCount; 63cdf0e10cSrcweir 64cdf0e10cSrcweir FixedText aFtAmount; 65cdf0e10cSrcweir TriStateBox aTsbPixel; 66cdf0e10cSrcweir MetricField aMtrFldAmount; 67cdf0e10cSrcweir 68cdf0e10cSrcweir FixedText aFtDelay; 69cdf0e10cSrcweir TriStateBox aTsbAuto; 70cdf0e10cSrcweir MetricField aMtrFldDelay; 71cdf0e10cSrcweir 72cdf0e10cSrcweir const SfxItemSet& rOutAttrs; 73cdf0e10cSrcweir SdrTextAniKind eAniKind; 74cdf0e10cSrcweir FieldUnit eFUnit; 75cdf0e10cSrcweir SfxMapUnit eUnit; 76cdf0e10cSrcweir 77cdf0e10cSrcweir #ifdef _SVX_TEXTANIM_CXX 78cdf0e10cSrcweir DECL_LINK( SelectEffectHdl_Impl, void * ); 79cdf0e10cSrcweir DECL_LINK( ClickEndlessHdl_Impl, void * ); 80cdf0e10cSrcweir DECL_LINK( ClickAutoHdl_Impl, void * ); 81cdf0e10cSrcweir DECL_LINK( ClickPixelHdl_Impl, void * ); 82cdf0e10cSrcweir DECL_LINK( ClickDirectionHdl_Impl, ImageButton * ); 83cdf0e10cSrcweir 84cdf0e10cSrcweir void SelectDirection( SdrTextAniDirection nValue ); 85cdf0e10cSrcweir sal_uInt16 GetSelectedDirection(); 86cdf0e10cSrcweir #endif 87cdf0e10cSrcweir 88cdf0e10cSrcweir public: 89cdf0e10cSrcweir 90cdf0e10cSrcweir SvxTextAnimationPage( Window* pWindow, const SfxItemSet& rInAttrs ); 91cdf0e10cSrcweir ~SvxTextAnimationPage(); 92cdf0e10cSrcweir 93cdf0e10cSrcweir static SfxTabPage* Create( Window*, const SfxItemSet& ); 94cdf0e10cSrcweir static sal_uInt16* GetRanges(); 95cdf0e10cSrcweir 96cdf0e10cSrcweir virtual sal_Bool FillItemSet( SfxItemSet& ); 97cdf0e10cSrcweir virtual void Reset( const SfxItemSet & ); 98cdf0e10cSrcweir 99cdf0e10cSrcweir void Construct(); 100cdf0e10cSrcweir }; 101cdf0e10cSrcweir 102cdf0e10cSrcweir /************************************************************************* 103cdf0e10cSrcweir |* 104cdf0e10cSrcweir |* Text-Tab-Dialog 105cdf0e10cSrcweir |* 106cdf0e10cSrcweir \************************************************************************/ 107cdf0e10cSrcweir class SvxTextTabDialog : public SfxTabDialog 108cdf0e10cSrcweir { 109cdf0e10cSrcweir private: 110cdf0e10cSrcweir const SfxItemSet& rOutAttrs; 111cdf0e10cSrcweir const SdrView* pView; 112cdf0e10cSrcweir 113cdf0e10cSrcweir virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ); 114cdf0e10cSrcweir 115cdf0e10cSrcweir public: 116cdf0e10cSrcweir 117cdf0e10cSrcweir SvxTextTabDialog( Window* pParent, const SfxItemSet* pAttr, 118cdf0e10cSrcweir const SdrView* pView ); ~SvxTextTabDialog()119cdf0e10cSrcweir ~SvxTextTabDialog() {}; 120cdf0e10cSrcweir }; 121cdf0e10cSrcweir 122cdf0e10cSrcweir 123cdf0e10cSrcweir #endif // _SVX_TEXTANIM_HXX 124cdf0e10cSrcweir 125