summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/controller/main/ChartController_Window.cxx12
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 )