summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd/inc/strings.hrc1
-rw-r--r--sd/source/ui/slideshow/slideshow.cxx6
2 files changed, 7 insertions, 0 deletions
diff --git a/sd/inc/strings.hrc b/sd/inc/strings.hrc
index 16a35da20e35..22f10372f2ab 100644
--- a/sd/inc/strings.hrc
+++ b/sd/inc/strings.hrc
@@ -147,6 +147,7 @@
#define STR_EFFECTDLG_DOCUMENT NC_("STR_EFFECTDLG_DOCUMENT", "Document")
#define STR_EFFECTDLG_PROGRAM NC_("STR_EFFECTDLG_PROGRAM", "Program")
#define STR_EFFECTDLG_MACRO NC_("STR_EFFECTDLG_MACRO", "Macro")
+#define STR_FULLSCREEN_SLIDESHOW NC_("STR_FULLSCREEN_SLIDESHOW", "Presenting: %s")
// Strings for animation effects
#define STR_INSERT_TEXT NC_("STR_INSERT_TEXT", "Insert Text")
#define STR_SLIDE_SINGULAR NC_("STR_SLIDE_SINGULAR", " Slide")
diff --git a/sd/source/ui/slideshow/slideshow.cxx b/sd/source/ui/slideshow/slideshow.cxx
index 5bf3202dd0e2..864cc4a8b2bb 100644
--- a/sd/source/ui/slideshow/slideshow.cxx
+++ b/sd/source/ui/slideshow/slideshow.cxx
@@ -57,6 +57,8 @@
#include <sdpage.hxx>
#include <cusshow.hxx>
#include <optsitem.hxx>
+#include <strings.hrc>
+#include <sdresid.hxx>
using ::com::sun::star::presentation::XSlideShowController;
using ::sd::framework::FrameworkHelper;
@@ -1111,6 +1113,10 @@ void SlideShow::StartFullscreenPresentation( )
const sal_Int32 nDisplay (GetDisplay());
VclPtr<WorkWindow> pWorkWindow = VclPtr<FullScreenWorkWindow>::Create(this, mpCurrentViewShellBase);
pWorkWindow->SetBackground(Wallpaper(COL_BLACK));
+ OUString Title(SdResId(STR_FULLSCREEN_SLIDESHOW));
+ Title = Title.replaceFirst("%s",
+ mpCurrentViewShellBase->GetDocShell()->GetTitle(SFX_TITLE_DETECT));
+ pWorkWindow->SetText(Title);
pWorkWindow->StartPresentationMode( true, mpDoc->getPresentationSettings().mbAlwaysOnTop ? PresentationFlags::HideAllApps : PresentationFlags::NONE, nDisplay);
// pWorkWindow->ShowFullScreenMode(sal_False, nDisplay);