IOW how do I make OOo's undo/redo work properly when a macro is executed?
This is related to my previous question: #853176
IOW how do I make OOo's undo/redo work properly when a macro is executed?
This is related to my previous question: #853176
In Word this can be achieved by adding a bookmark to the document at the beginning of the macro which is then removed when the macro is done. When calling Undo the presence of such a special bookmark is checked and the undo operation is repeated until the special bookmark is removed from the document.
I assume a similar approach would work with OpenOffice.org as well.
See Can I create an undo transaction in Word or Excel? (VSTO) for more details.