2004-11-26 12:54:26 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-08 21:34:12 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-11-26 12:54:26 -06:00
|
|
|
*
|
2005-09-08 21:34:12 -05:00
|
|
|
* $RCSfile: CustomAnimationDialog.hxx,v $
|
2004-11-26 12:54:26 -06:00
|
|
|
*
|
2008-04-02 03:44:26 -05:00
|
|
|
* $Revision: 1.7 $
|
2004-11-26 12:54:26 -06:00
|
|
|
*
|
2008-04-02 03:44:26 -05:00
|
|
|
* last change: $Author: kz $ $Date: 2008-04-02 09:44:26 $
|
2004-11-26 12:54:26 -06:00
|
|
|
*
|
2005-09-08 21:34:12 -05:00
|
|
|
* The Contents of this file are made available subject to
|
|
|
|
* the terms of GNU Lesser General Public License Version 2.1.
|
2004-11-26 12:54:26 -06:00
|
|
|
*
|
|
|
|
*
|
2005-09-08 21:34:12 -05:00
|
|
|
* GNU Lesser General Public License Version 2.1
|
|
|
|
* =============================================
|
|
|
|
* Copyright 2005 by Sun Microsystems, Inc.
|
|
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
2004-11-26 12:54:26 -06:00
|
|
|
*
|
2005-09-08 21:34:12 -05:00
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License version 2.1, as published by the Free Software Foundation.
|
2004-11-26 12:54:26 -06:00
|
|
|
*
|
2005-09-08 21:34:12 -05:00
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
2004-11-26 12:54:26 -06:00
|
|
|
*
|
2005-09-08 21:34:12 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
|
|
|
|
* MA 02111-1307 USA
|
2004-11-26 12:54:26 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _SD_CUSTOMANIMATIONDIALOG_HXX
|
|
|
|
#define _SD_CUSTOMANIMATIONDIALOG_HXX
|
|
|
|
|
|
|
|
#ifndef _SD_CUSTOMANIMATIONEFFECT_HXX
|
|
|
|
#include "CustomAnimationEffect.hxx"
|
|
|
|
#endif
|
|
|
|
#ifndef _SD_CUSTOMANIMATIONPRESET_HXX
|
|
|
|
#include "CustomAnimationPreset.hxx"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SV_TABDLG_HXX
|
|
|
|
#include <vcl/tabdlg.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SV_LSTBOX_HXX
|
|
|
|
#include <vcl/lstbox.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
class TabControl;
|
|
|
|
class OKButton;
|
|
|
|
class CancelButton;
|
|
|
|
class HelpButton;
|
|
|
|
namespace sd {
|
|
|
|
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
|
|
|
|
// property handles
|
|
|
|
const sal_Int32 nHandleSound = 0;
|
|
|
|
const sal_Int32 nHandleHasAfterEffect = 1;
|
|
|
|
const sal_Int32 nHandleIterateType = 2;
|
|
|
|
const sal_Int32 nHandleIterateInterval = 3;
|
|
|
|
const sal_Int32 nHandleStart = 4;
|
|
|
|
const sal_Int32 nHandleBegin = 5;
|
|
|
|
const sal_Int32 nHandleDuration = 6;
|
|
|
|
const sal_Int32 nHandleRepeat = 7;
|
|
|
|
const sal_Int32 nHandleRewind = 8;
|
|
|
|
const sal_Int32 nHandleEnd = 9;
|
2005-09-23 04:45:20 -05:00
|
|
|
const sal_Int32 nHandleAfterEffectOnNextEffect = 10;
|
2004-11-26 12:54:26 -06:00
|
|
|
const sal_Int32 nHandleDimColor = 11;
|
|
|
|
const sal_Int32 nHandleMaxParaDepth = 12;
|
|
|
|
const sal_Int32 nHandlePresetId = 13;
|
|
|
|
const sal_Int32 nHandleProperty1Type = 14;
|
|
|
|
const sal_Int32 nHandleProperty1Value = 15;
|
|
|
|
const sal_Int32 nHandleProperty2Type = 16;
|
|
|
|
const sal_Int32 nHandleProperty2Value = 17;
|
|
|
|
|
|
|
|
const sal_Int32 nHandleAccelerate = 18;
|
|
|
|
const sal_Int32 nHandleDecelerate = 19;
|
|
|
|
const sal_Int32 nHandleAutoReverse = 20;
|
|
|
|
const sal_Int32 nHandleTrigger = 21;
|
|
|
|
|
|
|
|
const sal_Int32 nHandleHasText = 22;
|
|
|
|
const sal_Int32 nHandleTextGrouping = 23;
|
|
|
|
const sal_Int32 nHandleAnimateForm = 24;
|
|
|
|
const sal_Int32 nHandleTextGroupingAuto = 25;
|
|
|
|
const sal_Int32 nHandleTextReverse = 26;
|
|
|
|
|
|
|
|
const sal_Int32 nHandleCurrentPage = 27;
|
|
|
|
const sal_Int32 nHandleSoundURL = 28;
|
|
|
|
const sal_Int32 nHandleSoundVolumne = 29;
|
|
|
|
const sal_Int32 nHandleSoundEndAfterSlide = 30;
|
|
|
|
|
|
|
|
const sal_Int32 nHandleCommand = 31;
|
|
|
|
|
2008-04-02 03:44:26 -05:00
|
|
|
const sal_Int32 nHandleHasVisibleShape = 32;
|
|
|
|
|
2004-11-26 12:54:26 -06:00
|
|
|
const sal_Int32 nPropertyTypeNone = 0;
|
|
|
|
const sal_Int32 nPropertyTypeDirection = 1;
|
|
|
|
const sal_Int32 nPropertyTypeSpokes = 2;
|
|
|
|
const sal_Int32 nPropertyTypeFirstColor = 3;
|
|
|
|
const sal_Int32 nPropertyTypeSecondColor = 4;
|
|
|
|
const sal_Int32 nPropertyTypeZoom = 5;
|
|
|
|
const sal_Int32 nPropertyTypeFillColor = 6;
|
|
|
|
const sal_Int32 nPropertyTypeColorStyle = 7;
|
|
|
|
const sal_Int32 nPropertyTypeFont = 8;
|
|
|
|
const sal_Int32 nPropertyTypeCharHeight = 9;
|
|
|
|
const sal_Int32 nPropertyTypeCharColor = 10;
|
|
|
|
const sal_Int32 nPropertyTypeCharHeightStyle = 11;
|
|
|
|
const sal_Int32 nPropertyTypeCharDecoration = 12;
|
|
|
|
const sal_Int32 nPropertyTypeLineColor = 13;
|
|
|
|
const sal_Int32 nPropertyTypeRotate = 14;
|
|
|
|
const sal_Int32 nPropertyTypeColor = 15;
|
|
|
|
const sal_Int32 nPropertyTypeAccelerate = 16;
|
|
|
|
const sal_Int32 nPropertyTypeDecelerate = 17;
|
|
|
|
const sal_Int32 nPropertyTypeAutoReverse = 18;
|
|
|
|
const sal_Int32 nPropertyTypeTransparency = 19;
|
|
|
|
const sal_Int32 nPropertyTypeFontStyle = 20;
|
|
|
|
const sal_Int32 nPropertyTypeScale = 21;
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
|
|
|
|
class PropertySubControl
|
|
|
|
{
|
|
|
|
public:
|
2005-11-17 09:11:07 -06:00
|
|
|
PropertySubControl( sal_Int32 nType ) : mnType( nType ) {}
|
|
|
|
virtual ~PropertySubControl();
|
|
|
|
|
2004-11-26 12:54:26 -06:00
|
|
|
virtual ::com::sun::star::uno::Any getValue() = 0;
|
2005-11-17 09:11:07 -06:00
|
|
|
virtual void setValue( const ::com::sun::star::uno::Any& rValue, const rtl::OUString& rPresetId ) = 0;
|
|
|
|
|
2004-11-26 12:54:26 -06:00
|
|
|
virtual Control* getControl() = 0;
|
|
|
|
|
|
|
|
static PropertySubControl*
|
|
|
|
create( sal_Int32 nType,
|
|
|
|
::Window* pParent,
|
|
|
|
const ::com::sun::star::uno::Any& rValue,
|
|
|
|
const rtl::OUString& rPresetId,
|
|
|
|
const Link& rModifyHdl );
|
|
|
|
|
2005-11-17 09:11:07 -06:00
|
|
|
sal_Int32 getControlType() const { return mnType; }
|
|
|
|
|
|
|
|
protected:
|
|
|
|
sal_Int32 mnType;
|
2004-11-26 12:54:26 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
|
|
|
|
class PropertyControl : public ListBox
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
PropertyControl( Window* pParent, const ResId& rResId );
|
|
|
|
~PropertyControl();
|
|
|
|
|
|
|
|
void setSubControl( PropertySubControl* pSubControl );
|
|
|
|
PropertySubControl* getSubControl() const { return mpSubControl; }
|
|
|
|
|
|
|
|
virtual void Resize();
|
|
|
|
|
|
|
|
private:
|
|
|
|
PropertySubControl* mpSubControl;
|
|
|
|
};
|
|
|
|
|
|
|
|
// --------------------------------------------------------------------
|
|
|
|
|
|
|
|
class CustomAnimationDurationTabPage;
|
|
|
|
class CustomAnimationEffectTabPage;
|
|
|
|
class CustomAnimationTextAnimTabPage;
|
|
|
|
class STLPropertySet;
|
|
|
|
|
|
|
|
class CustomAnimationDialog : public TabDialog
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CustomAnimationDialog( Window* pParent, STLPropertySet* pSet, USHORT nPage = 0 );
|
|
|
|
~CustomAnimationDialog();
|
|
|
|
|
|
|
|
STLPropertySet* getDefaultSet() { return mpSet; }
|
|
|
|
STLPropertySet* getResultSet();
|
|
|
|
|
|
|
|
static STLPropertySet* createDefaultSet();
|
|
|
|
|
|
|
|
private:
|
|
|
|
STLPropertySet* mpSet;
|
|
|
|
STLPropertySet* mpResultSet;
|
|
|
|
|
|
|
|
CustomAnimationEffectPtr mpEffect;
|
|
|
|
TabControl* mpTabControl;
|
|
|
|
OKButton* mpOKButton;
|
|
|
|
CancelButton* mpCancelButton;
|
|
|
|
HelpButton* mpHelpButton;
|
|
|
|
|
|
|
|
CustomAnimationDurationTabPage* mpDurationTabPage;
|
|
|
|
CustomAnimationEffectTabPage* mpEffectTabPage;
|
|
|
|
CustomAnimationTextAnimTabPage* mpTextAnimTabPage;
|
|
|
|
};
|
|
|
|
|
2006-12-12 09:51:07 -06:00
|
|
|
}
|
2004-11-26 12:54:26 -06:00
|
|
|
|
|
|
|
#endif // _SD_CUSTOMANIMATIONDIALOG_HXX
|