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