2004-11-26 13:20:38 -06:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2005-09-09 00:07:58 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2004-11-26 13:20:38 -06:00
|
|
|
*
|
2005-09-09 00:07:58 -05:00
|
|
|
* $RCSfile: slideshowimpl.hxx,v $
|
2004-11-26 13:20:38 -06:00
|
|
|
*
|
2008-03-07 09:28:08 -06:00
|
|
|
* $Revision: 1.25 $
|
2004-11-26 13:20:38 -06:00
|
|
|
*
|
2008-03-07 09:28:08 -06:00
|
|
|
* last change: $Author: kz $ $Date: 2008-03-07 16:28:08 $
|
2004-11-26 13:20:38 -06:00
|
|
|
*
|
2005-09-09 00:07:58 -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 13:20:38 -06:00
|
|
|
*
|
|
|
|
*
|
2005-09-09 00:07:58 -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 13:20:38 -06:00
|
|
|
*
|
2005-09-09 00:07:58 -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 13:20:38 -06:00
|
|
|
*
|
2005-09-09 00:07:58 -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 13:20:38 -06:00
|
|
|
*
|
2005-09-09 00:07:58 -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 13:20:38 -06:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
#ifndef _SD_SLIDESHOWIMPL_HXX_
|
|
|
|
#define _SD_SLIDESHOWIMPL_HXX_
|
|
|
|
|
|
|
|
#ifndef _CPPUHELPER_COMPBASE2_HXX_
|
|
|
|
#include <cppuhelper/compbase2.hxx>
|
|
|
|
#endif
|
|
|
|
#ifndef _COMPHELPER_BROADCASTHELPER_HXX_
|
|
|
|
#include <comphelper/broadcasthelper.hxx>
|
|
|
|
#endif
|
|
|
|
#ifndef COMPHELPER_INC_COMPHELPER_LISTENERNOTIFICATION_HXX
|
|
|
|
#include <comphelper/listenernotification.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _TOOLKIT_HELPER_VCLUNOHELPER_HXX_
|
|
|
|
#include <toolkit/helper/vclunohelper.hxx>
|
|
|
|
#endif
|
|
|
|
#ifndef _COMPHELPER_PROCESSFACTORY_HXX_
|
|
|
|
#include <comphelper/processfactory.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _COM_SUN_STAR_AWT_WINDOWEVENT_HPP_
|
|
|
|
#include <com/sun/star/awt/WindowEvent.hpp>
|
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_AWT_XWINDOWLISTENER_HPP_
|
|
|
|
#include <com/sun/star/awt/XWindowListener.hpp>
|
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_AWT_XWINDOW_HPP_
|
|
|
|
#include <com/sun/star/awt/XWindow.hpp>
|
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_AWT_XWINDOWPEER_HPP_
|
|
|
|
#include <com/sun/star/awt/XWindowPeer.hpp>
|
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_UTIL_XMODIFYLISTENER_HPP_
|
|
|
|
#include <com/sun/star/util/XModifyListener.hpp>
|
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_AWT_XPAINTLISTENER_HPP_
|
|
|
|
#include <com/sun/star/awt/XPaintListener.hpp>
|
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_AWT_XPOINTER_HPP_
|
|
|
|
#include <com/sun/star/awt/XPointer.hpp>
|
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_PRESENTATION_XSLIDESHOW_HPP_
|
|
|
|
#include <com/sun/star/presentation/XSlideShow.hpp>
|
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_PRESENTATION_XSLIDESHOWVIEW_HPP_
|
|
|
|
#include <com/sun/star/presentation/XSlideShowView.hpp>
|
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_PRESENTATION_XSLIDESHOWLISTENER_HPP_
|
|
|
|
#include <com/sun/star/presentation/XSlideShowListener.hpp>
|
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_PRESENTATION_XSHAPEEVENTLISTENER_HPP_
|
|
|
|
#include <com/sun/star/presentation/XShapeEventListener.hpp>
|
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_DRAWING_XDRAWPAGESSUPPLIER_HPP_
|
|
|
|
#include <com/sun/star/drawing/XDrawPagesSupplier.hpp>
|
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_ANIMATIONS_XANIMATIONNODESUPPLIER_HPP_
|
|
|
|
#include <com/sun/star/animations/XAnimationNodeSupplier.hpp>
|
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_PRESENTATION_CLICKACTION_HPP_
|
|
|
|
#include <com/sun/star/presentation/ClickAction.hpp>
|
|
|
|
#endif
|
2005-01-25 08:16:55 -06:00
|
|
|
#ifndef _COM_SUN_STAR_MEDIA_XMANAGER_HPP_
|
|
|
|
#include <com/sun/star/media/XManager.hpp>
|
|
|
|
#endif
|
|
|
|
#ifndef _COM_SUN_STAR_MEDIA_XPLAYER_HPP_
|
|
|
|
#include <com/sun/star/media/XPlayer.hpp>
|
|
|
|
#endif
|
2004-11-26 13:20:38 -06:00
|
|
|
|
|
|
|
#ifndef _COMPHELPER_IMPLEMENTATIONREFERENCE_HXX
|
|
|
|
#include <comphelper/implementationreference.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _BGFX_MATRIX_B2DHOMMATRIX_HXX
|
|
|
|
#include <basegfx/matrix/b2dhommatrix.hxx>
|
|
|
|
#endif
|
|
|
|
#ifndef _BGFX_TOOLS_CANVASTOOLS_HXX
|
|
|
|
#include <basegfx/tools/canvastools.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SV_HELP_HXX //autogen
|
|
|
|
#include <vcl/help.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _URLOBJ_HXX
|
|
|
|
#include <tools/urlobj.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef INCLUDED_SVTOOLS_PATHOPTIONS_HXX
|
|
|
|
#include <svtools/pathoptions.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef INCLUDED_SVTOOLS_SAVEOPT_HXX
|
|
|
|
#include <svtools/saveopt.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SFX_BINDINGS_HXX //autogen
|
|
|
|
#include <sfx2/bindings.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SFXDISPATCH_HXX //autogen
|
|
|
|
#include <sfx2/dispatch.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SFXVIEWFRM_HXX
|
|
|
|
#include <sfx2/viewfrm.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SB_SBSTAR_HXX //autogen
|
|
|
|
#include <basic/sbstar.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SVDPAGV_HXX
|
|
|
|
#include <svx/svdpagv.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SVX_FMSHELL_HXX
|
|
|
|
#include <svx/fmshell.hxx>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SVX_SVXIDS_HRC
|
|
|
|
#include <svx/svxids.hrc>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SDMOD_HXX
|
|
|
|
#include "sdmod.hxx"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SD_CUSSHOW_HXX
|
|
|
|
#include "cusshow.hxx"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SD_VIEW_SHELL_BASE_HXX
|
|
|
|
#include "ViewShellBase.hxx"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SD_PRESENTATION_VIEW_SHELL_HXX
|
|
|
|
#include "PresentationViewShell.hxx"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SD_VIEW_SHELL_HXX
|
|
|
|
#include "ViewShell.hxx"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SD_DRAW_VIEW_HXX
|
|
|
|
#include "drawview.hxx"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _DRAWDOC_HXX
|
|
|
|
#include "drawdoc.hxx"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SD_SHOW_WINDOW_HXX
|
|
|
|
#include "ShowWindow.hxx"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SD_OPTSITEM_HXX
|
|
|
|
#include "optsitem.hxx"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SD_FRAME_VIEW_HXX
|
|
|
|
#include "FrameView.hxx"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef SD_DRAW_DOC_SHELL_HXX
|
|
|
|
#include "DrawDocShell.hxx"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _SD_APP_HRC_
|
|
|
|
#include "app.hrc"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "slideshow.hxx"
|
|
|
|
|
|
|
|
class SfxViewFrame;
|
|
|
|
class SfxRequest;
|
|
|
|
|
|
|
|
namespace sd
|
|
|
|
{
|
|
|
|
class SlideShowView;
|
2005-10-11 02:18:14 -05:00
|
|
|
class AnimationSlideController;
|
2005-03-23 02:06:47 -06:00
|
|
|
class PaneHider;
|
2004-11-26 13:20:38 -06:00
|
|
|
|
|
|
|
struct WrappedShapeEventImpl
|
|
|
|
{
|
|
|
|
::com::sun::star::presentation::ClickAction meClickAction;
|
|
|
|
sal_Int32 mnVerb;
|
|
|
|
::rtl::OUString maStrBookmark;
|
|
|
|
WrappedShapeEventImpl() : meClickAction( ::com::sun::star::presentation::ClickAction_NONE ), mnVerb( 0 ) {};
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef boost::shared_ptr< WrappedShapeEventImpl > WrappedShapeEventImplPtr;
|
|
|
|
typedef std::map< ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >, WrappedShapeEventImplPtr > WrappedShapeEventImplMap;
|
|
|
|
|
|
|
|
|
|
|
|
typedef ::cppu::WeakComponentImplHelper2< ::com::sun::star::presentation::XShapeEventListener,
|
|
|
|
::com::sun::star::presentation::XSlideShowListener > SlideshowImpl_base;
|
|
|
|
|
|
|
|
class SlideshowImpl : public ::comphelper::OBaseMutex, public SlideshowImpl_base
|
|
|
|
{
|
|
|
|
friend class Slideshow;
|
|
|
|
public:
|
2007-04-03 10:16:22 -05:00
|
|
|
SlideshowImpl( ViewShell* pViewSh, ::sd::View* pView, SdDrawDocument* pDoc,
|
|
|
|
::Window* pParentWindow );
|
2004-11-26 13:20:38 -06:00
|
|
|
~SlideshowImpl();
|
|
|
|
|
2005-01-21 09:35:14 -06:00
|
|
|
bool startShow( PresentationSettings* pPresSettings );
|
|
|
|
bool startPreview(
|
2004-11-26 13:20:38 -06:00
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& xDrawPage,
|
|
|
|
const ::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode >& xAnimationNode,
|
|
|
|
::Window* pParent = 0 );
|
|
|
|
|
|
|
|
void stopShow();
|
|
|
|
|
|
|
|
double update();
|
2005-03-18 09:50:25 -06:00
|
|
|
/** forces an async call to update in the main thread */
|
|
|
|
void startUpdateTimer();
|
2004-11-26 13:20:38 -06:00
|
|
|
void paint( const Rectangle& rRect );
|
|
|
|
bool keyInput(const KeyEvent& rKEvt);
|
|
|
|
void mouseButtonUp(const MouseEvent& rMEvt);
|
|
|
|
|
2005-10-11 02:18:14 -05:00
|
|
|
void createSlideList( bool bAll, bool bStartWithActualSlide, const String& rPresSlide );
|
2004-11-26 13:20:38 -06:00
|
|
|
|
2005-10-11 02:18:14 -05:00
|
|
|
void stopSound();
|
2004-11-26 13:20:38 -06:00
|
|
|
|
2005-10-11 02:18:14 -05:00
|
|
|
void displayCurrentSlide();
|
|
|
|
|
|
|
|
void displaySlideNumber( sal_Int32 nSlide );
|
|
|
|
void displaySlideIndex( sal_Int32 nIndex );
|
|
|
|
sal_Int32 getCurrentSlideNumber();
|
|
|
|
sal_Int32 getCurrentSlideIndex();
|
|
|
|
sal_Int32 getFirstSlideNumber();
|
|
|
|
sal_Int32 getLastSlideNumber();
|
2004-11-26 13:20:38 -06:00
|
|
|
bool isEndless();
|
|
|
|
bool isDrawingPossible();
|
2005-01-28 08:41:31 -06:00
|
|
|
inline bool isInputFreezed() const;
|
2004-11-26 13:20:38 -06:00
|
|
|
|
2005-10-11 02:18:14 -05:00
|
|
|
void jumpToBookmark( const String& sBookmark );
|
|
|
|
|
2004-11-26 13:20:38 -06:00
|
|
|
void activate();
|
|
|
|
void deactivate();
|
|
|
|
|
|
|
|
void hideChildWindows();
|
|
|
|
void showChildWindows();
|
|
|
|
|
|
|
|
void resize( const Size& rSize );
|
|
|
|
|
|
|
|
DECL_LINK( updateHdl, Timer* );
|
2005-01-28 08:41:31 -06:00
|
|
|
DECL_LINK( ReadyForNextInputHdl, Timer* );
|
2005-04-18 05:15:52 -05:00
|
|
|
DECL_LINK( endPresentationHdl, void* );
|
2006-07-13 03:54:14 -05:00
|
|
|
DECL_LINK( ContextMenuSelectHdl, Menu * );
|
|
|
|
DECL_LINK( ContextMenuHdl, void* );
|
2004-11-26 13:20:38 -06:00
|
|
|
|
|
|
|
// XShapeEventListener
|
2005-10-11 02:18:14 -05:00
|
|
|
virtual void SAL_CALL click( const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShape >& xShape, const ::com::sun::star::awt::MouseEvent& aOriginalEvent ) throw (::com::sun::star::uno::RuntimeException);
|
2004-11-26 13:20:38 -06:00
|
|
|
|
|
|
|
// XSlideShowListener
|
2005-10-11 02:18:14 -05:00
|
|
|
virtual void SAL_CALL slideEnded() throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
virtual void SAL_CALL hyperLinkClicked( ::rtl::OUString const& hyperLink )
|
|
|
|
throw (::com::sun::star::uno::RuntimeException);
|
2004-11-26 13:20:38 -06:00
|
|
|
|
|
|
|
// XEventListener
|
|
|
|
virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
|
|
|
|
|
|
|
|
// helper
|
2006-04-06 07:27:42 -05:00
|
|
|
void gotoNextEffect();
|
2004-11-26 13:20:38 -06:00
|
|
|
void gotoPreviousSlide();
|
|
|
|
void gotoNextSlide();
|
|
|
|
void gotoFirstSlide();
|
|
|
|
void gotoLastSlide();
|
|
|
|
void endPresentation();
|
2005-01-21 09:35:14 -06:00
|
|
|
void enablePen();
|
2004-11-26 13:20:38 -06:00
|
|
|
|
|
|
|
bool pause( bool bPause );
|
|
|
|
|
|
|
|
void receiveRequest(SfxRequest& rReq);
|
|
|
|
|
2004-12-09 09:11:45 -06:00
|
|
|
/** called only by the slideshow view when the first paint event occurs.
|
|
|
|
This actually starts the slideshow. */
|
|
|
|
void onFirstPaint();
|
|
|
|
|
2005-03-30 03:30:58 -06:00
|
|
|
ShowWindow* getShowWindow() const { return mpShowWindow; }
|
|
|
|
|
2006-12-12 11:08:55 -06:00
|
|
|
using cppu::WeakComponentImplHelperBase::disposing;
|
2004-11-26 13:20:38 -06:00
|
|
|
private:
|
2005-01-21 09:35:14 -06:00
|
|
|
bool startShowImpl(
|
2004-11-26 13:20:38 -06:00
|
|
|
const ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue >& aProperties );
|
|
|
|
|
|
|
|
SfxViewFrame* getViewFrame() const;
|
2006-10-06 04:38:07 -05:00
|
|
|
SfxDispatcher* getDispatcher() const;
|
|
|
|
SfxBindings* getBindings() const;
|
2004-11-26 13:20:38 -06:00
|
|
|
|
2005-10-11 02:18:14 -05:00
|
|
|
sal_Int32 getSlideNumberForBookmark( const rtl::OUString& rStrBookmark );
|
2004-11-26 13:20:38 -06:00
|
|
|
|
|
|
|
void removeShapeEvents();
|
2005-10-11 02:18:14 -05:00
|
|
|
void registerShapeEvents( sal_Int32 nSlideNumber );
|
2005-05-03 08:03:04 -05:00
|
|
|
void registerShapeEvents( ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes >& xShapes ) throw (::com::sun::star::uno::Exception);
|
2004-11-26 13:20:38 -06:00
|
|
|
|
|
|
|
// default: disabled copy/assignment
|
|
|
|
SlideshowImpl(const SlideshowImpl&);
|
|
|
|
SlideshowImpl& operator=( const SlideshowImpl& );
|
|
|
|
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::presentation::XSlideShow > createSlideShow() const;
|
|
|
|
|
2007-01-22 08:34:44 -06:00
|
|
|
void setAutoSaveState( bool bOn );
|
|
|
|
|
2004-11-26 13:20:38 -06:00
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::presentation::XSlideShow > mxShow;
|
|
|
|
comphelper::ImplementationReference< ::sd::SlideShowView, ::com::sun::star::presentation::XSlideShowView > mxView;
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > mxModel;
|
|
|
|
|
|
|
|
Timer maUpdateTimer;
|
2005-01-28 08:41:31 -06:00
|
|
|
Timer maInputFreezeTimer;
|
2004-11-26 13:20:38 -06:00
|
|
|
|
|
|
|
::sd::View* mpView;
|
|
|
|
ViewShell* mpViewShell;
|
|
|
|
DrawDocShell* mpDocSh;
|
|
|
|
SdDrawDocument* mpDoc;
|
|
|
|
|
|
|
|
SfxItemSet* mpNewAttr;
|
2007-04-03 10:16:22 -05:00
|
|
|
::Window* mpParentWindow;
|
2004-11-26 13:20:38 -06:00
|
|
|
ShowWindow* mpShowWindow;
|
|
|
|
PushButton* mpTimeButton;
|
|
|
|
|
2005-10-11 02:18:14 -05:00
|
|
|
boost::shared_ptr< AnimationSlideController > mpSlideController;
|
2004-11-26 13:20:38 -06:00
|
|
|
|
2005-10-11 02:18:14 -05:00
|
|
|
long mnRestoreSlide;
|
|
|
|
Point maSlideOrigin;
|
2006-07-13 03:54:14 -05:00
|
|
|
Point maPopupMousePos;
|
2005-10-11 02:18:14 -05:00
|
|
|
Size maSlideSize;
|
2004-11-26 13:20:38 -06:00
|
|
|
Size maPresSize;
|
|
|
|
AnimationMode meAnimationMode;
|
|
|
|
String maCharBuffer;
|
|
|
|
Pointer maOldPointer;
|
|
|
|
Pointer maPencil;
|
|
|
|
std::vector< ::sd::Window* > maDrawModeWindows;
|
|
|
|
::sd::Window* mpOldActiveWindow;
|
|
|
|
Link maStarBASICGlobalErrorHdl;
|
|
|
|
unsigned long mnChildMask;
|
2005-01-28 08:41:31 -06:00
|
|
|
bool mbGridVisible;
|
|
|
|
bool mbBordVisible;
|
2005-10-11 02:18:14 -05:00
|
|
|
bool mbSlideBorderVisible;
|
2005-01-28 08:41:31 -06:00
|
|
|
bool mbSetOnlineSpelling;
|
|
|
|
bool mbDisposed;
|
|
|
|
bool mbMouseIsDrawing;
|
2007-01-22 08:34:44 -06:00
|
|
|
bool mbAutoSaveWasOn;
|
2005-01-28 08:41:31 -06:00
|
|
|
bool mbRehearseTimings;
|
|
|
|
bool mbDesignMode;
|
|
|
|
bool mbIsPaused;
|
2006-07-13 03:54:14 -05:00
|
|
|
bool mbWasPaused; // used to cache pause state during context menu
|
2005-01-28 08:41:31 -06:00
|
|
|
bool mbInputFreeze;
|
|
|
|
|
2004-11-26 13:20:38 -06:00
|
|
|
PresentationSettings maPresSettings;
|
|
|
|
|
2005-03-10 05:11:48 -06:00
|
|
|
/// used in updateHdl to prevent recursive calls
|
|
|
|
sal_Int32 mnEntryCounter;
|
|
|
|
|
2005-10-11 02:18:14 -05:00
|
|
|
sal_Int32 mnLastSlideNumber;
|
2004-11-26 13:20:38 -06:00
|
|
|
WrappedShapeEventImplMap maShapeEventMap;
|
|
|
|
|
|
|
|
::rtl::OUString msOnClick;
|
|
|
|
::rtl::OUString msBookmark;
|
|
|
|
::rtl::OUString msVerb;
|
|
|
|
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage > mxPreviewDrawPage;
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::animations::XAnimationNode > mxPreviewAnimationNode;
|
2005-01-25 08:16:55 -06:00
|
|
|
|
|
|
|
::com::sun::star::uno::Reference< ::com::sun::star::media::XPlayer > mxPlayer;
|
2005-03-23 02:06:47 -06:00
|
|
|
|
|
|
|
::std::auto_ptr<PaneHider> mpPaneHider;
|
2005-07-14 04:45:15 -05:00
|
|
|
|
|
|
|
ULONG mnEndShowEvent;
|
2007-01-29 07:51:21 -06:00
|
|
|
ULONG mnContextMenuEvent;
|
2007-11-09 04:36:02 -06:00
|
|
|
|
|
|
|
sal_Int32 mnUpdateEvent;
|
2004-11-26 13:20:38 -06:00
|
|
|
};
|
|
|
|
|
2005-03-18 09:50:25 -06:00
|
|
|
class SlideShowImplGuard
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
SlideShowImplGuard( SlideshowImpl* pImpl );
|
|
|
|
~SlideShowImplGuard();
|
|
|
|
|
|
|
|
private:
|
|
|
|
SlideshowImpl* mpImpl;
|
|
|
|
};
|
|
|
|
|
2005-01-28 08:41:31 -06:00
|
|
|
bool SlideshowImpl::isInputFreezed() const
|
|
|
|
{
|
|
|
|
return mbInputFreeze;
|
|
|
|
}
|
|
|
|
|
2004-11-26 13:20:38 -06:00
|
|
|
} // namespace ::sd
|
|
|
|
|
|
|
|
#endif
|