add a way to dump chart content to console

CTRL + F12 will dump the chart with the XShapeDumper

Change-Id: I1f40ddf7f51c2038be7af8fc56f626393f11da90
This commit is contained in:
Markus Mohrhard
2014-02-05 14:15:33 +01:00
parent a12ce634d8
commit 61e28e86ed

View File

@@ -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 )