summaryrefslogtreecommitdiff
path: root/odk
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-06 08:38:10 +0200
committerNoel Grandin <noel@peralex.com>2014-08-11 12:33:02 +0200
commitd5a31b221510a506a9c43d2c9f44c55405ce13fd (patch)
tree16c4444d46fb439a1601d2d4535e1770da318e05 /odk
parent41709cc2688738f091a4b17839fe853caa5a0bfd (diff)
java: remove unused parameters
Change-Id: Ifc44c51ddbd21fabaad686bc3d38e2dab54d97aa
Diffstat (limited to 'odk')
-rw-r--r--odk/examples/DevelopersGuide/Components/SimpleLicense/LicenseTest.java1
-rw-r--r--odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java2
-rw-r--r--odk/examples/DevelopersGuide/GUI/ImageControlSample.java4
-rw-r--r--odk/examples/DevelopersGuide/GUI/UnoDialogSample.java6
-rw-r--r--odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java2
5 files changed, 7 insertions, 8 deletions
diff --git a/odk/examples/DevelopersGuide/Components/SimpleLicense/LicenseTest.java b/odk/examples/DevelopersGuide/Components/SimpleLicense/LicenseTest.java
index 72336546445e..02553e81c27e 100644
--- a/odk/examples/DevelopersGuide/Components/SimpleLicense/LicenseTest.java
+++ b/odk/examples/DevelopersGuide/Components/SimpleLicense/LicenseTest.java
@@ -35,7 +35,6 @@
import com.sun.star.lib.uno.helper.Factory;
import com.sun.star.lang.XSingleComponentFactory;
import com.sun.star.lib.uno.helper.WeakBase;
-import com.sun.star.uno.XComponentContext;
import com.sun.star.lang.XServiceInfo;
/** This class capsulates the class, that implements the minimal component, a
diff --git a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
index 74f53fdaef2c..eb1c5770f784 100644
--- a/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
+++ b/odk/examples/DevelopersGuide/Components/dialogcomponent/DialogComponent.java
@@ -124,7 +124,7 @@ public class DialogComponent {
return "Created dialog \"" + DialogURL + "\"";
}
- public void copyText( XDialog xDialog, Object aEventObject ) {
+ public void copyText( XDialog xDialog ) {
XControlContainer xControlContainer = UnoRuntime.queryInterface(
XControlContainer.class, xDialog );
String aTextPropertyStr = "Text";
diff --git a/odk/examples/DevelopersGuide/GUI/ImageControlSample.java b/odk/examples/DevelopersGuide/GUI/ImageControlSample.java
index 2e61fb25622d..c22e6701394b 100644
--- a/odk/examples/DevelopersGuide/GUI/ImageControlSample.java
+++ b/odk/examples/DevelopersGuide/GUI/ImageControlSample.java
@@ -77,7 +77,7 @@ public class ImageControlSample extends UnoDialogSample{
new Object[] { new Integer(16), "This code-sample demonstrates how to create an ImageControlSample within a dialog", Boolean.TRUE, "HeaderLabel", new Integer(6), new Integer(6), new Integer(210)});
// add the model to the NameContainer of the dialog model
oImageControlSample.m_xDlgModelNameContainer.insertByName("Headerlabel", oFTHeaderModel);
- XPropertySet xICModelPropertySet = oImageControlSample.insertImageControl(xMCF, 68, 30, 32, 90);
+ XPropertySet xICModelPropertySet = oImageControlSample.insertImageControl(68, 30, 32, 90);
oImageControlSample.insertButton(oImageControlSample, 90, 75, 50, "~Close dialog", (short) PushButtonType.OK_value);
oImageControlSample.createWindowPeer();
// note: due to issue i76718 ("Setting graphic at a controlmodel required dialog peer") the graphic of the image control
@@ -101,7 +101,7 @@ public class ImageControlSample extends UnoDialogSample{
}
- public XPropertySet insertImageControl(XMultiComponentFactory _xMCF, int _nPosX, int _nPosY, int _nHeight, int _nWidth){
+ public XPropertySet insertImageControl(int _nPosX, int _nPosY, int _nHeight, int _nWidth){
XPropertySet xICModelPropertySet = null;
try{
// create a unique name by means of an own implementation...
diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
index 07fa1106086f..71d2314ccda1 100644
--- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
+++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
@@ -167,7 +167,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
oUnoDialogSample.insertFileControl(oUnoDialogSample, 106, 290, 200 );
oUnoDialogSample.insertButton(oUnoDialogSample, 106, 320, 50, "~Close dialog", (short) PushButtonType.OK_value);
oUnoDialogSample.createWindowPeer();
- oUnoDialogSample.addRoadmap(oUnoDialogSample.getRoadmapItemStateChangeListener());
+ oUnoDialogSample.addRoadmap();
oUnoDialogSample.insertRoadmapItem(0, true, "Introduction", 1);
oUnoDialogSample.insertRoadmapItem(1, true, "Documents", 2);
oUnoDialogSample.xDialog = UnoRuntime.queryInterface(XDialog.class, oUnoDialogSample.m_xDialogControl);
@@ -274,7 +274,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
if (m_xWindowPeer == null){
createWindowPeer();
}
- addRoadmap(getRoadmapItemStateChangeListener());
+ addRoadmap();
insertRoadmapItem(0, true, "Introduction", 1);
insertRoadmapItem(1, true, "Documents", 2);
xDialog = UnoRuntime.queryInterface(XDialog.class, m_xDialogControl);
@@ -1411,7 +1411,7 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
XSingleServiceFactory m_xSSFRoadmap;
XIndexContainer m_xRMIndexCont;
- public void addRoadmap(XItemListener _xItemListener) {
+ public void addRoadmap() {
XPropertySet xDialogModelPropertySet = null;
try {
// create a unique name by means of an own implementation...
diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java b/odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java
index a48e46956826..225262732e49 100644
--- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java
+++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample2.java
@@ -121,7 +121,7 @@ public class UnoDialogSample2 extends UnoDialogSample {
oUnoDialogSample2.createWindowPeer();
// add the roadmap control. Note that the roadmap may not be created before the windowpeer of the dialog exists
// (see http://qa.openoffice.org/issues/show_bug.cgi?id=67369)
- oUnoDialogSample2.addRoadmap(oUnoDialogSample2.getRoadmapItemStateChangeListener());
+ oUnoDialogSample2.addRoadmap();
oUnoDialogSample2.insertRoadmapItem(0, true, "Introduction", 1);
oUnoDialogSample2.insertRoadmapItem(1, true, "Supported Services", 2);
oUnoDialogSample2.insertRoadmapItem(2, true, "Interfaces", 3);