diff options
author | Rüdiger Timm <rt@openoffice.org> | 2005-01-31 15:40:05 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2005-01-31 15:40:05 +0000 |
commit | 628c17df4a0f28266d38a396b6134b5622138c60 (patch) | |
tree | b952c2edc8349a6743874eb72e9c72dc01999408 /odk/examples/DevelopersGuide | |
parent | 67166b93d3d50f390cde68b7935678f27d89587d (diff) |
INTEGRATION: CWS sdksample (1.3.124); FILE MERGED
2004/06/23 12:15:38 jsc 1.3.124.1: #i29308# use of new UNO bootstrap feature
Diffstat (limited to 'odk/examples/DevelopersGuide')
3 files changed, 39 insertions, 40 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java index 4eead7eb21b5..b9853f9037d5 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java @@ -2,9 +2,9 @@ * * $RCSfile: NativeView.java,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: hr $ $Date: 2003-06-30 15:35:16 $ + * last change: $Author: rt $ $Date: 2005-01-31 16:39:23 $ * * The Contents of this file are made available subject to the terms of * the BSD license. @@ -38,8 +38,6 @@ * *************************************************************************/ -package OfficeDev.samples.DesktopEnvironment; - // __________ Imports __________ import java.awt.*; diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java index b4565ec4d091..7bef81f5f7fd 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java @@ -2,9 +2,9 @@ * * $RCSfile: OnewayExecutor.java,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: hr $ $Date: 2003-06-30 15:35:40 $ + * last change: $Author: rt $ $Date: 2005-01-31 16:39:52 $ * * The Contents of this file are made available subject to the terms of * the BSD license. @@ -38,8 +38,6 @@ * *************************************************************************/ -package OfficeDev.samples.DesktopEnvironment; - import java.util.Vector; // __________ Implementation __________ @@ -80,7 +78,8 @@ class OnewayExecutor extends Thread /** * @member m_rLink the object, which wish to be called back by this thread - * @member m_nRequest describes the type of the original request (means the called oneyway method) + * @member m_nRequest describes the type of the original request (means the + * called oneyway method) * @member m_lParams list of parameters of the original request */ private IOnewayLink m_rLink ; @@ -98,13 +97,16 @@ class OnewayExecutor extends Thread * @param nRequest * The two user of this callback can define an unique number, * which identify the type of original interface method. - * So the called interface object can decide, which action will be neccessary. + * So the called interface object can decide, which action will be + * neccessary. * * @param lParams - * If the original method used parameters, they will be coded here - * in a generic way. Only the called interface object know (it depends from - * the original request - see nRequest too), how this list must be interpreted. - * Note: Atomic types (e.g. int, long) will be transported as objects too (Integer, Long)! + * If the original method used parameters, they will be coded here in + * a generic way. Only the called interface object know (it depends + * from the original request - see nRequest too), how this list must + * be interpreted. + * Note: Atomic types (e.g. int, long) will be transported as objects + * too (Integer, Long)! */ public OnewayExecutor( IOnewayLink rLink , int nRequest , @@ -147,7 +149,9 @@ class OnewayExecutor extends Thread * one easier - you can use this helper methods. They know how suchlist * must be coded. It's not a must to use it - but you can ... */ - public static void codeFrameAction(boolean bEncode, /*INOUT*/Vector[] lParams, /*INOUT*/com.sun.star.frame.FrameActionEvent[] aAction) + public static void codeFrameAction( + boolean bEncode, Vector[] lParams, + com.sun.star.frame.FrameActionEvent[] aAction) { if (bEncode) { @@ -156,13 +160,16 @@ class OnewayExecutor extends Thread } else { - aAction[0] = (com.sun.star.frame.FrameActionEvent)(lParams[0].elementAt(0)); + aAction[0] = (com.sun.star.frame.FrameActionEvent) + (lParams[0].elementAt(0)); } } // _______________________________ - public static void codeStatusChanged(boolean bEncode, /*INOUT*/Vector[] lParams, /*INOUT*/com.sun.star.frame.FeatureStateEvent[] aStatus) + public static void codeStatusChanged( + boolean bEncode, Vector[] lParams, + com.sun.star.frame.FeatureStateEvent[] aStatus) { if (bEncode) { @@ -171,13 +178,17 @@ class OnewayExecutor extends Thread } else { - aStatus[0] = (com.sun.star.frame.FeatureStateEvent)(lParams[0].elementAt(0)); + aStatus[0] = (com.sun.star.frame.FeatureStateEvent) + (lParams[0].elementAt(0)); } } // _______________________________ - public static void codeAddOrRemoveStatusListener(boolean bEncode, /*INOUT*/Vector[] lParams, /*INOUT*/com.sun.star.frame.XStatusListener[] xListener, /*INOUT*/com.sun.star.util.URL[] aURL) + public static void codeAddOrRemoveStatusListener( + boolean bEncode, Vector[] lParams, + com.sun.star.frame.XStatusListener[] xListener, + com.sun.star.util.URL[] aURL) { if (bEncode) { @@ -187,14 +198,18 @@ class OnewayExecutor extends Thread } else { - xListener[0] = (com.sun.star.frame.XStatusListener)(lParams[0].elementAt(0)); - aURL[0] = (com.sun.star.util.URL)(lParams[0].elementAt(1)); + xListener[0] = (com.sun.star.frame.XStatusListener) + (lParams[0].elementAt(0)); + aURL[0] = (com.sun.star.util.URL)(lParams[0].elementAt(1)); } } // _______________________________ - public static void codeDispatch(boolean bEncode, /*INOUT*/Vector[] lParams, /*INOUT*/com.sun.star.util.URL[] aURL, /*INOUT*/com.sun.star.beans.PropertyValue[][] lArgs) + public static void codeDispatch( + boolean bEncode, Vector[] lParams, + com.sun.star.util.URL[] aURL, + com.sun.star.beans.PropertyValue[][] lArgs) { if (bEncode) { @@ -222,7 +237,8 @@ class OnewayExecutor extends Thread while (nPos<nLength) { - lArgs[0][nPos] = (com.sun.star.beans.PropertyValue)(lParams[0].elementAt(nPos+1)); + lArgs[0][nPos] = (com.sun.star.beans.PropertyValue) + (lParams[0].elementAt(nPos+1)); ++nPos; } } diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java index 97da1ebcfe8d..bf43756226e5 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java @@ -2,9 +2,9 @@ * * $RCSfile: StatusListener.java,v $ * - * $Revision: 1.3 $ + * $Revision: 1.4 $ * - * last change: $Author: hr $ $Date: 2003-06-30 15:35:50 $ + * last change: $Author: rt $ $Date: 2005-01-31 16:40:05 $ * * The Contents of this file are made available subject to the terms of * the BSD license. @@ -38,25 +38,10 @@ * *************************************************************************/ -package OfficeDev.samples.DesktopEnvironment; - // __________ Imports __________ -// uno interfaces -import com.sun.star.frame.XFrame; -import com.sun.star.frame.XDispatch; -import com.sun.star.frame.XStatusListener; -import com.sun.star.frame.XFrameActionListener; - -// uno events -import com.sun.star.frame.FeatureStateEvent; -import com.sun.star.frame.FrameActionEvent; -import com.sun.star.lang.EventObject; - -// uno helper import com.sun.star.uno.UnoRuntime; -// others import java.lang.String; import java.awt.Component; import javax.swing.JCheckBox; |