Fix header ifdefs.
Update changes.
Rename AbstractDocument::readOnly to writable.