Bump version to 6.4.7.2.M8
[LibreOffice.git] / cui / source / inc / textanim.hxx
blob4b22395f7910e1bf993776304a2d6d9af5765df3
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
19 #ifndef INCLUDED_CUI_SOURCE_INC_TEXTANIM_HXX
20 #define INCLUDED_CUI_SOURCE_INC_TEXTANIM_HXX
22 #include <sfx2/tabdlg.hxx>
23 #include <svx/sdtakitm.hxx>
24 #include <svx/sdtaditm.hxx>
25 #include <vcl/weld.hxx>
27 class SdrView;
29 /*************************************************************************
31 |* Page for changing TextAnimations (running text etc.)
33 \************************************************************************/
35 class SvxTextAnimationPage : public SfxTabPage
37 private:
38 static const sal_uInt16 pRanges[];
40 const SfxItemSet& rOutAttrs;
41 SdrTextAniKind eAniKind;
42 FieldUnit eFUnit;
43 MapUnit eUnit;
45 TriState m_aUpState;
46 TriState m_aLeftState;
47 TriState m_aRightState;
48 TriState m_aDownState;
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;
57 std::unique_ptr<weld::Frame> m_xFlProperties;
58 std::unique_ptr<weld::CheckButton> m_xTsbStartInside;
59 std::unique_ptr<weld::CheckButton> m_xTsbStopInside;
61 std::unique_ptr<weld::Widget> m_xBoxCount;
62 std::unique_ptr<weld::CheckButton> m_xTsbEndless;
63 std::unique_ptr<weld::SpinButton> m_xNumFldCount;
65 std::unique_ptr<weld::CheckButton> m_xTsbPixel;
66 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldAmount;
68 std::unique_ptr<weld::CheckButton> m_xTsbAuto;
69 std::unique_ptr<weld::MetricSpinButton> m_xMtrFldDelay;
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 );
77 void SelectDirection( SdrTextAniDirection nValue );
78 sal_uInt16 GetSelectedDirection() const;
80 public:
81 SvxTextAnimationPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
82 virtual ~SvxTextAnimationPage() override;
84 static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
85 static const sal_uInt16* GetRanges() { return pRanges; }
87 virtual bool FillItemSet( SfxItemSet* ) override;
88 virtual void Reset( const SfxItemSet * ) override;
91 /*************************************************************************
93 |* Text-Tab-Dialog
95 \************************************************************************/
96 class SvxTextTabDialog : public SfxTabDialogController
98 private:
99 const SdrView* pView;
101 virtual void PageCreated(const OString& rId, SfxTabPage &rPage) override;
103 public:
104 SvxTextTabDialog(weld::Window* pParent, const SfxItemSet* pAttr, const SdrView* pView);
107 #endif // INCLUDED_CUI_SOURCE_INC_TEXTANIM_HXX
109 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */