Factor out SwFrmFmt::dumpAsXml() from SwFrmFmts::dumpAsXml()

Change-Id: I494e6cd44087924d4b1f4fb9fcc599040d64390c