Aroslav Resovsky, I am posting this to the dev mailing list since I have never seen an answer to this question, but I have seen it asked a couple of times on the dev mailing list.

What is the accepted method for accepting or rejecting a change?

I know that I can accept all of the changes using a dispatch:

Sub AcceptTrackedChanges
dim document   as object
dim dispatcher as object

document   = ThisComponent.CurrentController.Frame
dispatcher = createUnoService("com.sun.star.frame.DispatchHelper")

dispatcher.executeDispatch(document, ".uno:AcceptTrackedChanges", "", 0, Array())
End Sub

I can enumerate the text and find the start and end redline changes. What is the expected method to accept or reject a single change? My guess:

To Delete:
Select the text from the change start to the change end, and then simple set it to an empty string.

To accept:
Select the "readline" text content for begin and end and then delete it.

I have not tried this yet, but I will if that is the expected method.



--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
My Book: http://www.hentzenwerke.com/catalog/oome.htm
Info:  http://www.pitonyak.org/oo.php
See Also: http://documentation.openoffice.org/HOW_TO/index.html


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to