1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: textanim.hxx,v $
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>
44 /*************************************************************************
46 |* Page zum "Andern von TextAnimationen (Lauftext etc.)
48 \************************************************************************/
50 class SvxTextAnimationPage
: public SfxTabPage
56 //ValueSet aCtlEffect;
57 FixedText aFtDirection
;
60 ImageButton aBtnRight
;
63 FixedLine aFlProperties
;
64 TriStateBox aTsbStartInside
;
65 TriStateBox aTsbStopInside
;
68 TriStateBox aTsbEndless
;
69 NumericField aNumFldCount
;
72 TriStateBox aTsbPixel
;
73 MetricField aMtrFldAmount
;
77 MetricField aMtrFldDelay
;
79 const SfxItemSet
& rOutAttrs
;
80 SdrTextAniKind eAniKind
;
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();
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
& );
109 /*************************************************************************
113 \************************************************************************/
114 class SvxTextTabDialog
: public SfxTabDialog
117 const SfxItemSet
& rOutAttrs
;
118 const SdrView
* pView
;
120 virtual void PageCreated( USHORT nId
, SfxTabPage
&rPage
);
124 SvxTextTabDialog( Window
* pParent
, const SfxItemSet
* pAttr
,
125 const SdrView
* pView
);
126 ~SvxTextTabDialog() {};
130 #endif // _SVX_TEXTANIM_HXX