Classes for handling text documents in a text editor.