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