Files
Tuong Nguyen Manh 6592dfb082 pptx writer: Handle reference doc without slides (#11310)
An empty `sldIdLst` is now added if the reference doc is missing one so that
`modifySldIdLst` can replace it. To ensure PowerPoint doesn't say that the file
will need fixing, the `sldIdLst` has to be placed after the `sldMasterIdLst`.
I also added a test to ensure that if there are notes, they will be placed between
the `sldMasterIdLst` and `sldIdLst`. Otherwise PowerPoint wouldn't show the
slide of a note when viewing Notes Pages.

Closes #7536.
2025-11-30 13:17:34 +01:00

71 lines
1.2 KiB
Plaintext

[ Header
2
( "first-slide" , [] , [] )
[ Str "First" , Space , Str "Slide" ]
, Para
[ Str "First"
, Space
, Str "slide"
, Space
, Str "with"
, Space
, Str "notes"
]
, Div
( "" , [ "notes" ] , [] )
[ Para
[ Str "Notes"
, Space
, Str "for"
, Space
, Str "the"
, Space
, Str "first"
, Space
, Str "slide"
]
]
, Header
2
( "second-slide" , [] , [] )
[ Str "Second" , Space , Str "Slide" ]
, Para
[ Str "Slide"
, Space
, Str "without"
, Space
, Str "notes"
]
, Header
2
( "third-slide" , [] , [] )
[ Str "Third" , Space , Str "Slide" ]
, Para
[ Str "Slide"
, Space
, Str "with"
, Space
, Str "notes"
, Space
, Str "again"
]
, BulletList
[ [ Plain [ Str "First" , Space , Str "item" ] ]
, [ Plain [ Str "Second" , Space , Str "item" ] ]
]
, Div
( "" , [ "notes" ] , [] )
[ Para
[ Str "Notes"
, Space
, Str "for"
, Space
, Str "the"
, Space
, Str "third"
, Space
, Str "slides"
]
]
]