Tells whether a document viewed in the window is read only, or not.
This function is used to prevent saving of read-only documents via the "Windows" dialog.