How to detect if changes have been made in an SDLXLIFF document since it is open

Dear all,

I am using the EditorController.Closed event to run some functionalities on my SDLXLIFF file when it is closed. This works fine. However, I would like to run my functionalities only if any changes were made to the document.

It happens that a translator opens a document by inadvertence and then close it just after opening without making modifications. In this case, I do not want to apply my code and would like therefore to detect if any changes were made before running the code in the EditorController.Closed event.

I found that the EditorController.ActiveDocument has a Contentchanged event and thought that this event would be raised as soon as the document is modified but it does not seem to be the case.

Does anyone know:

1. How I can check if the content of the SDLXLIFF file has changed?

2. What is the purpose of the ActiveDocument.Contentchanged event ???? ;-)

Thanks in advance for your support.

Regards,

Laurent

Parents Reply Children
No Data