2000-09-18 11:07:07 -05:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
|
|
|
* $RCSfile: diactrl.hxx,v $
|
|
|
|
*
|
2004-07-06 06:25:52 -05:00
|
|
|
* $Revision: 1.4 $
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
2004-07-06 06:25:52 -05:00
|
|
|
* last change: $Author: obo $ $Date: 2004-07-06 12:25:52 $
|
2000-09-18 11:07:07 -05:00
|
|
|
*
|
|
|
|
* The Contents of this file are made available subject to the terms of
|
|
|
|
* either of the following licenses
|
|
|
|
*
|
|
|
|
* - GNU Lesser General Public License Version 2.1
|
|
|
|
* - Sun Industry Standards Source License Version 1.1
|
|
|
|
*
|
|
|
|
* Sun Microsystems Inc., October, 2000
|
|
|
|
*
|
|
|
|
* GNU Lesser General Public License Version 2.1
|
|
|
|
* =============================================
|
|
|
|
* Copyright 2000 by Sun Microsystems, Inc.
|
|
|
|
* 901 San Antonio Road, Palo Alto, CA 94303, USA
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* 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.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* Sun Industry Standards Source License Version 1.1
|
|
|
|
* =================================================
|
|
|
|
* The contents of this file are subject to the Sun Industry Standards
|
|
|
|
* Source License Version 1.1 (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.openoffice.org/license.html.
|
|
|
|
*
|
|
|
|
* Software provided under this License is provided on an "AS IS" basis,
|
|
|
|
* WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING,
|
|
|
|
* WITHOUT LIMITATION, WARRANTIES THAT THE SOFTWARE IS FREE OF DEFECTS,
|
|
|
|
* MERCHANTABLE, FIT FOR A PARTICULAR PURPOSE, OR NON-INFRINGING.
|
|
|
|
* See the License for the specific provisions governing your rights and
|
|
|
|
* obligations concerning the Software.
|
|
|
|
*
|
|
|
|
* The Initial Developer of the Original Code is: Sun Microsystems, Inc.
|
|
|
|
*
|
|
|
|
* Copyright: 2000 by Sun Microsystems, Inc.
|
|
|
|
*
|
|
|
|
* All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Contributor(s): _______________________________________
|
|
|
|
*
|
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _SD_DIACTRL_HXX
|
|
|
|
#define _SD_DIACTRL_HXX
|
|
|
|
|
|
|
|
#pragma hdrstop
|
|
|
|
|
|
|
|
#ifndef SD_DLGCTRLS_HXX
|
|
|
|
#include "dlgctrls.hxx"
|
|
|
|
#endif
|
|
|
|
#ifndef _SFXINTITEM_HXX //autogen
|
|
|
|
#include <svtools/intitem.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SFX_BINDINGS_HXX
|
|
|
|
#include <sfx2/bindings.hxx>
|
|
|
|
#endif
|
|
|
|
#ifndef _SVX_ITEMWIN_HXX //autogen
|
|
|
|
#include <svx/itemwin.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SV_FIXED_HXX //autogen
|
|
|
|
#include <vcl/fixed.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SV_FIELD_HXX //autogen
|
|
|
|
#include <vcl/field.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SV_TOOLBOX_HXX //autogen
|
|
|
|
#include <vcl/toolbox.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SFXTBXCTRL_HXX //autogen
|
|
|
|
#include <sfx2/tbxctrl.hxx>
|
|
|
|
#endif
|
|
|
|
|
2004-07-06 06:25:52 -05:00
|
|
|
#ifndef _COM_SUN_STAR_FRAME_XFRAME_HPP_
|
|
|
|
#include <com/sun/star/frame/XFrame.hpp>
|
|
|
|
#endif
|
|
|
|
|
2000-09-18 11:07:07 -05:00
|
|
|
|
|
|
|
/*************************************************************************
|
|
|
|
|*
|
|
|
|
|* Controls (Windows) fuer Diaeffekte
|
|
|
|
|*
|
|
|
|
\************************************************************************/
|
|
|
|
|
|
|
|
//========================================================================
|
|
|
|
// DiaTimeControl:
|
|
|
|
|
|
|
|
class DiaTimeControl : public TimeField
|
|
|
|
{
|
2000-09-21 10:12:50 -05:00
|
|
|
private:
|
2004-07-06 06:25:52 -05:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
|
2000-09-21 10:12:50 -05:00
|
|
|
|
2000-09-18 11:07:07 -05:00
|
|
|
protected:
|
|
|
|
virtual void Up();
|
|
|
|
virtual void Down();
|
|
|
|
|
|
|
|
public:
|
2004-07-06 06:25:52 -05:00
|
|
|
DiaTimeControl( Window* pParent,
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
|
|
|
|
WinBits nStyle = 0 );
|
|
|
|
DiaTimeControl( Window* pParent,
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
|
|
|
|
ResId nRId );
|
2000-09-18 11:07:07 -05:00
|
|
|
~DiaTimeControl();
|
|
|
|
|
|
|
|
DECL_LINK( ModifyDiaTimeHdl, void * );
|
|
|
|
DECL_LINK( GetFocusHdl, void * );
|
|
|
|
};
|
|
|
|
|
|
|
|
#ifdef _SD_DIACTRL_CXX
|
|
|
|
|
|
|
|
//========================================================================
|
|
|
|
// DiaEffectControl:
|
|
|
|
|
|
|
|
class DiaEffectControl : public Window
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
FadeEffectLB aLbEffect;
|
|
|
|
|
|
|
|
public:
|
2004-07-06 06:25:52 -05:00
|
|
|
DiaEffectControl( Window* pParent,
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
|
|
|
|
WinBits nStyle = 0 );
|
2000-09-18 11:07:07 -05:00
|
|
|
~DiaEffectControl();
|
|
|
|
|
|
|
|
DECL_LINK( SelectDiaEffectHdl, void * );
|
2003-05-22 04:31:04 -05:00
|
|
|
|
|
|
|
protected:
|
|
|
|
/** This method is called when the window gets the focus. It grabs the
|
|
|
|
focus to this control so that it can be controlled with the
|
|
|
|
keyboard.
|
|
|
|
*/
|
|
|
|
virtual void GetFocus (void);
|
|
|
|
|
|
|
|
private:
|
2004-07-06 06:25:52 -05:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
|
2003-05-22 04:31:04 -05:00
|
|
|
FixedText aFtDescr;
|
2000-09-18 11:07:07 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
//========================================================================
|
|
|
|
// DiaSpeedControl:
|
|
|
|
|
|
|
|
class DiaSpeedControl : public Window
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ListBox aLbSpeed;
|
|
|
|
|
|
|
|
public:
|
2004-07-06 06:25:52 -05:00
|
|
|
DiaSpeedControl( Window* pParent,
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
|
|
|
|
WinBits nStyle = 0 );
|
2000-09-18 11:07:07 -05:00
|
|
|
~DiaSpeedControl();
|
|
|
|
|
|
|
|
DECL_LINK( SelectDiaSpeedHdl, void * );
|
2003-05-22 04:31:04 -05:00
|
|
|
|
|
|
|
protected:
|
|
|
|
/** This method is called when the window gets the focus. It grabs the
|
|
|
|
focus to this control so that it can be controlled with the
|
|
|
|
keyboard.
|
|
|
|
*/
|
|
|
|
virtual void GetFocus (void);
|
|
|
|
|
|
|
|
private:
|
2004-07-06 06:25:52 -05:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
|
2000-09-18 11:07:07 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
//========================================================================
|
|
|
|
// DiaAutoControl:
|
|
|
|
|
|
|
|
class DiaAutoControl : public Window
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
ListBox aLbAuto;
|
|
|
|
|
|
|
|
public:
|
2004-07-06 06:25:52 -05:00
|
|
|
DiaAutoControl( Window* pParent,
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
|
|
|
|
WinBits nStyle = 0 );
|
2000-09-18 11:07:07 -05:00
|
|
|
~DiaAutoControl();
|
|
|
|
|
|
|
|
DECL_LINK( SelectDiaAutoHdl, void * );
|
2003-05-22 04:31:04 -05:00
|
|
|
|
|
|
|
protected:
|
|
|
|
/** This method is called when the window gets the focus. It grabs the
|
|
|
|
focus to this control so that it can be controlled with the
|
|
|
|
keyboard.
|
|
|
|
*/
|
|
|
|
virtual void GetFocus (void);
|
|
|
|
|
|
|
|
private:
|
2004-07-06 06:25:52 -05:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
|
2003-05-22 04:31:04 -05:00
|
|
|
FixedText aFtDescr;
|
2000-09-18 11:07:07 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
//========================================================================
|
|
|
|
// SdPagesField:
|
|
|
|
|
|
|
|
class SdPagesField : public SvxMetricField
|
|
|
|
{
|
2000-09-21 10:12:50 -05:00
|
|
|
private:
|
2004-07-06 06:25:52 -05:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > m_xFrame;
|
2000-09-18 11:07:07 -05:00
|
|
|
protected:
|
|
|
|
virtual void Modify();
|
|
|
|
|
|
|
|
public:
|
2004-07-06 06:25:52 -05:00
|
|
|
SdPagesField( Window* pParent,
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame,
|
|
|
|
WinBits nBits = WB_BORDER | WB_SPIN | WB_REPEAT );
|
2000-09-18 11:07:07 -05:00
|
|
|
~SdPagesField();
|
|
|
|
|
|
|
|
void Update( const SfxUInt16Item* pItem );
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
/*************************************************************************
|
|
|
|
|*
|
|
|
|
|* Toolbox-Controller fuer Diaeffekte
|
|
|
|
|*
|
|
|
|
\************************************************************************/
|
|
|
|
|
|
|
|
class SdTbxCtlDiaEffect: public SfxToolBoxControl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void StateChanged( USHORT nSId, SfxItemState eState,
|
|
|
|
const SfxPoolItem* pState );
|
|
|
|
virtual Window* CreateItemWindow( Window *pParent );
|
|
|
|
|
|
|
|
SFX_DECL_TOOLBOX_CONTROL();
|
|
|
|
|
2004-07-06 06:25:52 -05:00
|
|
|
SdTbxCtlDiaEffect( USHORT nSlotId, USHORT nId, ToolBox& rTbx );
|
2000-09-18 11:07:07 -05:00
|
|
|
~SdTbxCtlDiaEffect() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
class SdTbxCtlDiaSpeed: public SfxToolBoxControl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void StateChanged( USHORT nSId, SfxItemState eState,
|
|
|
|
const SfxPoolItem* pState );
|
|
|
|
virtual Window* CreateItemWindow( Window *pParent );
|
|
|
|
|
|
|
|
SFX_DECL_TOOLBOX_CONTROL();
|
|
|
|
|
2004-07-06 06:25:52 -05:00
|
|
|
SdTbxCtlDiaSpeed( USHORT nSlotId, USHORT nId, ToolBox& rTbx );
|
2000-09-18 11:07:07 -05:00
|
|
|
~SdTbxCtlDiaSpeed() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
class SdTbxCtlDiaAuto: public SfxToolBoxControl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void StateChanged( USHORT nSId, SfxItemState eState,
|
|
|
|
const SfxPoolItem* pState );
|
|
|
|
virtual Window* CreateItemWindow( Window *pParent );
|
|
|
|
|
|
|
|
SFX_DECL_TOOLBOX_CONTROL();
|
|
|
|
|
2004-07-06 06:25:52 -05:00
|
|
|
SdTbxCtlDiaAuto( USHORT nSlotId, USHORT nId, ToolBox& rTbx );
|
2000-09-18 11:07:07 -05:00
|
|
|
~SdTbxCtlDiaAuto() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
class SdTbxCtlDiaTime: public SfxToolBoxControl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void StateChanged( USHORT nSId, SfxItemState eState,
|
|
|
|
const SfxPoolItem* pState );
|
|
|
|
virtual Window* CreateItemWindow( Window *pParent );
|
|
|
|
|
|
|
|
SFX_DECL_TOOLBOX_CONTROL();
|
|
|
|
|
2004-07-06 06:25:52 -05:00
|
|
|
SdTbxCtlDiaTime( USHORT nSlotId, USHORT nId, ToolBox& rTbx );
|
2000-09-18 11:07:07 -05:00
|
|
|
~SdTbxCtlDiaTime() {}
|
|
|
|
};
|
|
|
|
|
|
|
|
//========================================================================
|
|
|
|
// SdTbxCtlDiaPages:
|
|
|
|
//========================================================================
|
|
|
|
|
|
|
|
class SdTbxCtlDiaPages : public SfxToolBoxControl
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual void StateChanged( USHORT nSID, SfxItemState eState,
|
|
|
|
const SfxPoolItem* pState );
|
|
|
|
virtual Window* CreateItemWindow( Window *pParent );
|
|
|
|
|
|
|
|
SFX_DECL_TOOLBOX_CONTROL();
|
|
|
|
|
2004-07-06 06:25:52 -05:00
|
|
|
SdTbxCtlDiaPages( USHORT nSlotId, USHORT nId, ToolBox& rTbx );
|
2000-09-18 11:07:07 -05:00
|
|
|
~SdTbxCtlDiaPages();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _SD_DIACTRL_CXX
|
|
|
|
|
|
|
|
#endif // _SD_TBXCTRLS_HXX
|
|
|
|
|
|
|
|
|
|
|
|
|