From 7302dd6827993b3e0f2cbfc4639a70cfdf0e294f Mon Sep 17 00:00:00 2001 From: RĂ¼diger Timm Date: Mon, 31 Jan 2005 15:17:04 +0000 Subject: INTEGRATION: CWS sdksample (1.3.124); FILE MERGED 2004/08/04 12:39:16 jsc 1.3.124.2: #i29308# improved 2004/07/30 08:35:29 jsc 1.3.124.1: #i29308# integrate new multiple inheritance interface --- .../Thumbs/org/openoffice/comp/test/ImageShrink.java | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'odk/examples/DevelopersGuide/Components/Thumbs') diff --git a/odk/examples/DevelopersGuide/Components/Thumbs/org/openoffice/comp/test/ImageShrink.java b/odk/examples/DevelopersGuide/Components/Thumbs/org/openoffice/comp/test/ImageShrink.java index 5af3d79bd786..c0251bd418ed 100644 --- a/odk/examples/DevelopersGuide/Components/Thumbs/org/openoffice/comp/test/ImageShrink.java +++ b/odk/examples/DevelopersGuide/Components/Thumbs/org/openoffice/comp/test/ImageShrink.java @@ -2,9 +2,9 @@ * * $RCSfile: ImageShrink.java,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: hr $ $Date: 2003-06-30 15:15:21 $ + * last change: $Author: rt $ $Date: 2005-01-31 16:17:04 $ * * The Contents of this file are made available subject to the terms of * the BSD license. @@ -61,8 +61,7 @@ import com.sun.star.lib.uno.helper.WeakBase; public class ImageShrink extends WeakBase implements com.sun.star.lang.XServiceInfo, - org.openoffice.test.XImageShrink, - com.sun.star.document.XFilter { + org.openoffice.test.XImageShrinkFilter { com.sun.star.uno.XComponentContext xComponentContext = null; @@ -107,7 +106,7 @@ public class ImageShrink extends WeakBase regKey); } - // XFilter implementation + // XFilter implementation (a sub-interface of XImageShrinkFilter) public void cancel() { cancel = true; } @@ -122,7 +121,7 @@ public class ImageShrink extends WeakBase return true; } - // XImageShrink implementation + // XImageShrink implementation (a sub-interface of XImageShrinkFilter) public String getDestinationDirectory() { return destDir; } @@ -159,9 +158,7 @@ public class ImageShrink extends WeakBase } public String[] getSupportedServiceNames( ) { - String[] retValue= new String[0]; - retValue[0]= __serviceName; - return retValue; + return new String[] { __serviceName }; } } -- cgit