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

Change-Id: Ida16087b1d954454c672ddeec78b8dfe0e5a45fe