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 #pragma once
20 
21 #include <sfx2/tabdlg.hxx>
22 #include <svx/sdtakitm.hxx>
23 #include <svx/sdtaditm.hxx>
24 #include <vcl/weld.hxx>
25 
26 class SdrView;
27 
28 /*************************************************************************
29 |*
30 |* Page for changing TextAnimations (running text etc.)
31 |*
32 \************************************************************************/
33 
35 {
36 private:
38 
42 
47 
48  std::unique_ptr<weld::ComboBox> m_xLbEffect;
49  std::unique_ptr<weld::Widget> m_xBoxDirection;
50  std::unique_ptr<weld::ToggleButton> m_xBtnUp;
51  std::unique_ptr<weld::ToggleButton> m_xBtnLeft;
52  std::unique_ptr<weld::ToggleButton> m_xBtnRight;
53  std::unique_ptr<weld::ToggleButton> m_xBtnDown;
54 
55  std::unique_ptr<weld::Frame> m_xFlProperties;
56  std::unique_ptr<weld::CheckButton> m_xTsbStartInside;
57  std::unique_ptr<weld::CheckButton> m_xTsbStopInside;
58 
59  std::unique_ptr<weld::Widget> m_xBoxCount;
60  std::unique_ptr<weld::CheckButton> m_xTsbEndless;
61  std::unique_ptr<weld::SpinButton> m_xNumFldCount;
62 
63  std::unique_ptr<weld::CheckButton> m_xTsbPixel;
64  std::unique_ptr<weld::MetricSpinButton> m_xMtrFldAmount;
65 
66  std::unique_ptr<weld::CheckButton> m_xTsbAuto;
67  std::unique_ptr<weld::MetricSpinButton> m_xMtrFldDelay;
68 
69  DECL_LINK( SelectEffectHdl_Impl, weld::ComboBox&, void );
70  DECL_LINK( ClickEndlessHdl_Impl, weld::Toggleable&, void );
71  DECL_LINK( ClickAutoHdl_Impl, weld::Toggleable&, void );
72  DECL_LINK( ClickPixelHdl_Impl, weld::Toggleable&, void );
73  DECL_LINK( ClickDirectionHdl_Impl, weld::Button&, void );
74 
75  void SelectDirection( SdrTextAniDirection nValue );
76  sal_uInt16 GetSelectedDirection() const;
77 
78 public:
79  SvxTextAnimationPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
80  virtual ~SvxTextAnimationPage() override;
81 
82  static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
83  static WhichRangesContainer GetRanges() { return pRanges; }
84 
85  virtual bool FillItemSet( SfxItemSet* ) override;
86  virtual void Reset( const SfxItemSet * ) override;
87 };
88 
89 /*************************************************************************
90 |*
91 |* Text-Tab-Dialog
92 |*
93 \************************************************************************/
95 {
96 private:
97  const SdrView* pView;
98 
99  virtual void PageCreated(const OString& rId, SfxTabPage &rPage) override;
100 
101 public:
102  SvxTextTabDialog(weld::Window* pParent, const SfxItemSet* pAttr, const SdrView* pView);
103 };
104 
105 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
FieldUnit
std::unique_ptr< weld::Widget > m_xBoxDirection
Definition: textanim.hxx:49
virtual ~SvxTextAnimationPage() override
Definition: textanim.cxx:125
static std::unique_ptr< SfxTabPage > Create(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet *)
Definition: textanim.cxx:378
std::unique_ptr< weld::CheckButton > m_xTsbPixel
Definition: textanim.hxx:63
static const WhichRangesContainer pRanges
Definition: textanim.hxx:37
std::unique_ptr< weld::ComboBox > m_xLbEffect
Definition: textanim.hxx:48
std::unique_ptr< weld::Widget > m_xBoxCount
Definition: textanim.hxx:59
SdrTextAniKind eAniKind
Definition: textanim.hxx:39
std::unique_ptr< weld::SpinButton > m_xNumFldCount
Definition: textanim.hxx:61
virtual void PageCreated(const OString &rId, SfxTabPage &rPage) override
Definition: textanim.cxx:56
SdrTextAniKind
virtual bool FillItemSet(SfxItemSet *) override
Definition: textanim.cxx:268
std::unique_ptr< weld::Frame > m_xFlProperties
Definition: textanim.hxx:55
std::unique_ptr< weld::ToggleButton > m_xBtnRight
Definition: textanim.hxx:52
const SdrView * pView
Definition: textanim.hxx:97
void SelectDirection(SdrTextAniDirection nValue)
Definition: textanim.cxx:509
TriState m_aLeftState
Definition: textanim.hxx:44
virtual void Reset(const SfxItemSet *) override
Definition: textanim.cxx:135
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldAmount
Definition: textanim.hxx:64
SvxTextAnimationPage(weld::Container *pPage, weld::DialogController *pController, const SfxItemSet &rInAttrs)
Definition: textanim.cxx:84
TriState m_aRightState
Definition: textanim.hxx:45
SvxTextTabDialog(weld::Window *pParent, const SfxItemSet *pAttr, const SdrView *pView)
Definition: textanim.cxx:41
static WhichRangesContainer GetRanges()
Definition: textanim.hxx:83
std::unique_ptr< weld::CheckButton > m_xTsbStopInside
Definition: textanim.hxx:57
std::unique_ptr< weld::MetricSpinButton > m_xMtrFldDelay
Definition: textanim.hxx:67
sal_uInt16 GetSelectedDirection() const
Definition: textanim.cxx:517
std::unique_ptr< weld::ToggleButton > m_xBtnUp
Definition: textanim.hxx:50
std::unique_ptr< weld::CheckButton > m_xTsbEndless
Definition: textanim.hxx:60
TriState m_aDownState
Definition: textanim.hxx:46
std::unique_ptr< weld::ToggleButton > m_xBtnDown
Definition: textanim.hxx:53
std::unique_ptr< weld::ToggleButton > m_xBtnLeft
Definition: textanim.hxx:51
SdrTextAniDirection
std::unique_ptr< weld::CheckButton > m_xTsbStartInside
Definition: textanim.hxx:56
MapUnit
TriState
DECL_LINK(SelectEffectHdl_Impl, weld::ComboBox &, void)
std::unique_ptr< weld::CheckButton > m_xTsbAuto
Definition: textanim.hxx:66