https://bugs.documentfoundation.org/show_bug.cgi?id=69192

--- Comment #3 from Justin L <jl...@mail.com> ---
It certainly will not be straightforward to do this.

The command line can fairly easily be parsed to get the result in
desktop/source/app/cmdlineargs.cxx

Then in desktop/source/app/dispatchwatcher.cxx it will need to be turned into
something like a SID_PAGE_NUMBER. (Unfortunately, the current implementation of
SlideshowImpl::createSlideList is expecting an exact match on the slide name,
like "Slide 3", and not just a number.)

At DrawDocShell::Load, the SID_DOC_STARTPRESENTATION causes
mpDoc->SetStartWithPresentation( true ), so likely SdDrawDocument will need to
be extended to also SetStartingPage().

This is the turning point, when we get to ViewShellBase::Notify which only has
a SfxEventHintId::OpenDoc hint that only can check if IsStartWithPresentation
and thus calls an option-less SID_PRESENTATION

ShowSlideShow sees the SID_PRESENTATION and does a
xPresentation->startWithArguments with a hard-coded FirstPage = 0 (which
doesn't actually work like you would think, but only works because "0" is never
found and thus it falls back to the first slide).

So then, SID_PRESENTATION must be extended to accept a starting page, because
otherwise every time ShowSlideShow is called it would start at the
command-line-provided start page (if we made a
GetDocument().GetStartingPage()).

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to