Bug 147440

Summary: Custom shape support for placeholder shapes
Product: LibreOffice Reporter: Andras Timar <timar74>
Component: ImpressAssignee: Not Assigned <libreoffice-bugs>
Status: UNCONFIRMED ---    
Severity: enhancement CC: aron.budea, gerald
Priority: medium    
Version: unspecified   
Hardware: All   
OS: All   
See Also: https://bugs.documentfoundation.org/show_bug.cgi?id=132557
Whiteboard: QA:needsComment
Crash report or crash signature: Regression By:

Description Andras Timar 2022-02-15 13:19:00 UTC
This is a follow-up of bug #132557

It appears that placeholder shapes with service names:
  - com.sun.star.presentation.TitleTextShape
  - com.sun.star.presentation.DateTimeShape
  - com.sun.star.presentation.FooterShape
  - com.sun.star.presentation.SlideNumberShape
  ...

Are unable to have custom shapes in Impress. (i.e. can't be
ellipse, triangle etc.). These presets get specified in OOXML
with <a:prstGeom prst="ellipse"/> inside spPr (shape properties).

If we opt in and import them as custom shapes, it is recognized by the document model as missing title/subtitle in a slide and some new placeholders appear on the slide.

It is possible to disable these for footer placeholders, so in the implementation, we import footers as custom shapes only to slides. At the initial import correctly displaying the slide.

But if the imported slideshow gets edited and a new slide with footers gets added, the footers in the new slides would become rectangles. (This is because we can't import footers into the master slides as custom shapes - doing so would mean that they would get inserted to each page without considering any placeholder context)

A better fix would be implementing custom shape support for placeholder shapes. 
It would be a large feature work.