Bug 163239 - Impress: allow customized placeholder text in master slide to be shown as the "prompt" text in the final slides
Summary: Impress: allow customized placeholder text in master slide to be shown as the...
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: low enhancement
Assignee: Not Assigned
URL:
Whiteboard: QA:needsComment
Keywords: filter:pptx
Depends on:
Blocks: PPTX-MasterSlide
  Show dependency treegraph
 
Reported: 2024-10-01 17:58 UTC by Justin L
Modified: 2024-10-16 03:15 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
custom placeholder text.pptx: created in PowerPoint 2010 (16.99 KB, application/vnd.openxmlformats-officedocument.presentationml.presentation)
2024-10-01 17:58 UTC, Justin L
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Justin L 2024-10-01 17:58:22 UTC
Created attachment 196828 [details]
custom placeholder text.pptx: created in PowerPoint 2010

A master slide can contain placeholder textboxes - which contain strings that are not seen in a slideshow, nor are printed. In MS PowerPoint this text can be customized to say whatever you want, but in LO these are uneditable, pre-defined strings (like STR_PRESOBJ_TITLE", "Click to add Title" or STR_PRESOBJ_MPTITLE", "Click to edit the title text format")

For a long time (at least since LO 5.3) LO has displayed MSO's custom text in the master page view. However, that custom placeholder text has never been displayed on the slide layout. Instead, SdPage::GetPresObjText() just uses the STR_PRESOBJ_* strings. [LO crashes in old versions when I try to look at the master slide, so I don't know when support for custom placeholder text started.]

AFAICS, while ODF allows importing/exporting these customized strings, there is no way in the UI to create or modify them.

PPTX indicates customized placeholders with:  <p:ph ... hasCustomPrompt="1"/>


Steps to reproduce:
1.) Open custom placeholder text.pptx. (Note two empty slides. The first slide has a title box with "Click to add Title" instead of "Custom Title 1")
2.) Switch to master slide view (View - Master Slide). (Note the title is "Custom Title 1" as expected).

Now to be honest, I'm not sure it is a good idea to do what this bug report is requesting. My reasoning relates to how confused the user will likely be when that customized text is NOT displayed during the slideshow. Much better is our consistent, action-oriented strings which instruct the user to fill in the desired content.
Comment 1 Justin L 2024-10-01 18:04:59 UTC
Fixing this was first attempted with https://gerrit.libreoffice.org/c/core/+/158357 but it was reverted because of regression bug tdf#157679