code: 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;
      }
docs: Get the current step