writerfilter: turn SourceDocumentType into a C++11 scoped enumeration

Change-Id: I11c550d0ec5a10f17116ac8f7025c0283e292f2e