Kaydet (Commit) b3b9f2c5 authored tarafından Miklos Vajna's avatar Miklos Vajna

sw: allow doc model xml dump creation while editing comment text

Change-Id: Ie682cfe97b8c48bc66575b89875ca617dbb8ab4e
üst 9b504ad3
......@@ -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() ) &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment