added support to save thr protection state of cells and reestablish it
upon opening the file.