diff options
author | Thorsten Behrens <tbehrens@suse.com> | 2013-10-11 18:07:37 +0200 |
---|---|---|
committer | Thorsten Behrens <thb@documentfoundation.org> | 2013-10-11 18:10:05 +0200 |
commit | 516ecd072f9dbfbacce77127a02b666ce387982d (patch) | |
tree | 2b2b75b4d5daaf34614dbaf7c20c20d33a736132 /sd/source | |
parent | be194006496368bfd5bd0d93ac45e729814961f1 (diff) |
Restore persistent userpaint functionality in slideshow.
This was part of i103174 - Code from the ecntablet and eraser CWS;
optionally improves user paint interactions in slideshow, and got
accidentally cleaned away for being commented out.
Change-Id: I4fb87a3e1cb834e10ae766ed8c58cd6f2397c45f
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/ui/slideshow/slideshowimpl.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sd/source/ui/slideshow/slideshowimpl.cxx b/sd/source/ui/slideshow/slideshowimpl.cxx index afc85dcbf749..33506755f475 100644 --- a/sd/source/ui/slideshow/slideshowimpl.cxx +++ b/sd/source/ui/slideshow/slideshowimpl.cxx @@ -1422,6 +1422,13 @@ void SlideshowImpl::displayCurrentSlide (const bool bSkipAllMainSequenceEffects) void SlideshowImpl::endPresentation() { + if( maPresSettings.mbMouseAsPen) + { + Reference< XMultiServiceFactory > xDocFactory(mpDoc->getUnoModel(), UNO_QUERY ); + if( xDocFactory.is() ) + mxShow->registerUserPaintPolygons(xDocFactory); + } + if( !mnEndShowEvent ) mnEndShowEvent = Application::PostUserEvent( LINK(this, SlideshowImpl, endPresentationHdl) ); } |