diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-10 11:42:36 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2015-11-10 14:10:01 +0100 |
commit | b3b9f2c5b4dde4c5ea9736f8ceda4cdb98036b0b (patch) | |
tree | 39e17135c4b34002f286c042a0c25b437df3d60f /sw | |
parent | 9b504ad3ae9f71ea02df2ab6f2c2fbd59d38ae9a (diff) |
sw: allow doc model xml dump creation while editing comment text
Change-Id: Ie682cfe97b8c48bc66575b89875ca617dbb8ab4e
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/docvw/SidebarTxtControl.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sw/source/uibase/docvw/SidebarTxtControl.cxx b/sw/source/uibase/docvw/SidebarTxtControl.cxx index 4ab884bbad47..4b1c27476a6b 100644 --- a/sw/source/uibase/docvw/SidebarTxtControl.cxx +++ b/sw/source/uibase/docvw/SidebarTxtControl.cxx @@ -20,6 +20,8 @@ #include <SidebarTxtControl.hxx> #include <SidebarTxtControlAcc.hxx> +#include <docsh.hxx> +#include <doc.hxx> #include <SidebarWin.hxx> #include <PostItMgr.hxx> @@ -187,6 +189,15 @@ void SidebarTextControl::Paint(vcl::RenderContext& rRenderContext, const Rectang void SidebarTextControl::KeyInput( const KeyEvent& rKeyEvt ) { + if (getenv("SW_DEBUG") && rKeyEvt.GetKeyCode().GetCode() == KEY_F12) + { + if (rKeyEvt.GetKeyCode().IsShift()) + { + mrDocView.GetDocShell()->GetDoc()->dumpAsXml(); + return; + } + } + const vcl::KeyCode& rKeyCode = rKeyEvt.GetKeyCode(); sal_uInt16 nKey = rKeyCode.GetCode(); if ( ( rKeyCode.IsMod1() && rKeyCode.IsMod2() ) && |