2010-10-27 12:45:03 +01:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2012-10-04 11:25:41 +01:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2013-10-28 03:46:16 +01:00
|
|
|
#ifndef INCLUDED_CUI_SOURCE_INC_TEXTANIM_HXX
|
|
|
|
#define INCLUDED_CUI_SOURCE_INC_TEXTANIM_HXX
|
2009-10-31 00:36:06 +01:00
|
|
|
|
|
|
|
#include <sfx2/tabdlg.hxx>
|
2019-05-01 22:12:48 +02:00
|
|
|
#include <svx/sdtakitm.hxx>
|
|
|
|
#include <svx/sdtaditm.hxx>
|
2018-11-28 09:48:54 +00:00
|
|
|
#include <vcl/weld.hxx>
|
2009-10-31 00:36:06 +01:00
|
|
|
|
|
|
|
class SdrView;
|
|
|
|
|
|
|
|
/*************************************************************************
|
|
|
|
|*
|
2012-04-15 17:50:21 +02:00
|
|
|
|* Page for changing TextAnimations (running text etc.)
|
2009-10-31 00:36:06 +01:00
|
|
|
|*
|
|
|
|
\************************************************************************/
|
|
|
|
|
|
|
|
class SvxTextAnimationPage : public SfxTabPage
|
|
|
|
{
|
|
|
|
private:
|
2015-03-09 14:29:30 +02:00
|
|
|
static const sal_uInt16 pRanges[];
|
2009-10-31 00:36:06 +01:00
|
|
|
|
|
|
|
const SfxItemSet& rOutAttrs;
|
|
|
|
SdrTextAniKind eAniKind;
|
|
|
|
FieldUnit eFUnit;
|
2016-08-19 09:31:35 +01:00
|
|
|
MapUnit eUnit;
|
2009-10-31 00:36:06 +01:00
|
|
|
|
2017-07-27 11:54:28 +01:00
|
|
|
TriState m_aUpState;
|
|
|
|
TriState m_aLeftState;
|
|
|
|
TriState m_aRightState;
|
|
|
|
TriState m_aDownState;
|
|
|
|
|
2018-09-14 15:07:17 +01:00
|
|
|
std::unique_ptr<weld::ComboBox> m_xLbEffect;
|
2018-05-02 09:23:43 +01:00
|
|
|
std::unique_ptr<weld::Widget> m_xBoxDirection;
|
|
|
|
std::unique_ptr<weld::ToggleButton> m_xBtnUp;
|
|
|
|
std::unique_ptr<weld::ToggleButton> m_xBtnLeft;
|
|
|
|
std::unique_ptr<weld::ToggleButton> m_xBtnRight;
|
|
|
|
std::unique_ptr<weld::ToggleButton> m_xBtnDown;
|
|
|
|
|
|
|
|
std::unique_ptr<weld::Frame> m_xFlProperties;
|
|
|
|
std::unique_ptr<weld::CheckButton> m_xTsbStartInside;
|
|
|
|
std::unique_ptr<weld::CheckButton> m_xTsbStopInside;
|
|
|
|
|
|
|
|
std::unique_ptr<weld::Widget> m_xBoxCount;
|
|
|
|
std::unique_ptr<weld::CheckButton> m_xTsbEndless;
|
|
|
|
std::unique_ptr<weld::SpinButton> m_xNumFldCount;
|
|
|
|
|
|
|
|
std::unique_ptr<weld::CheckButton> m_xTsbPixel;
|
|
|
|
std::unique_ptr<weld::MetricSpinButton> m_xMtrFldAmount;
|
|
|
|
|
|
|
|
std::unique_ptr<weld::CheckButton> m_xTsbAuto;
|
|
|
|
std::unique_ptr<weld::MetricSpinButton> m_xMtrFldDelay;
|
|
|
|
|
2018-09-14 15:07:17 +01:00
|
|
|
DECL_LINK( SelectEffectHdl_Impl, weld::ComboBox&, void );
|
2018-05-02 09:23:43 +01:00
|
|
|
DECL_LINK( ClickEndlessHdl_Impl, weld::Button&, void );
|
|
|
|
DECL_LINK( ClickAutoHdl_Impl, weld::Button&, void );
|
|
|
|
DECL_LINK( ClickPixelHdl_Impl, weld::Button&, void );
|
|
|
|
DECL_LINK( ClickDirectionHdl_Impl, weld::Button&, void );
|
|
|
|
|
|
|
|
void SelectDirection( SdrTextAniDirection nValue );
|
2019-09-04 16:07:56 +02:00
|
|
|
sal_uInt16 GetSelectedDirection() const;
|
2018-05-02 09:23:43 +01:00
|
|
|
|
2009-10-31 00:36:06 +01:00
|
|
|
public:
|
2019-09-24 14:10:48 +01:00
|
|
|
SvxTextAnimationPage(weld::Container* pPage, weld::DialogController* pController, const SfxItemSet& rInAttrs);
|
2016-09-13 13:09:01 +02:00
|
|
|
virtual ~SvxTextAnimationPage() override;
|
2009-10-31 00:36:06 +01:00
|
|
|
|
2019-09-24 14:10:48 +01:00
|
|
|
static std::unique_ptr<SfxTabPage> Create( weld::Container* pPage, weld::DialogController* pController, const SfxItemSet* );
|
2015-03-20 10:44:16 +02:00
|
|
|
static const sal_uInt16* GetRanges() { return pRanges; }
|
2009-10-31 00:36:06 +01:00
|
|
|
|
2015-10-12 16:04:04 +02:00
|
|
|
virtual bool FillItemSet( SfxItemSet* ) override;
|
|
|
|
virtual void Reset( const SfxItemSet * ) override;
|
2009-10-31 00:36:06 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
/*************************************************************************
|
|
|
|
|*
|
|
|
|
|* Text-Tab-Dialog
|
|
|
|
|*
|
|
|
|
\************************************************************************/
|
2018-05-03 10:24:52 +01:00
|
|
|
class SvxTextTabDialog : public SfxTabDialogController
|
2009-10-31 00:36:06 +01:00
|
|
|
{
|
|
|
|
private:
|
|
|
|
const SdrView* pView;
|
|
|
|
|
2018-05-03 10:24:52 +01:00
|
|
|
virtual void PageCreated(const OString& rId, SfxTabPage &rPage) override;
|
2009-10-31 00:36:06 +01:00
|
|
|
|
|
|
|
public:
|
2018-05-03 10:24:52 +01:00
|
|
|
SvxTextTabDialog(weld::Window* pParent, const SfxItemSet* pAttr, const SdrView* pView);
|
2009-10-31 00:36:06 +01:00
|
|
|
};
|
|
|
|
|
2013-10-28 03:46:16 +01:00
|
|
|
#endif // INCLUDED_CUI_SOURCE_INC_TEXTANIM_HXX
|
2009-10-31 00:36:06 +01:00
|
|
|
|
2010-10-27 12:45:03 +01:00
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|