diff options
author | Jakub Golebiewski <kubusg@gmail.com> | 2013-04-09 23:45:52 +0200 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2013-04-16 20:21:59 +0200 |
commit | baffab9a4ffca9a4940a3310937d6e858e66cc1f (patch) | |
tree | 16f2cfe479eed9e44a29b5bb4ee214b2fff704b5 /sd/source/ui/slidesorter | |
parent | f4ebb99de6e93f6d38e7b0486d66e99a196b1f6e (diff) |
Bug 58505 - Tweak F5 for slide display, and add Shift-F5
Added menu entry to start the presentation from current slide.
Changed "Start Presentation" menu entry behavior so it starts
from the first slide.
Change-Id: Iebba85d2d1dcacad7da6b050e2152be5c0d47261
Diffstat (limited to 'sd/source/ui/slidesorter')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsSlotManager.cxx | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx index a07ef14b017e..9df10f5d8026 100644 --- a/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx +++ b/sd/source/ui/slidesorter/controller/SlsSlotManager.cxx @@ -19,6 +19,8 @@ #include <com/sun/star/presentation/XPresentation2.hpp> +#include <com/sun/star/beans/PropertyValue.hpp> +#include <com/sun/star/uno/Any.hxx> #include <editeng/outlobj.hxx> @@ -91,6 +93,7 @@ using namespace ::com::sun::star; using namespace ::com::sun::star::uno; using namespace ::com::sun::star::presentation; +using namespace ::com::sun::star::beans; namespace sd { namespace slidesorter { namespace controller { @@ -138,6 +141,7 @@ void SlotManager::FuTemporary (SfxRequest& rRequest) switch (rRequest.GetSlot()) { case SID_PRESENTATION: + case SID_PRESENTATION_THIS_SLIDE: case SID_REHEARSE_TIMINGS: ShowSlideShow (rRequest); pShell->Cancel(); @@ -882,9 +886,29 @@ void SlotManager::ShowSlideShow( SfxRequest& rReq) if( xPresentation.is() ) { if( ( SID_REHEARSE_TIMINGS != rReq.GetSlot() ) ) - xPresentation->start(); + { + if( (SID_PRESENTATION == rReq.GetSlot() ) ) + { + Sequence< PropertyValue > aArguments(1); + PropertyValue aPage; + OUString sValue("0"); + + aPage.Name = "FirstPage"; + aPage.Value <<= sValue; + + aArguments[0] = aPage; + + xPresentation->startWithArguments( aArguments ); + } + else + { + xPresentation->start(); + } + } else + { xPresentation->rehearseTimings(); + } } } |