saveNextDocumentAsSaveAll means Save next document performed as a part of SaveAll feature.

The function saveNextDocument() is already used and can be used only by Display preview feature.
That's why I create another saveNextDocument function for SaveAll feature.

Let me know if you have any suggestion about function name instead of "saveNextDocumentAsSaveAll".