private int getCurrentStep ( ) { int step = - 1 ; try { XPropertySet xDialogModelPropertySet = ( XPropertySet ) UnoRuntime . queryInterface ( XPropertySet . class , m_xMSFDialogModel ) ; step = ( ( Integer ) xDialogModelPropertySet . getPropertyValue ( "Step" ) ) . intValue ( ) ; } catch ( com . sun . star . uno . Exception exception ) { exception . printStackTrace ( System . out ) ; } return step ; }
Get the current step