Factor out SdrModel::dumpAsXml() from SwDoc::dumpAsXml()

Change-Id: Ic2cc6507390edfd0bc5a38b655a3b652fd5ec33e