summaryrefslogtreecommitdiff
path: root/sd/source/ui/slideshow/slideshow.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/slideshow/slideshow.cxx')
-rw-r--r--sd/source/ui/slideshow/slideshow.cxx114
1 files changed, 57 insertions, 57 deletions
diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx
index 6795f92e8fb4..8f3f757bb182 100644
--- a/sd/source/ui/slideshow/slideshow.cxx
+++ b/sd/source/ui/slideshow/slideshow.cxx
@@ -102,7 +102,7 @@ namespace {
//////////////////////////////////////////////////////////////////////////////
-// --------------------------------------------------------------------
+
const SfxItemPropertyMapEntry* ImplGetPresentationPropertyMap()
{
@@ -130,9 +130,9 @@ const SfxItemPropertyMapEntry* ImplGetPresentationPropertyMap()
return aPresentationPropertyMap_Impl;
}
-// --------------------------------------------------------------------
+
// class SlideShow
-// --------------------------------------------------------------------
+
SlideShow::SlideShow( SdDrawDocument* pDoc )
: SlideshowBase( m_aMutex )
@@ -146,7 +146,7 @@ SlideShow::SlideShow( SdDrawDocument* pDoc )
{
}
-// --------------------------------------------------------------------
+
void SlideShow::ThrowIfDisposed() throw (RuntimeException)
{
@@ -154,7 +154,7 @@ void SlideShow::ThrowIfDisposed() throw (RuntimeException)
throw DisposedException();
}
-// --------------------------------------------------------------------
+
/// used by the model to create a slideshow for it
rtl::Reference< SlideShow > SlideShow::Create( SdDrawDocument* pDoc )
@@ -162,7 +162,7 @@ rtl::Reference< SlideShow > SlideShow::Create( SdDrawDocument* pDoc )
return new SlideShow( pDoc );
}
-// --------------------------------------------------------------------
+
rtl::Reference< SlideShow > SlideShow::GetSlideShow( SdDrawDocument* pDocument )
{
@@ -174,7 +174,7 @@ rtl::Reference< SlideShow > SlideShow::GetSlideShow( SdDrawDocument* pDocument )
return xRet;
}
-// --------------------------------------------------------------------
+
rtl::Reference< SlideShow > SlideShow::GetSlideShow( SdDrawDocument& rDocument )
{
@@ -182,14 +182,14 @@ rtl::Reference< SlideShow > SlideShow::GetSlideShow( SdDrawDocument& rDocument )
dynamic_cast< SlideShow* >( rDocument.getPresentation().get() ) );
}
-// --------------------------------------------------------------------
+
rtl::Reference< SlideShow > SlideShow::GetSlideShow( ViewShellBase& rBase )
{
return GetSlideShow( rBase.GetDocument() );
}
-// --------------------------------------------------------------------
+
::com::sun::star::uno::Reference< ::com::sun::star::presentation::XSlideShowController > SlideShow::GetSlideShowController(ViewShellBase& rBase )
{
@@ -202,7 +202,7 @@ rtl::Reference< SlideShow > SlideShow::GetSlideShow( ViewShellBase& rBase )
return xRet;
}
-// --------------------------------------------------------------------
+
bool SlideShow::StartPreview( ViewShellBase& rBase,
const ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XDrawPage >& xDrawPage,
@@ -216,7 +216,7 @@ bool SlideShow::StartPreview( ViewShellBase& rBase,
return false;
}
-// --------------------------------------------------------------------
+
void SlideShow::Stop( ViewShellBase& rBase )
{
@@ -225,7 +225,7 @@ void SlideShow::Stop( ViewShellBase& rBase )
xSlideShow->end();
}
-// --------------------------------------------------------------------
+
bool SlideShow::IsRunning( ViewShellBase& rBase )
{
@@ -233,7 +233,7 @@ bool SlideShow::IsRunning( ViewShellBase& rBase )
return xSlideShow.is() && xSlideShow->isRunning();
}
-// --------------------------------------------------------------------
+
bool SlideShow::IsRunning( ViewShell& rViewShell )
{
@@ -241,7 +241,7 @@ bool SlideShow::IsRunning( ViewShell& rViewShell )
return xSlideShow.is() && xSlideShow->isRunning() && (xSlideShow->mxController->getViewShell() == &rViewShell);
}
-// --------------------------------------------------------------------
+
void SlideShow::CreateController( ViewShell* pViewSh, ::sd::View* pView, ::Window* pParentWindow )
{
@@ -561,7 +561,7 @@ void SAL_CALL SlideShow::setPropertyValue( const OUString& aPropertyName, const
mpDoc->SetChanged( true );
}
-// --------------------------------------------------------------------
+
Any SAL_CALL SlideShow::getPropertyValue( const OUString& PropertyName ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
@@ -629,33 +629,33 @@ Any SAL_CALL SlideShow::getPropertyValue( const OUString& PropertyName ) throw(U
}
}
-// --------------------------------------------------------------------
+
void SAL_CALL SlideShow::addPropertyChangeListener( const OUString& , const Reference< XPropertyChangeListener >& ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
}
-// --------------------------------------------------------------------
+
void SAL_CALL SlideShow::removePropertyChangeListener( const OUString& , const Reference< XPropertyChangeListener >& ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
}
-// --------------------------------------------------------------------
+
void SAL_CALL SlideShow::addVetoableChangeListener( const OUString& , const Reference< XVetoableChangeListener >& ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
}
-// --------------------------------------------------------------------
+
void SAL_CALL SlideShow::removeVetoableChangeListener( const OUString& , const Reference< XVetoableChangeListener >& ) throw(UnknownPropertyException, WrappedTargetException, RuntimeException)
{
}
-// --------------------------------------------------------------------
+
// XPresentation
-// --------------------------------------------------------------------
+
void SAL_CALL SlideShow::start() throw(RuntimeException)
{
@@ -663,7 +663,7 @@ void SAL_CALL SlideShow::start() throw(RuntimeException)
startWithArguments( aArguments );
}
-// --------------------------------------------------------------------
+
WorkWindow *SlideShow::GetWorkWindow()
{
@@ -820,7 +820,7 @@ void SAL_CALL SlideShow::end() throw(RuntimeException)
}
}
-// --------------------------------------------------------------------
+
void SAL_CALL SlideShow::rehearseTimings() throw(RuntimeException)
{
@@ -830,9 +830,9 @@ void SAL_CALL SlideShow::rehearseTimings() throw(RuntimeException)
startWithArguments( aArguments );
}
-// --------------------------------------------------------------------
+
// XPresentation2
-// --------------------------------------------------------------------
+
void SAL_CALL SlideShow::startWithArguments( const Sequence< PropertyValue >& rArguments ) throw (RuntimeException)
{
@@ -895,7 +895,7 @@ void SAL_CALL SlideShow::startWithArguments( const Sequence< PropertyValue >& rA
}
-// --------------------------------------------------------------------
+
::sal_Bool SAL_CALL SlideShow::isRunning( ) throw (RuntimeException)
{
@@ -903,7 +903,7 @@ void SAL_CALL SlideShow::startWithArguments( const Sequence< PropertyValue >& rA
return mxController.is() && mxController->isRunning();
}
-// --------------------------------------------------------------------
+
Reference< XSlideShowController > SAL_CALL SlideShow::getController( ) throw (RuntimeException)
{
@@ -913,9 +913,9 @@ Reference< XSlideShowController > SAL_CALL SlideShow::getController( ) throw (R
return xController;
}
-// --------------------------------------------------------------------
+
// XComponent
-// --------------------------------------------------------------------
+
void SAL_CALL SlideShow::disposing (void)
{
@@ -938,7 +938,7 @@ void SAL_CALL SlideShow::disposing (void)
mpDoc = 0;
}
-// ---------------------------------------------------------
+
bool SlideShow::startPreview( const Reference< XDrawPage >& xDrawPage, const Reference< XAnimationNode >& xAnimationNode, ::Window* pParent )
{
@@ -965,21 +965,21 @@ bool SlideShow::startPreview( const Reference< XDrawPage >& xDrawPage, const Ref
return true;
}
-// ---------------------------------------------------------
+
ShowWindow* SlideShow::getShowWindow()
{
return mxController.is() ? mxController->mpShowWindow : 0;
}
-// ---------------------------------------------------------
+
int SlideShow::getAnimationMode()
{
return mxController.is() ? mxController->meAnimationMode : ANIMATIONMODE_SHOW;
}
-// ---------------------------------------------------------
+
void SlideShow::jumpToPageIndex( sal_Int32 nPageIndex )
{
@@ -987,7 +987,7 @@ void SlideShow::jumpToPageIndex( sal_Int32 nPageIndex )
mxController->displaySlideIndex( nPageIndex );
}
-// ---------------------------------------------------------
+
void SlideShow::jumpToPageNumber( sal_Int32 nPageNumber )
{
@@ -995,14 +995,14 @@ void SlideShow::jumpToPageNumber( sal_Int32 nPageNumber )
mxController->displaySlideNumber( nPageNumber );
}
-// ---------------------------------------------------------
+
sal_Int32 SlideShow::getCurrentPageNumber()
{
return mxController.is() ? mxController->getCurrentSlideNumber() : 0;
}
-// ---------------------------------------------------------
+
void SlideShow::jumpToBookmark( const OUString& sBookmark )
{
@@ -1010,14 +1010,14 @@ void SlideShow::jumpToBookmark( const OUString& sBookmark )
mxController->jumpToBookmark( sBookmark );
}
-// ---------------------------------------------------------
+
bool SlideShow::isFullScreen()
{
return mxController.is() ? mxController->maPresSettings.mbFullScreen : false;
}
-// ---------------------------------------------------------
+
void SlideShow::resize( const Size &rSize )
{
@@ -1025,7 +1025,7 @@ void SlideShow::resize( const Size &rSize )
mxController->resize( rSize );
}
-// ---------------------------------------------------------
+
void SlideShow::activate( ViewShellBase& rBase )
{
@@ -1058,21 +1058,21 @@ void SlideShow::activate( ViewShellBase& rBase )
}
-// ---------------------------------------------------------
+
void SlideShow::deactivate( ViewShellBase& /*rBase*/ )
{
mxController->deactivate();
}
-// ---------------------------------------------------------
+
bool SlideShow::keyInput(const KeyEvent& rKEvt)
{
return mxController.is() ? mxController->keyInput(rKEvt) : false;
}
-// ---------------------------------------------------------
+
void SlideShow::paint( const Rectangle& rRect )
{
@@ -1080,14 +1080,14 @@ void SlideShow::paint( const Rectangle& rRect )
mxController->paint( rRect );
}
-// ---------------------------------------------------------
+
bool SlideShow::isAlwaysOnTop()
{
return mxController.is() ? mxController->maPresSettings.mbAlwaysOnTop : false;
}
-// ---------------------------------------------------------
+
bool SlideShow::pause( bool bPause )
{
@@ -1101,7 +1101,7 @@ bool SlideShow::pause( bool bPause )
return true;
}
-// ---------------------------------------------------------
+
void SlideShow::receiveRequest(SfxRequest& rReq)
{
@@ -1109,35 +1109,35 @@ void SlideShow::receiveRequest(SfxRequest& rReq)
mxController->receiveRequest( rReq );
}
-// ---------------------------------------------------------
+
sal_Int32 SlideShow::getFirstPageNumber()
{
return mxController.is() ? mxController->getFirstSlideNumber() : 0;
}
-// ---------------------------------------------------------
+
sal_Int32 SlideShow::getLastPageNumber()
{
return mxController.is() ? mxController->getLastSlideNumber() : 0;
}
-// ---------------------------------------------------------
+
bool SlideShow::isEndless()
{
return mxController.is() ? mxController->isEndless() : false;
}
-// ---------------------------------------------------------
+
bool SlideShow::isDrawingPossible()
{
return mxController.is() ? mxController->getUsePen() : false;
}
-// ---------------------------------------------------------
+
void SlideShow::StartInPlacePresentationConfigurationCallback()
{
@@ -1147,7 +1147,7 @@ void SlideShow::StartInPlacePresentationConfigurationCallback()
mnInPlaceConfigEvent = Application::PostUserEvent( LINK( this, SlideShow, StartInPlacePresentationConfigurationHdl ) );
}
-// ---------------------------------------------------------
+
IMPL_LINK_NOARG(SlideShow, StartInPlacePresentationConfigurationHdl)
{
@@ -1156,7 +1156,7 @@ IMPL_LINK_NOARG(SlideShow, StartInPlacePresentationConfigurationHdl)
return 0;
}
-// ---------------------------------------------------------
+
void SlideShow::StartInPlacePresentation()
{
@@ -1227,7 +1227,7 @@ void SlideShow::StartInPlacePresentation()
}
}
-// ---------------------------------------------------------
+
void SlideShow::StartFullscreenPresentation( )
{
@@ -1274,7 +1274,7 @@ void SlideShow::StartFullscreenPresentation( )
}
}
-// ---------------------------------------------------------
+
/// convert configuration setting display concept to real screens
sal_Int32 SlideShow::GetDisplay()
@@ -1297,7 +1297,7 @@ sal_Int32 SlideShow::GetDisplay()
return nDisplay;
}
-// ---------------------------------------------------------
+
bool SlideShow::dependsOn( ViewShellBase* pViewShellBase )
@@ -1305,13 +1305,13 @@ bool SlideShow::dependsOn( ViewShellBase* pViewShellBase )
return mxController.is() && (pViewShellBase == mpCurrentViewShellBase) && mpFullScreenViewShellBase;
}
-// ---------------------------------------------------------
+
Reference< presentation::XPresentation2 > CreatePresentation( const SdDrawDocument& rDocument )
{
return Reference< presentation::XPresentation2 >( SlideShow::Create( const_cast< SdDrawDocument* >( &rDocument ) ).get() );
}
-// ---------------------------------------------------------
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */