Kaydet (Commit) 53135b2a authored tarafından Noel Grandin's avatar Noel Grandin Kaydeden (comit) Noel Grandin

the UnoDialog constructor parameters can be simplified

Change-Id: I5c790a4b79966c977899a0cdacde8fb41148eb1a
Reviewed-on: https://gerrit.libreoffice.org/13092Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
Tested-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst f136502d
......@@ -62,7 +62,7 @@ public class UnoDialog implements EventNames
return guiEventListener;
}
public UnoDialog(XMultiServiceFactory xMSF, String[] PropertyNames, Object[] PropertyValues)
public UnoDialog(XMultiServiceFactory xMSF)
{
try
{
......@@ -70,7 +70,7 @@ public class UnoDialog implements EventNames
ControlList = new HashMap<String, Integer>();
xDialogModel = (XInterface) xMSF.createInstance("com.sun.star.awt.UnoControlDialogModel");
XMultiPropertySet xMultiPSetDlg = UnoRuntime.queryInterface(XMultiPropertySet.class, xDialogModel);
xMultiPSetDlg.setPropertyValues(PropertyNames, PropertyValues);
xMultiPSetDlg.setPropertyValues(new String[0], new Object[0]);
MSFDialogModel = UnoRuntime.queryInterface(XMultiServiceFactory.class, xDialogModel);
xUnoDialog = (XInterface) xMSF.createInstance("com.sun.star.awt.UnoControlDialog");
xControl = UnoRuntime.queryInterface(XControl.class, xUnoDialog);
......
......@@ -40,11 +40,7 @@ public class UnoDialog2 extends UnoDialog
public UnoDialog2(XMultiServiceFactory xmsf)
{
super(xmsf, new String[]
{
}, new Object[]
{
});
super(xmsf);
}
public XButton insertButton(String sName, String actionPerformed, Object eventTarget, String[] sPropNames, Object[] oPropValues)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment