diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2011-09-23 17:51:41 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2011-09-23 18:27:57 +0200 |
commit | b848a2eb7ff2d58251d1f83356c6e6e7a74f23ea (patch) | |
tree | e2592c62abc33fa61d203f69e27085c4271301a0 /sw/source/ui/docvw/edtwin.cxx | |
parent | 6cb1cb26d8b512fa91bed8eb070fb68b6c839dff (diff) |
debug support for dumping writer nodes structure
Similarly to the layout debug support. F12 -> layout, Shift+F12 -> nodes.
Diffstat (limited to 'sw/source/ui/docvw/edtwin.cxx')
-rw-r--r-- | sw/source/ui/docvw/edtwin.cxx | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/sw/source/ui/docvw/edtwin.cxx b/sw/source/ui/docvw/edtwin.cxx index cac527739ce7..bc1e4b8774f0 100644 --- a/sw/source/ui/docvw/edtwin.cxx +++ b/sw/source/ui/docvw/edtwin.cxx @@ -1363,12 +1363,20 @@ void SwEditWin::KeyInput(const KeyEvent &rKEvt) sal_Bool bChkInsBlank = pQuickHlpData->bChkInsBlank; pQuickHlpData->bChkInsBlank = sal_False; -#if OSL_DEBUG_LEVEL > 1 +#if OSL_DEBUG_LEVEL > 0 if (rKEvt.GetKeyCode().GetCode() == KEY_F12) { - SwRootFrm* pLayout = GetView().GetDocShell()->GetWrtShell()->GetLayout(); - pLayout->dumpAsXml( ); - return; + if( rKEvt.GetKeyCode().IsShift()) + { + GetView().GetDocShell()->GetDoc()->dumpAsXml(); + return; + } + else + { + SwRootFrm* pLayout = GetView().GetDocShell()->GetWrtShell()->GetLayout(); + pLayout->dumpAsXml( ); + return; + } } #endif |