merge the formfield patch from ooo-build
[ooovba.git] / svx / source / cui / textanim.hxx
blobf72d474c7633a89f648d6566a4bf74803586bb1f
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: textanim.hxx,v $
10 * $Revision: 1.6 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
30 #ifndef _SVX_TEXTANIM_HXX
31 #define _SVX_TEXTANIM_HXX
33 // include ---------------------------------------------------------------
35 #include <vcl/field.hxx>
36 #include <sfx2/tabdlg.hxx>
37 #include <svx/svdattr.hxx>
38 #include <vcl/fixed.hxx>
39 #include <vcl/lstbox.hxx>
40 #include <vcl/group.hxx>
42 class SdrView;
44 /*************************************************************************
46 |* Page zum "Andern von TextAnimationen (Lauftext etc.)
48 \************************************************************************/
50 class SvxTextAnimationPage : public SfxTabPage
52 private:
53 FixedLine aFlEffect;
54 FixedText aFtEffects;
55 ListBox aLbEffect;
56 //ValueSet aCtlEffect;
57 FixedText aFtDirection;
58 ImageButton aBtnUp;
59 ImageButton aBtnLeft;
60 ImageButton aBtnRight;
61 ImageButton aBtnDown;
63 FixedLine aFlProperties;
64 TriStateBox aTsbStartInside;
65 TriStateBox aTsbStopInside;
67 FixedText aFtCount;
68 TriStateBox aTsbEndless;
69 NumericField aNumFldCount;
71 FixedText aFtAmount;
72 TriStateBox aTsbPixel;
73 MetricField aMtrFldAmount;
75 FixedText aFtDelay;
76 TriStateBox aTsbAuto;
77 MetricField aMtrFldDelay;
79 const SfxItemSet& rOutAttrs;
80 SdrTextAniKind eAniKind;
81 FieldUnit eFUnit;
82 SfxMapUnit eUnit;
84 #ifdef _SVX_TEXTANIM_CXX
85 DECL_LINK( SelectEffectHdl_Impl, void * );
86 DECL_LINK( ClickEndlessHdl_Impl, void * );
87 DECL_LINK( ClickAutoHdl_Impl, void * );
88 DECL_LINK( ClickPixelHdl_Impl, void * );
89 DECL_LINK( ClickDirectionHdl_Impl, ImageButton * );
91 void SelectDirection( SdrTextAniDirection nValue );
92 USHORT GetSelectedDirection();
93 #endif
95 public:
97 SvxTextAnimationPage( Window* pWindow, const SfxItemSet& rInAttrs );
98 ~SvxTextAnimationPage();
100 static SfxTabPage* Create( Window*, const SfxItemSet& );
101 static USHORT* GetRanges();
103 virtual BOOL FillItemSet( SfxItemSet& );
104 virtual void Reset( const SfxItemSet & );
106 void Construct();
109 /*************************************************************************
111 |* Text-Tab-Dialog
113 \************************************************************************/
114 class SvxTextTabDialog : public SfxTabDialog
116 private:
117 const SfxItemSet& rOutAttrs;
118 const SdrView* pView;
120 virtual void PageCreated( USHORT nId, SfxTabPage &rPage );
122 public:
124 SvxTextTabDialog( Window* pParent, const SfxItemSet* pAttr,
125 const SdrView* pView );
126 ~SvxTextTabDialog() {};
130 #endif // _SVX_TEXTANIM_HXX