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 ...@@ -62,7 +62,7 @@ public class UnoDialog implements EventNames
return guiEventListener; return guiEventListener;
} }
public UnoDialog(XMultiServiceFactory xMSF, String[] PropertyNames, Object[] PropertyValues) public UnoDialog(XMultiServiceFactory xMSF)
{ {
try try
{ {
...@@ -70,7 +70,7 @@ public class UnoDialog implements EventNames ...@@ -70,7 +70,7 @@ public class UnoDialog implements EventNames
ControlList = new HashMap<String, Integer>(); ControlList = new HashMap<String, Integer>();
xDialogModel = (XInterface) xMSF.createInstance("com.sun.star.awt.UnoControlDialogModel"); xDialogModel = (XInterface) xMSF.createInstance("com.sun.star.awt.UnoControlDialogModel");
XMultiPropertySet xMultiPSetDlg = UnoRuntime.queryInterface(XMultiPropertySet.class, xDialogModel); 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); MSFDialogModel = UnoRuntime.queryInterface(XMultiServiceFactory.class, xDialogModel);
xUnoDialog = (XInterface) xMSF.createInstance("com.sun.star.awt.UnoControlDialog"); xUnoDialog = (XInterface) xMSF.createInstance("com.sun.star.awt.UnoControlDialog");
xControl = UnoRuntime.queryInterface(XControl.class, xUnoDialog); xControl = UnoRuntime.queryInterface(XControl.class, xUnoDialog);
......
...@@ -40,11 +40,7 @@ public class UnoDialog2 extends UnoDialog ...@@ -40,11 +40,7 @@ public class UnoDialog2 extends UnoDialog
public UnoDialog2(XMultiServiceFactory xmsf) public UnoDialog2(XMultiServiceFactory xmsf)
{ {
super(xmsf, new String[] super(xmsf);
{
}, new Object[]
{
});
} }
public XButton insertButton(String sName, String actionPerformed, Object eventTarget, String[] sPropNames, Object[] oPropValues) 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