diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-02-05 14:15:33 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-02-06 16:15:05 +0100 |
commit | 61e28e86ed30fb37df96c7fd0807b5aaeacf5eea (patch) | |
tree | e14276ade37009868301313a05c8182346f0bcc1 /chart2 | |
parent | a12ce634d83625886ee6930d6db2999c6864262d (diff) |
add a way to dump chart content to console
CTRL + F12 will dump the chart with the XShapeDumper
Change-Id: I1f40ddf7f51c2038be7af8fc56f626393f11da90
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/controller/main/ChartController_Window.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx index 896273b7ff38..439c13cd9993 100644 --- a/chart2/source/controller/main/ChartController_Window.cxx +++ b/chart2/source/controller/main/ChartController_Window.cxx @@ -1302,6 +1302,7 @@ bool ChartController::execute_KeyInput( const KeyEvent& rKEvt ) KeyCode aKeyCode( rKEvt.GetKeyCode()); sal_uInt16 nCode = aKeyCode.GetCode(); bool bAlternate = aKeyCode.IsMod2(); + bool bCtrl = aKeyCode.IsMod1(); if( m_apAccelExecute.get() ) bReturn = m_apAccelExecute->execute( aKeyCode ); @@ -1501,6 +1502,17 @@ bool ChartController::execute_KeyInput( const KeyEvent& rKEvt ) } } + // dumping the shape + if( !bReturn && bCtrl && nCode == KEY_F12) + { + uno::Reference< qa::XDumper > xChartModel( getModel(), uno::UNO_QUERY ); + if(xChartModel.is()) + { + OUString aDump = xChartModel->dump(); + SAL_WARN("chart2", aDump); + } + } + // text edit if( ! bReturn && nCode == KEY_F2 ) |