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 
43 
48 
49  std::unique_ptr<weld::ComboBox> m_xLbEffect;
50  std::unique_ptr<weld::Widget> m_xBoxDirection;
51  std::unique_ptr<weld::ToggleButton> m_xBtnUp;
52  std::unique_ptr<weld::ToggleButton> m_xBtnLeft;
53  std::unique_ptr<weld::ToggleButton> m_xBtnRight;
54  std::unique_ptr<weld::ToggleButton> m_xBtnDown;
55 
56  std::unique_ptr<weld::Frame> m_xFlProperties;
57  std::unique_ptr<weld::CheckButton> m_xTsbStartInside;
58  std::unique_ptr<weld::CheckButton> m_xTsbStopInside;
59 
60  std::unique_ptr<weld::Widget> m_xBoxCount;
61  std::unique_ptr<weld::CheckButton> m_xTsbEndless;
62  std::unique_ptr<weld::SpinButton> m_xNumFldCount;
63 
64  std::unique_ptr<weld::CheckButton> m_xTsbPixel;
65  std::unique_ptr<weld::MetricSpinButton> m_xMtrFldAmount;
66 
67  std::unique_ptr<weld::CheckButton> m_xTsbAuto;
68  std::unique_ptr<weld::MetricSpinButton> m_xMtrFldDelay;
69 
70  DECL_LINK( SelectEffectHdl_Impl, weld::ComboBox&, void );
71  DECL_LINK( ClickEndlessHdl_Impl, weld::Button&, void );
72  DECL_LINK( ClickAutoHdl_Impl, weld::Button&, void );
73  DECL_LINK( ClickPixelHdl_Impl, weld::Button&, void );
74  DECL_LINK( ClickDirectionHdl_Impl, weld::Button&, void );
75 
76  void SelectDirection( SdrTextAniDirection nValue );
77  sal_uInt16 GetSelectedDirection() const;
78 
79 public:
80  SvxTextAnimationPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
81  virtual ~SvxTextAnimationPage() override;
82 
83  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
84  static const sal_uInt16* GetRanges() { return pRanges; }
85 
86  virtual bool FillItemSet( SfxItemSet* ) override;
87  virtual void Reset( const SfxItemSet * ) override;
88 };
89 
90 /*************************************************************************
91 |*
92 |* Text-Tab-Dialog
93 |*
94 \************************************************************************/
96 {
97 private:
98  const SdrView* pView;
99 
100  virtual void PageCreated(const OString& rId, SfxTabPage &rPage) override;
101 
102 public:
103  SvxTextTabDialog(weld::Window* pParent, const SfxItemSet* pAttr, const SdrView* pView);
104 };
105 
106 #endif // INCLUDED_CUI_SOURCE_INC_TEXTANIM_HXX
107 
108 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
FieldUnit
std::unique_ptr< weld::Widget > m_xBoxDirection
Definition: textanim.hxx:50
virtual ~SvxTextAnimationPage() override
Definition: textanim.cxx:127
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: textanim.cxx:380
std::unique_ptr< weld::CheckButton > m_xTsbPixel
Definition: textanim.hxx:64
std::unique_ptr< weld::ComboBox > m_xLbEffect
Definition: textanim.hxx:49
std::unique_ptr< weld::Widget > m_xBoxCount
Definition: textanim.hxx:60
static const sal_uInt16 pRanges[]
Definition: textanim.hxx:38
SdrTextAniKind eAniKind
Definition: textanim.hxx:40
std::unique_ptr< weld::SpinButton > m_xNumFldCount
Definition: textanim.hxx:62
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:56
std::unique_ptr< weld::ToggleButton > m_xBtnRight
Definition: textanim.hxx:53
const SdrView * pView
Definition: textanim.hxx:98
void SelectDirection(SdrTextAniDirection nValue)
Definition: textanim.cxx:512
TriState m_aLeftState
Definition: textanim.hxx:45
static const sal_uInt16 * GetRanges()
Definition: textanim.hxx:84
virtual void Reset(const SfxItemSet *) override
Definition: textanim.cxx:137
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldAmount
Definition: textanim.hxx:65
SvxTextAnimationPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: textanim.cxx:86
TriState m_aRightState
Definition: textanim.hxx:46
SvxTextTabDialog(weld::Window *pParent, const SfxItemSet *pAttr, const SdrView *pView)
Definition: textanim.cxx:44
std::unique_ptr< weld::CheckButton > m_xTsbStopInside
Definition: textanim.hxx:58
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldDelay
Definition: textanim.hxx:68
sal_uInt16 GetSelectedDirection() const
Definition: textanim.cxx:520
std::unique_ptr< weld::ToggleButton > m_xBtnUp
Definition: textanim.hxx:51
std::unique_ptr< weld::CheckButton > m_xTsbEndless
Definition: textanim.hxx:61
TriState m_aDownState
Definition: textanim.hxx:47
std::unique_ptr< weld::ToggleButton > m_xBtnDown
Definition: textanim.hxx:54
std::unique_ptr< weld::ToggleButton > m_xBtnLeft
Definition: textanim.hxx:52
SdrTextAniDirection
std::unique_ptr< weld::CheckButton > m_xTsbStartInside
Definition: textanim.hxx:57
MapUnit
TriState
DECL_LINK(SelectEffectHdl_Impl, weld::ComboBox &, void)
std::unique_ptr< weld::CheckButton > m_xTsbAuto
Definition: textanim.hxx:67