summaryrefslogtreecommitdiff
path: root/sw/source/core/text/xmldump.cxx
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-09-14 11:20:47 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-09-21 07:30:11 +0200
commite13510cf2c54f85379fa959296a8ccf7a8cd5cb7 (patch)
tree0b5f466994541ef9efd94e4a1f4aed0c6de3b88d /sw/source/core/text/xmldump.cxx
parentf78216d15dbf0ac236894177a2876fe7dad608da (diff)
sw layout dump: show selection ranges from all shells
Change-Id: I89d0f3c66f3939fc6795892d727d782c3f8bbda3
Diffstat (limited to 'sw/source/core/text/xmldump.cxx')
-rw-r--r--sw/source/core/text/xmldump.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/sw/source/core/text/xmldump.cxx b/sw/source/core/text/xmldump.cxx
index bc5bd853a538..fa985610241b 100644
--- a/sw/source/core/text/xmldump.cxx
+++ b/sw/source/core/text/xmldump.cxx
@@ -295,12 +295,10 @@ void SwFrm::dumpAsXml( xmlTextWriterPtr writer ) const
if (IsRootFrm())
{
- // Root frame has access to the edit shell, so dump the current selection ranges here.
- const SwRootFrm* const pRootFrm = static_cast<const SwRootFrm* const>(this);
- SwEditShell* pEditShell = pRootFrm->GetCurrShell()->GetDoc()->GetEditShell();
- xmlTextWriterStartElement(writer, BAD_CAST("shellCrsr"));
- for (SwPaM& rPaM : pEditShell->getShellCrsr(false)->GetRingContainer())
- rPaM.dumpAsXml(writer);
+ const SwRootFrm* pRootFrm = static_cast<const SwRootFrm*>(this);
+ xmlTextWriterStartElement(writer, BAD_CAST("shells"));
+ for (SwViewShell& rViewShell : pRootFrm->GetCurrShell()->GetRingContainer())
+ rViewShell.dumpAsXml(writer);
xmlTextWriterEndElement(writer);
}