Kaydet (Commit) 438f5cf4 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: fdo#69975 honour custom show settings

if a custom show is set, then don't override it with
current/first page, just accept it

Change-Id: Icd04711028b3e11a576df6cd325ddb0db8974111
üst 368e94ce
......@@ -1648,29 +1648,35 @@ namespace slideshowhelp
Reference< XPresentation2 > xPresentation( rDoc.getPresentation() );
if( xPresentation.is() )
{
if( ( SID_REHEARSE_TIMINGS != rReq.GetSlot() ) )
if (SID_REHEARSE_TIMINGS == rReq.GetSlot())
xPresentation->rehearseTimings();
else if (rDoc.getPresentationSettings().mbCustomShow)
{
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();
}
//fdo#69975 if a custom show has been set, then
//use it whether or not we've been asked to
//start from the current or first slide
xPresentation->start();
}
else if (SID_PRESENTATION_CURRENT_SLIDE == rReq.GetSlot())
{
//If there is no custom show set, start will automatically
//start at the current page
xPresentation->start();
}
else
{
xPresentation->rehearseTimings();
//Start at page 0, this would blow away any custom
//show settings if any were set
Sequence< PropertyValue > aArguments(1);
PropertyValue aPage;
OUString sValue("0");
aPage.Name = "FirstPage";
aPage.Value <<= sValue;
aArguments[0] = aPage;
xPresentation->startWithArguments( aArguments );
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment