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

Hossein <hoss...@libreoffice.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|needsDevEval                |difficultyMedium, skillCpp,
                   |                            |topicUI

--- Comment #2 from Hossein <hoss...@libreoffice.org> ---
(In reply to Stéphane Guillou (stragu) from comment #1)
> Makes perfect sense, thanks Timur.
> Hossein, I assume "difficultyBeginner"?

This is an EasyHack, but I should say difficultyMedium is better suited.

As the improvement is described as being similar to choosing the title
"Presenting: file" while presenting, it is good to start from that string.
Searching for a string literal starting with "Presenting, leads to a few
results:

$ git grep -F "\"Presenting"
sd/inc/strings.hrc:#define STR_FULLSCREEN_SLIDESHOW                       
NC_("STR_FULLSCREEN_SLIDESHOW", "Presenting: %s")
...

It is clear that STR_FULLSCREEN_SLIDESHOW is the symbolic constant used to set
the title in this case. Searching for it leads to the function
SlideShow::StartFullscreenPresentation() in
sd/source/ui/slideshow/slideshow.cxx source code:

$ git grep STR_FULLSCREEN_SLIDESHOW
...
sd/source/ui/slideshow/slideshow.cxx:    OUString
Title(SdResId(STR_FULLSCREEN_SLIDESHOW));

This function handles creation of extra window for presentation, and setting
its title and other attributes. Setting the title is done via the SetText()
function of the window object:

pWorkWindow->SetText(Title);

The source code for Console is inside sd/source/console folder. There are
various C++ files inside this folder. But, searching for the SetText() function
only returns another file, which is FullScreenPane.cxx.

$ git grep -i "window->SetText" sd
sd/source/ui/framework/factories/FullScreenPane.cxx:       
mpWorkWindow->SetText(pSystemWindow->GetText());
sd/source/ui/slideshow/slideshow.cxx:    pWorkWindow->SetText(Title);

The console is displayed in a FullScreenPane. The title of the Window is taken
from the parent window, as described in FullScreenPane constructor. This should
be changed to achieve the desired improvement here. 

Note:
As described in LibreOffice help, one needs 2 displays to see the presenter
console on the auxiliary display. Also, it is important to make sure that the
appropriate option is activated via "Tools > Options > LibreOffice Impress >
General". There, "Enable Presenter Console" should be checked.
https://help.libreoffice.org/latest/en-US/text/simpress/guide/presenter_console.html

It is also possible to use a specific configuration inside
/org.openoffice.Office.PresenterScreen/ section of the LibreOffice expert
configuration to force the console to be always activated.
To enable this option, one has to go to "Tools > Options > LibreOffice >
Advanced > Open Expert Configuration", search for "StartAlways", and then
change the option to "true". After clicking on "OK", the console will be always
displayed, even if there is only 1 display available. This behavior is handled
in sd/source/console/PresenterScreen.cxx.

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

Reply via email to