Factor out SwNumRuleItem::dumpAsXml() from nodedump

Change-Id: I893d358f8a842e19248cfeb151170ed2872c3dae
Unused includes

Change-Id: I84e475a64cf09e4eeea524b73f8febf7f0a1a46b