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 INCLUDED_CUI_SOURCE_INC_TEXTANIM_HXX
20 : #define INCLUDED_CUI_SOURCE_INC_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 : ListBox* m_pLbEffect;
41 : VclBox* m_pBoxDirection;
42 : PushButton* m_pBtnUp;
43 : PushButton* m_pBtnLeft;
44 : PushButton* m_pBtnRight;
45 : PushButton* m_pBtnDown;
46 :
47 : VclFrame* m_pFlProperties;
48 : TriStateBox* m_pTsbStartInside;
49 : TriStateBox* m_pTsbStopInside;
50 :
51 : VclBox* m_pBoxCount;
52 : TriStateBox* m_pTsbEndless;
53 : NumericField* m_pNumFldCount;
54 :
55 : TriStateBox* m_pTsbPixel;
56 : MetricField* m_pMtrFldAmount;
57 :
58 : TriStateBox* m_pTsbAuto;
59 : MetricField* m_pMtrFldDelay;
60 :
61 : const SfxItemSet& rOutAttrs;
62 : SdrTextAniKind eAniKind;
63 : FieldUnit eFUnit;
64 : SfxMapUnit eUnit;
65 :
66 : DECL_LINK( SelectEffectHdl_Impl, void * );
67 : DECL_LINK( ClickEndlessHdl_Impl, void * );
68 : DECL_LINK( ClickAutoHdl_Impl, void * );
69 : DECL_LINK( ClickPixelHdl_Impl, void * );
70 : DECL_LINK( ClickDirectionHdl_Impl, ImageButton * );
71 :
72 : void SelectDirection( SdrTextAniDirection nValue );
73 : sal_uInt16 GetSelectedDirection();
74 :
75 : public:
76 : SvxTextAnimationPage( Window* pWindow, const SfxItemSet& rInAttrs );
77 : virtual ~SvxTextAnimationPage();
78 :
79 : static SfxTabPage* Create( Window*, const SfxItemSet& );
80 : static sal_uInt16* GetRanges();
81 :
82 : virtual bool FillItemSet( SfxItemSet& ) SAL_OVERRIDE;
83 : virtual void Reset( const SfxItemSet & ) SAL_OVERRIDE;
84 :
85 : void Construct();
86 : };
87 :
88 : /*************************************************************************
89 : |*
90 : |* Text-Tab-Dialog
91 : |*
92 : \************************************************************************/
93 : class SvxTextTabDialog : public SfxTabDialog
94 : {
95 : sal_uInt16 m_nTextId;
96 : sal_uInt16 m_nTextAnimId;
97 : private:
98 : const SdrView* pView;
99 :
100 : virtual void PageCreated( sal_uInt16 nId, SfxTabPage &rPage ) SAL_OVERRIDE;
101 :
102 : public:
103 :
104 : SvxTextTabDialog( Window* pParent, const SfxItemSet* pAttr,
105 : const SdrView* pView );
106 0 : virtual ~SvxTextTabDialog() {};
107 : };
108 :
109 :
110 : #endif // INCLUDED_CUI_SOURCE_INC_TEXTANIM_HXX
111 :
112 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|