diff options
author | Andre Fischer <af@openoffice.org> | 2009-03-24 13:55:12 +0000 |
---|---|---|
committer | Andre Fischer <af@openoffice.org> | 2009-03-24 13:55:12 +0000 |
commit | 3bd28753082fbc07c7b23cca9a225edf350c245b (patch) | |
tree | 1daaa51071d43ef10c8d42269e003c9f52e3ef79 /sdext/source/presenter/PresenterSlideShowView.cxx | |
parent | b6900e6cdf0a9cc5acad8410ad0ff35989428a70 (diff) |
#i98806# Added IsSoundEnabled property to mute sound in some slide show views.
Diffstat (limited to 'sdext/source/presenter/PresenterSlideShowView.cxx')
-rw-r--r-- | sdext/source/presenter/PresenterSlideShowView.cxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/sdext/source/presenter/PresenterSlideShowView.cxx b/sdext/source/presenter/PresenterSlideShowView.cxx index ded3fe69c554..2816c7bee395 100644 --- a/sdext/source/presenter/PresenterSlideShowView.cxx +++ b/sdext/source/presenter/PresenterSlideShowView.cxx @@ -162,7 +162,17 @@ void PresenterSlideShowView::LateInit (void) // Add the new slide show view to the slide show. if (mxSlideShow.is() && ! mbIsViewAdded) { - mxSlideShow->addView(this); + Reference<presentation::XSlideShowView> xView (this); + mxSlideShow->addView(xView); + // Prevent embeded sounds being played twice at the same time by + // disabling sound for the new slide show view. + beans::PropertyValue aProperty; + aProperty.Name = A2S("IsSoundEnabled"); + Sequence<Any> aValues (2); + aValues[0] <<= xView; + aValues[1] <<= sal_False; + aProperty.Value <<= aValues; + mxSlideShow->setProperty(aProperty); mbIsViewAdded = true; } |