summaryrefslogtreecommitdiff
path: root/sw/source/core/crsr
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/crsr
parentf78216d15dbf0ac236894177a2876fe7dad608da (diff)
sw layout dump: show selection ranges from all shells
Change-Id: I89d0f3c66f3939fc6795892d727d782c3f8bbda3
Diffstat (limited to 'sw/source/core/crsr')
-rw-r--r--sw/source/core/crsr/crsrsh.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/sw/source/core/crsr/crsrsh.cxx b/sw/source/core/crsr/crsrsh.cxx
index 92916e4c4a12..38e584ad0272 100644
--- a/sw/source/core/crsr/crsrsh.cxx
+++ b/sw/source/core/crsr/crsrsh.cxx
@@ -3310,6 +3310,20 @@ OUString SwCrsrShell::GetCrsrDescr() const
return aResult;
}
+void SwCrsrShell::dumpAsXml(xmlTextWriterPtr pWriter) const
+{
+ xmlTextWriterStartElement(pWriter, BAD_CAST("swCrsrShell"));
+
+ SwViewShell::dumpAsXml(pWriter);
+
+ xmlTextWriterStartElement(pWriter, BAD_CAST("m_pCurCrsr"));
+ for (SwPaM& rPaM : m_pCurCrsr->GetRingContainer())
+ rPaM.dumpAsXml(pWriter);
+ xmlTextWriterEndElement(pWriter);
+
+ xmlTextWriterEndElement(pWriter);
+}
+
static void lcl_FillRecognizerData( uno::Sequence< OUString >& rSmartTagTypes,
uno::Sequence< uno::Reference< container::XStringKeyMap > >& rStringKeyMaps,
const SwWrongList& rSmartTagList, sal_Int32 nCurrent )