From cca0b9ae02603ab88ec7d8810aab2a8a1b4efda2 Mon Sep 17 00:00:00 2001 From: Siqi LIU Date: Wed, 24 Jul 2013 18:47:16 +0200 Subject: patch for review Change-Id: I86ac0123e0a7073eaf6b971458d2c7c984a6c6fa --- sd/source/ui/slideshow/slideshowimpl.cxx | 40 ++++++++++++++++++++++++++++++++ sd/source/ui/slideshow/slideshowimpl.hxx | 2 ++ 2 files changed, 42 insertions(+) (limited to 'sd/source/ui/slideshow') diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index 0afcf29708c3..f7fda9b7ea04 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -1142,6 +1142,19 @@ bool SlideshowImpl::startShowImpl( const Sequence< beans::PropertyValue >& aProp makeAny( xBitmap ), beans::PropertyState_DIRECT_VALUE ) ); } + + BitmapEx pointerSymbolBitmap( SdResId(BMP_WAIT_ICON) ); + const Reference xPointerBitmap( + vcl::unotools::xBitmapFromBitmapEx( + xSpriteCanvas->getDevice(), pointerSymbolBitmap ) ); + if (xPointerBitmap.is()) + { + mxShow->setProperty( + beans::PropertyValue( "PointerSymbolBitmap" , + -1, + makeAny( xPointerBitmap ), + beans::PropertyState_DIRECT_VALUE ) ); + } } const sal_Int32 nCount = aProperties.getLength(); @@ -3040,6 +3053,33 @@ void SAL_CALL SlideshowImpl::setPenMode( bool bSwitchPenMode ) throw (RuntimeExc } +// -------------------------------------------------------------------- +void SAL_CALL SlideshowImpl::setPointerMode( bool bSwitchPointerMode ) throw (css::uno::RuntimeException) +{ + SolarMutexGuard aSolarGuard; + if (mxShow.is()) try + { + mxShow->setProperty( + beans::PropertyValue( "PointerVisible" , + -1, + makeAny( bSwitchPointerMode ), + beans::PropertyState_DIRECT_VALUE ) ); + } +} + +// -------------------------------------------------------------------- +void SAL_CALL SlideshowImpl::setPointerPosition( const ::com::sun::star::geometry::RealPoint2D& pos ) throw (css::uno::RuntimeException) +{ + SolarMutexGuard aSolarGuard; + if (mxShow.is()) try + { + mxShow->setProperty( + beans::PropertyValue( "PointerPosition" , + -1, + makeAny( pos ), + beans::PropertyState_DIRECT_VALUE ) ); + } +} // -------------------------------------------------------------------- void SAL_CALL SlideshowImpl::setEraseAllInk(bool bEraseAllInk) throw (RuntimeException) diff --git a/sd/source/ui/slideshow/slideshowimpl.hxx b/sd/source/ui/slideshow/slideshowimpl.hxx index 8be006b320da..2768e9681485 100644 --- a/sd/source/ui/slideshow/slideshowimpl.hxx +++ b/sd/source/ui/slideshow/slideshowimpl.hxx @@ -190,6 +190,8 @@ public: virtual void SAL_CALL setEraseInk( sal_Int32 nEraseInkSize ) throw (css::uno::RuntimeException); virtual void SAL_CALL setPenMode( bool bSwitchPenMode) throw (css::uno::RuntimeException); virtual void SAL_CALL setEraserMode( bool bSwitchEraserMode ) throw (css::uno::RuntimeException); + virtual void SAL_CALL setPointerMode( bool bSwitchPointerMode) throw (css::uno::RuntimeException); + virtual void SAL_CALL setPointerPosition( const ::com::sun::star::geometry::RealPoint2D& pos ) throw (css::uno::RuntimeException); virtual ::sal_Bool SAL_CALL isRunning( ) throw (css::uno::RuntimeException); virtual ::sal_Int32 SAL_CALL getSlideCount( ) throw (css::uno::RuntimeException); virtual css::uno::Reference< css::drawing::XDrawPage > SAL_CALL getSlideByIndex( ::sal_Int32 Index ) throw (css::lang::IndexOutOfBoundsException, css::uno::RuntimeException); -- cgit