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