Commentary change only
Add a field editCounter to count text changes
Change the ohTextChanged slot to increment IMC.editCounter
Automatically refresh the footnote table before a major operation
function canWeRevise is called before Renumber, Move,
ascii-convert or html-convert. Previously it just looked
at the count of mismatched notes from the prior refresh.
However this is inadequate in the following two scenarios:
1) The user refreshes, all notes are good, now edits the doc
so as to make a note invalid. Click Renumber and the operation
will go ahead and do something bad to one or more notes.
2) The user refreshes then edits the document to move one
or more notes, then clicks Move, the move will mis-do.
So now we make sure the refresh is current since the last
edit of any kind whatever, and all notes are valid as of then.
If the user clicks Refresh manually and immediately requests
Renumber, move or convert, no extra refresh will be done.