LibreOffice Module cui (master)  1
textanim.hxx
Go to the documentation of this file.
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 <sfx2/tabdlg.hxx>
23 #include <svx/sdtakitm.hxx>
24 #include <svx/sdtaditm.hxx>
25 #include <vcl/weld.hxx>
26 
27 class SdrView;
28 
29 /*************************************************************************
30 |*
31 |* Page for changing TextAnimations (running text etc.)
32 |*
33 \************************************************************************/
34 
36 {
37 private:
38  static const sal_uInt16 pRanges[];
39 
44 
49 
50  std::unique_ptr<weld::ComboBox> m_xLbEffect;
51  std::unique_ptr<weld::Widget> m_xBoxDirection;
52  std::unique_ptr<weld::ToggleButton> m_xBtnUp;
53  std::unique_ptr<weld::ToggleButton> m_xBtnLeft;
54  std::unique_ptr<weld::ToggleButton> m_xBtnRight;
55  std::unique_ptr<weld::ToggleButton> m_xBtnDown;
56 
57  std::unique_ptr<weld::Frame> m_xFlProperties;
58  std::unique_ptr<weld::CheckButton> m_xTsbStartInside;
59  std::unique_ptr<weld::CheckButton> m_xTsbStopInside;
60 
61  std::unique_ptr<weld::Widget> m_xBoxCount;
62  std::unique_ptr<weld::CheckButton> m_xTsbEndless;
63  std::unique_ptr<weld::SpinButton> m_xNumFldCount;
64 
65  std::unique_ptr<weld::CheckButton> m_xTsbPixel;
66  std::unique_ptr<weld::MetricSpinButton> m_xMtrFldAmount;
67 
68  std::unique_ptr<weld::CheckButton> m_xTsbAuto;
69  std::unique_ptr<weld::MetricSpinButton> m_xMtrFldDelay;
70 
71  DECL_LINK( SelectEffectHdl_Impl, weld::ComboBox&, void );
72  DECL_LINK( ClickEndlessHdl_Impl, weld::Button&, void );
73  DECL_LINK( ClickAutoHdl_Impl, weld::Button&, void );
74  DECL_LINK( ClickPixelHdl_Impl, weld::Button&, void );
75  DECL_LINK( ClickDirectionHdl_Impl, weld::Button&, void );
76 
77  void SelectDirection( SdrTextAniDirection nValue );
78  sal_uInt16 GetSelectedDirection() const;
79 
80 public:
81  SvxTextAnimationPage(TabPageParent pPage, const SfxItemSet& rInAttrs);
82  virtual ~SvxTextAnimationPage() override;
83 
85  static const sal_uInt16* GetRanges() { return pRanges; }
86 
87  virtual bool FillItemSet( SfxItemSet* ) override;
88  virtual void Reset( const SfxItemSet * ) override;
89 };
90 
91 /*************************************************************************
92 |*
93 |* Text-Tab-Dialog
94 |*
95 \************************************************************************/
97 {
98 private:
99  const SdrView* pView;
100 
101  virtual void PageCreated(const OString& rId, SfxTabPage &rPage) override;
102 
103 public:
104  SvxTextTabDialog(weld::Window* pParent, const SfxItemSet* pAttr, const SdrView* pView);
105 };
106 
107 #endif // INCLUDED_CUI_SOURCE_INC_TEXTANIM_HXX
108 
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
FieldUnit
std::unique_ptr< weld::Widget > m_xBoxDirection
Definition: textanim.hxx:51
virtual ~SvxTextAnimationPage() override
Definition: textanim.cxx:127
std::unique_ptr< weld::CheckButton > m_xTsbPixel
Definition: textanim.hxx:65
std::unique_ptr< weld::ComboBox > m_xLbEffect
Definition: textanim.hxx:50
std::unique_ptr< weld::Widget > m_xBoxCount
Definition: textanim.hxx:61
static VclPtr< SfxTabPage > Create(TabPageParent, const SfxItemSet *)
Definition: textanim.cxx:380
static const sal_uInt16 pRanges[]
Definition: textanim.hxx:38
SdrTextAniKind eAniKind
Definition: textanim.hxx:41
std::unique_ptr< weld::SpinButton > m_xNumFldCount
Definition: textanim.hxx:63
virtual void PageCreated(const OString &rId, SfxTabPage &rPage) override
Definition: textanim.cxx:58
SdrTextAniKind
virtual bool FillItemSet(SfxItemSet *) override
Definition: textanim.cxx:270
std::unique_ptr< weld::Frame > m_xFlProperties
Definition: textanim.hxx:57
std::unique_ptr< weld::ToggleButton > m_xBtnRight
Definition: textanim.hxx:54
const SdrView * pView
Definition: textanim.hxx:99
void SelectDirection(SdrTextAniDirection nValue)
Definition: textanim.cxx:512
TriState m_aLeftState
Definition: textanim.hxx:46
static const sal_uInt16 * GetRanges()
Definition: textanim.hxx:85
virtual void Reset(const SfxItemSet *) override
Definition: textanim.cxx:137
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldAmount
Definition: textanim.hxx:66
TriState m_aRightState
Definition: textanim.hxx:47
SvxTextTabDialog(weld::Window *pParent, const SfxItemSet *pAttr, const SdrView *pView)
Definition: textanim.cxx:44
std::unique_ptr< weld::CheckButton > m_xTsbStopInside
Definition: textanim.hxx:59
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldDelay
Definition: textanim.hxx:69
sal_uInt16 GetSelectedDirection() const
Definition: textanim.cxx:520
std::unique_ptr< weld::ToggleButton > m_xBtnUp
Definition: textanim.hxx:52
std::unique_ptr< weld::CheckButton > m_xTsbEndless
Definition: textanim.hxx:62
TriState m_aDownState
Definition: textanim.hxx:48
std::unique_ptr< weld::ToggleButton > m_xBtnDown
Definition: textanim.hxx:55
SvxTextAnimationPage(TabPageParent pPage, const SfxItemSet &rInAttrs)
Definition: textanim.cxx:85
const SfxItemSet & rOutAttrs
Definition: textanim.hxx:40
std::unique_ptr< weld::ToggleButton > m_xBtnLeft
Definition: textanim.hxx:53
SdrTextAniDirection
std::unique_ptr< weld::CheckButton > m_xTsbStartInside
Definition: textanim.hxx:58
MapUnit
TriState
DECL_LINK(SelectEffectHdl_Impl, weld::ComboBox &, void)
std::unique_ptr< weld::CheckButton > m_xTsbAuto
Definition: textanim.hxx:68