IDocumentModel: add get document begin/end methods