editeng/source/editeng/editeng.cxx | 5 +++++ include/editeng/editeng.hxx | 1 + sd/source/ui/view/sdwindow.cxx | 3 +++ 3 files changed, 9 insertions(+)
New commits: commit d76027bb78f71ee69748ce01d8ea0f702a32aa61 Author: Noel Grandin <n...@peralex.com> Date: Wed Oct 19 15:44:39 2016 +0200 add dumpAsXmlEditDoc to dump the current editing document to editdoc.xml on F12 Change-Id: I1b9cc2edb6429aa0bf651bdd52cac70dfd4db9d0 diff --git a/editeng/source/editeng/editeng.cxx b/editeng/source/editeng/editeng.cxx index 3047c4c..a612872 100644 --- a/editeng/source/editeng/editeng.cxx +++ b/editeng/source/editeng/editeng.cxx @@ -862,6 +862,11 @@ const EditDoc& EditEngine::GetEditDoc() const return pImpEditEngine->GetEditDoc(); } +void EditEngine::dumpAsXmlEditDoc(struct _xmlTextWriter* pWriter) const +{ + pImpEditEngine->GetEditDoc().dumpAsXml(pWriter); +} + ParaPortionList& EditEngine::GetParaPortions() { return pImpEditEngine->GetParaPortions(); diff --git a/include/editeng/editeng.hxx b/include/editeng/editeng.hxx index 4825865..873b344 100644 --- a/include/editeng/editeng.hxx +++ b/include/editeng/editeng.hxx @@ -533,6 +533,7 @@ public: EditDoc& GetEditDoc(); const EditDoc& GetEditDoc() const; + void dumpAsXmlEditDoc(struct _xmlTextWriter* pWriter) const; ParaPortionList& GetParaPortions(); const ParaPortionList& GetParaPortions() const; diff --git a/sd/source/ui/view/sdwindow.cxx b/sd/source/ui/view/sdwindow.cxx index abcaaee..bd60739 100644 --- a/sd/source/ui/view/sdwindow.cxx +++ b/sd/source/ui/view/sdwindow.cxx @@ -26,6 +26,7 @@ #include <editeng/outliner.hxx> #include <editeng/editview.hxx> +#include <editeng/editeng.hxx> #include "app.hrc" #include "helpids.h" @@ -224,6 +225,8 @@ void Window::KeyInput(const KeyEvent& rKEvt) if (getenv("SD_DEBUG") && rKEvt.GetKeyCode().GetCode() == KEY_F12 && mpViewShell) { mpViewShell->GetDoc()->dumpAsXml(nullptr); + OutlinerView *pOLV = mpViewShell->GetView()->GetTextEditOutlinerView(); + pOLV->GetEditView().GetEditEngine()->dumpAsXmlEditDoc(nullptr); return; } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits