Hi Sarath,
is there any possibility to perform "Edit->Compare Document" within
the
API
the following macro should compare the current document with one of
your choice and open the "Accept or Reject changes" dialog ...
-----------------------------------------------
dim xFrame as object
dim xDispatchHelper as object
xFrame = ThisComponent.CurrentController.Frame
xDispatchHelper = createUnoService("com.sun.star.frame.DispatchHelper")
dim args(0) as new com.sun.star.beans.PropertyValue
args(0).Name = "URL"
args(0).Value = "file:///<whereever the file is you want to compare
the current document with>"
xDispatchHelper.executeDispatch(xFrame, ".uno:CompareDocuments", "",
0, args())
-----------------------------------------------
Hope that helps
Regards
Stephan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]