| 786 | } |
| 787 | |
| 788 | void Document::CheckReadOnly() { |
| 789 | if (cb.IsReadOnly() && enteredReadOnlyCount == 0) { |
| 790 | enteredReadOnlyCount++; |
| 791 | NotifyModifyAttempt(); |
| 792 | enteredReadOnlyCount--; |
| 793 | } |
| 794 | } |
| 795 | |
| 796 | // Document only modified by gateways DeleteChars, InsertString, Undo, Redo, and SetStyleAt. |
| 797 | // SetStyleAt does not change the persistent state of a document |