I am not so sure about the mechanics of the undo stack and the meaning of verbs. I have coded an improvement to the user interface for embedding color profiles in a document and I have used the sp_document_done call. The patch is attached.

Could anybody review it?

It adds a "remove" context menu option in the "Embedded color profiles" box that appears in the "Color Management" tab in "document settings" dialog. Undoing and redoing works ok, but I am not sure aobut the verbs. I expected it to call the update() method onde the user press CTRL+Z or SHIFT+CTRL+Z so that my widgets would be properly updated.

Juca