}
}
public void setConvertDialogControls(){
if(m_xConvertDialog != null){
XRadioButton xRadioButton2 = null;
XControl xControl = null;
String disabledOptionButton = "convertOptionButton";
XControlContainer xControlContainer = (XControlContainer) UnoRuntime.queryInterface(XControlContainer.class, m_xConvertDialog);
if(xControlContainer != null){
if(getController().getGroupType() == Controller.ORGANIGROUP){
if(getController().getDiagramType() == Controller.SIMPLEORGANIGRAM){
xRadioButton2 = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton2"));
xRadioButton2.setState(true);
disabledOptionButton += 1;
}
if(getController().getDiagramType() == Controller.HORIZONTALORGANIGRAM)
disabledOptionButton += 2;
if(getController().getDiagramType() == Controller.TABLEHIERARCHYDIAGRAM)
disabledOptionButton += 3;
//if(getController().getDiagramType() == Controller.ORGANIGRAM)
// disabledOptionButton += 4;
if(getController().getDiagramType() != Controller.ORGANIGRAM){
xControl = (XControl) UnoRuntime.queryInterface(XControl.class, xControlContainer.getControl(disabledOptionButton));
enableControl(xControl, false);
}else{
XListBox xListBoxOfConvertDialog = (XListBox)UnoRuntime.queryInterface(XListBox.class, xControlContainer.getControl("lastHorLevelListBox"));
xListBoxOfConvertDialog.selectItemPos(OrgChartTree.LASTHORLEVEL, true);
}
}
if(getController().getGroupType() == Controller.RELATIONGROUP || getController().getGroupType() == Controller.PROCESSGROUP){
if(getController().getDiagramType() == Controller.VENNDIAGRAM){
xRadioButton2 = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton2"));
xRadioButton2.setState(true);
disabledOptionButton += 1;
}
if(getController().getDiagramType() == Controller.CYCLEDIAGRAM)
disabledOptionButton += 2;
if(getController().getDiagramType() == Controller.PYRAMIDDIAGRAM)
disabledOptionButton += 3;
if(getController().getDiagramType() == Controller.TARGETDIAGRAM)
disabledOptionButton += 4;
if(getController().getDiagramType() == Controller.CONTINUOUSBLOCKPROCESS) {
xRadioButton2 = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton6"));
xRadioButton2.setState(true);
disabledOptionButton += 5;
}
if(getController().getDiagramType() == Controller.STAGGEREDPROCESS) {
xRadioButton2 = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton5"));
xRadioButton2.setState(true);
disabledOptionButton += 6;
}
if(getController().getDiagramType() == Controller.BENDINGPROCESS) {
xRadioButton2 = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton5"));
xRadioButton2.setState(true);
disabledOptionButton += 7;
}
if(getController().getDiagramType() == Controller.UPWARDARROWPROCESS) {
xRadioButton2 = (XRadioButton)UnoRuntime.queryInterface(XRadioButton.class, xControlContainer.getControl("convertOptionButton5"));
xRadioButton2.setState(true);
disabledOptionButton += 8;
}
xControl = (XControl) UnoRuntime.queryInterface(XControl.class, xControlContainer.getControl(disabledOptionButton));
enableControl(xControl, false);
}