How to create a lockedCanvas in MSWord?

Regina Henschel rb.henschel at
Fri Jul 30 11:12:26 UTC 2021

Hi Miklos, hi all,

my patch is now in

I have included tests with image, line, group, and custom-shape.

The lockedCanvas can have child element GvmlGraphicObjectFrame in 
addition. That is TableShape, ChartShape or OLE2Shape, I think. So if 
someone has a test document for that, I could test whether it really 
works and write a unittest with it.

If you can generate such document, please attach it to

Besides that, the patch is ready. Because it changes the way 
lockedCanvas is imported, it would be good, if you review it.

Kind regards

Miklos Vajna schrieb am 27.07.2021 um 08:56:
> Hi Regina,
> On Mon, Jul 26, 2021 at 02:21:51AM +0200, Regina Henschel <rb.henschel at> wrote:
>> does someone know, how to create a document in MSWord, which uses a
>> lockedCanvas? Or is that only possible via macro? It would be good to be
>> able to generate own test documents.
> My understanding is that lockedCanvas is a workaround, because the
> drawingML impl in PowerPoint 2007 was ready but not in Word 2007. So
> when you copy a set of shapes from PowerPoint to Word in that version,
> Word can render but not edit those shapes, locking them down.
> I think 2010 and newer versions don't have this behavior anymore, but
> the lockedCanvas element is now with us forever.
> I attach a sample I just created this way in MSO 2007.
> Regards,
> Miklos

More information about the LibreOffice mailing list