Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
5 : * This Source Code Form is subject to the terms of the Mozilla Public
6 : * License, v. 2.0. If a copy of the MPL was not distributed with this
7 : * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
11 : * Licensed to the Apache Software Foundation (ASF) under one or more
12 : * contributor license agreements. See the NOTICE file distributed
13 : * with this work for additional information regarding copyright
14 : * ownership. The ASF licenses this file to you under the Apache
15 : * License, Version 2.0 (the "License"); you may not use this file
16 : * except in compliance with the License. You may obtain a copy of
17 : * the License at http://www.apache.org/licenses/LICENSE-2.0 .
18 : */
19 : #ifndef _SVX_TEXTANIM_HXX
20 : #define _SVX_TEXTANIM_HXX
21 :
22 : #include <vcl/field.hxx>
23 : #include <sfx2/tabdlg.hxx>
24 : #include <svx/svdattr.hxx>
25 : #include <vcl/fixed.hxx>
26 : #include <vcl/lstbox.hxx>
27 : #include <vcl/group.hxx>
28 :
29 : class SdrView;
30 :
31 : /*************************************************************************
32 : |*
33 : |* Page for changing TextAnimations (running text etc.)
34 : |*
35 : \************************************************************************/
36 :
37 : class SvxTextAnimationPage : public SfxTabPage
38 : {
39 : private:
40 : FixedLine aFlEffect;
41 : FixedText aFtEffects;
42 : ListBox aLbEffect;
43 : FixedText aFtDirection;
44 : ImageButton aBtnUp;
45 : ImageButton aBtnLeft;
46 : ImageButton aBtnRight;
47 : ImageButton aBtnDown;
48 :
49 : FixedLine aFlProperties;
50 : TriStateBox aTsbStartInside;
51 : TriStateBox aTsbStopInside;
52 :
53 : FixedText aFtCount;
54 : TriStateBox aTsbEndless;
55 : NumericField aNumFldCount;
56 :
57 : FixedText aFtAmount;
58 : TriStateBox aTsbPixel;
59 : MetricField aMtrFldAmount;
60 :
61 : FixedText aFtDelay;
62 : TriStateBox aTsbAuto;
63 : MetricField aMtrFldDelay;
64 :
65 : const SfxItemSet& rOutAttrs;
66 : SdrTextAniKind eAniKind;
67 : FieldUnit eFUnit;
68 : SfxMapUnit eUnit;
69 :
70 : #ifdef _SVX_TEXTANIM_CXX
71 : DECL_LINK( SelectEffectHdl_Impl, void * );
72 : DECL_LINK( ClickEndlessHdl_Impl, void * );
73 : DECL_LINK( ClickAutoHdl_Impl, void * );
74 : DECL_LINK( ClickPixelHdl_Impl, void * );
75 : DECL_LINK( ClickDirectionHdl_Impl, ImageButton * );
76 :
77 : void SelectDirection( SdrTextAniDirection nValue );
78 : sal_uInt16 GetSelectedDirection();
79 : #endif
80 :
81 : public:
82 :
83 : SvxTextAnimationPage( Window* pWindow, const SfxItemSet& rInAttrs );
84 : ~SvxTextAnimationPage();
85 :
86 : static SfxTabPage* Create( Window*, const SfxItemSet& );
87 : static sal_uInt16* GetRanges();
88 :
89 : virtual sal_Bool FillItemSet( SfxItemSet& );
90 : virtual void Reset( const SfxItemSet & );
91 :
92 : void Construct();
93 : };
94 :
95 : /*************************************************************************
96 : |*
97 : |* Text-Tab-Dialog
98 : |*
99 : \************************************************************************/
100 : class SvxTextTabDialog : public SfxTabDialog
101 : {
102 : private:
103 : const SdrView* pView;
104 :
105 : virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage );
106 :
107 : public:
108 :
109 : SvxTextTabDialog( Window* pParent, const SfxItemSet* pAttr,
110 : const SdrView* pView );
111 0 : ~SvxTextTabDialog() {};
112 : };
113 :
114 :
115 : #endif // _SVX_TEXTANIM_HXX
116 :
117 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|