Christian Junker schreef:
Hi Jo,
it's not clear to me what your goal is, can you be a bit more specific
so that people can more easily help you find a solution?
2006/6/3, Jo <[EMAIL PROTECTED]>:
Hi,
I created the following with Record Macro to record all changes made to
a document. I was wondering if there would be a cleaner way to
accomplish this. (i.e. without dispatcher)
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
Hi Christian,
I read in Andrew Pitonyak's book that working with the dispatcher is
sort of a last resort. The names of the dispatcher objects may change
from one release to another the book says, so I have a working solution,
but I was wondering if there is a better solution that doesn't depend on
the dispatcher.
Many thanks for your answer,
Jo
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]