diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-25 19:24:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-26 10:02:49 -0600 |
commit | 99e3bd454bf607c5b561e2dc8e0f7a04f2bc28ed (patch) | |
tree | 929fae9a49326c5c92763fdd7c6e3f0def229e0a /odk/examples/DevelopersGuide/OfficeDev | |
parent | 91ff31b6f7c2fd217518f54396bbca6d4bde98a3 (diff) |
Remove visual noise from odk
Change-Id: I5638e2d37827c2d7322b72bf6ce176ac843639f1
Reviewed-on: https://gerrit.libreoffice.org/8285
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'odk/examples/DevelopersGuide/OfficeDev')
30 files changed, 200 insertions, 200 deletions
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Clipboard/Clipboard.java b/odk/examples/DevelopersGuide/OfficeDev/Clipboard/Clipboard.java index 5dc01aa3fca1..41af02a39613 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Clipboard/Clipboard.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Clipboard/Clipboard.java @@ -45,9 +45,9 @@ import com.sun.star.datatransfer.clipboard.XSystemClipboard; import com.sun.star.text.XTextDocument; import com.sun.star.uno.AnyConverter; -//------------------------------------------------- + // Demonstrates the usage of the clipboard service -//------------------------------------------------- + public class Clipboard { @@ -89,9 +89,9 @@ public class Clipboard XSystemClipboard xClipboard = SystemClipboard.create(xOfficeContext); - //--------------------------------------------------- + // registering as clipboard listener - //--------------------------------------------------- + ClipboardListener aClipListener= new ClipboardListener(); @@ -100,9 +100,9 @@ public class Clipboard // Read ClipBoard readClipBoard(xClipboard); - //--------------------------------------------------- + // becoming a clipboard owner - //--------------------------------------------------- + System.out.println("Becoming a clipboard owner..."); System.out.println(""); @@ -130,9 +130,9 @@ public class Clipboard // Read ClipBoard again readClipBoard(xClipboard); - //--------------------------------------------------- + // unregistering as clipboard listener - //--------------------------------------------------- + xClipboard.removeClipboardListener(aClipListener); // close test document @@ -157,9 +157,9 @@ public class Clipboard public static void readClipBoard(XClipboard xClipboard) throws java.lang.Exception { - //--------------------------------------------------- + // get a list of formats currently on the clipboard - //--------------------------------------------------- + XTransferable xTransferable = xClipboard.getContents(); diff --git a/odk/examples/DevelopersGuide/OfficeDev/Clipboard/ClipboardListener.java b/odk/examples/DevelopersGuide/OfficeDev/Clipboard/ClipboardListener.java index 49efd28c0ea8..21d23ff92b43 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Clipboard/ClipboardListener.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Clipboard/ClipboardListener.java @@ -36,9 +36,9 @@ import com.sun.star.lang.EventObject; import com.sun.star.datatransfer.clipboard.ClipboardEvent; import com.sun.star.datatransfer.clipboard.XClipboardListener; -//----------------------------- + // A simple clipboard listener -//----------------------------- + public class ClipboardListener implements XClipboardListener { diff --git a/odk/examples/DevelopersGuide/OfficeDev/Clipboard/ClipboardOwner.java b/odk/examples/DevelopersGuide/OfficeDev/Clipboard/ClipboardOwner.java index eb745bae4119..94987b89b37c 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Clipboard/ClipboardOwner.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Clipboard/ClipboardOwner.java @@ -36,9 +36,9 @@ import com.sun.star.datatransfer.XTransferable; import com.sun.star.datatransfer.clipboard.XClipboard; import com.sun.star.datatransfer.clipboard.XClipboardOwner; -//-------------------------- + // A simple clipboard owner -//-------------------------- + public class ClipboardOwner implements XClipboardOwner { diff --git a/odk/examples/DevelopersGuide/OfficeDev/Clipboard/TextTransferable.java b/odk/examples/DevelopersGuide/OfficeDev/Clipboard/TextTransferable.java index 291cbbb97e22..8ce14f408a92 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Clipboard/TextTransferable.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Clipboard/TextTransferable.java @@ -37,10 +37,10 @@ import com.sun.star.datatransfer.UnsupportedFlavorException; import com.sun.star.datatransfer.XTransferable; import com.sun.star.uno.Type; -//--------------------------------------- + // A simple transferable containing only // one format, unicode text -//--------------------------------------- + public class TextTransferable implements XTransferable { diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java index ea8645d9fc4c..769768b027ca 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java @@ -69,7 +69,7 @@ public class CustomizeView extends JPanel private static final String TOOLBAR_OFF = "toolbar off" ; private static final String OBJECTBAR_OFF = "objectbar off" ; - // ____________________ + // member /** @@ -89,7 +89,7 @@ public class CustomizeView extends JPanel private StatusListener m_aToolBarListener ; private StatusListener m_aObjectBarListener; - // ____________________ + /** * ctor @@ -117,7 +117,7 @@ public class CustomizeView extends JPanel this.add(m_cbObjectBar); } - // ____________________ + /** * set new frame for this view @@ -160,7 +160,7 @@ public class CustomizeView extends JPanel m_aObjectBarListener.startListening(); } - // ____________________ + /** * react for click events of the used check boxes @@ -186,7 +186,7 @@ public class CustomizeView extends JPanel /// we must use this frame to dispatch a request com.sun.star.frame.XFrame m_xFrame; - //_____________________ + /** * ctor @@ -201,7 +201,7 @@ public class CustomizeView extends JPanel m_xFrame = xFrame; } - //_____________________ + /** * callback for action events @@ -242,7 +242,7 @@ public class CustomizeView extends JPanel FunctionHelper.execute(m_xFrame,aURL,lProperties,null); } - // ____________________ + /** * callback for disposing events @@ -264,7 +264,7 @@ public class CustomizeView extends JPanel } } - // ____________________ + /** * If this java application shutdown - we must cancel all current existing diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Desk.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Desk.java index 9641dc8864a9..6553b3b2ff20 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Desk.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Desk.java @@ -44,7 +44,7 @@ import java.lang.String; */ public class Desk { - // ____________________ + /** * main diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java index 7cbb0e3ecf8b..9e679b1eed11 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/DocumentView.java @@ -61,7 +61,7 @@ public class DocumentView extends JFrame implements com.sun.star.lang.XEventListener, // react for Frame::disposing() IShutdownListener // react for System.exit() { - // ____________________ + /** * const @@ -73,7 +73,7 @@ public class DocumentView extends JFrame public static final String COMMAND_EXPORT = "export" ; public static final String COMMAND_EXIT = "exit" ; - // ____________________ + /** * @member mxFrame office frame which contains the document of this view @@ -108,7 +108,7 @@ public class DocumentView extends JFrame private boolean mbDead ; - // ____________________ + /** * ctor @@ -195,7 +195,7 @@ public class DocumentView extends JFrame this.enableEvents(AWTEvent.WINDOW_EVENT_MASK); } - // ____________________ + /** * Create the view frame for showing the office documents on demand. @@ -241,7 +241,7 @@ public class DocumentView extends JFrame } } - // ____________________ + /** * Different ways to load any URL from outside (may be by the command line) @@ -252,7 +252,7 @@ public class DocumentView extends JFrame load(sURL,new com.sun.star.beans.PropertyValue[0]); } - // ____________________ + public void load(String sURL, com.sun.star.beans.PropertyValue[] lArguments) { @@ -269,7 +269,7 @@ public class DocumentView extends JFrame } } - // ____________________ + public void save() { @@ -282,7 +282,7 @@ public class DocumentView extends JFrame FunctionHelper.saveDocument(xDocument); } - // ____________________ + public void exportHTML(String sURL) { @@ -295,7 +295,7 @@ public class DocumentView extends JFrame FunctionHelper.saveAsHTML(xDocument,sURL); } - // ____________________ + /** * Overridden so we can react for window closing of this view. @@ -315,7 +315,7 @@ public class DocumentView extends JFrame } } - // ____________________ + /** * Here we can react for System.exit() normaly. @@ -355,7 +355,7 @@ public class DocumentView extends JFrame ViewContainer.getGlobalContainer().removeView(this); } - // ____________________ + /** * callback from our internal saved frame @@ -372,7 +372,7 @@ public class DocumentView extends JFrame mxFrame = null; } - // ____________________ + /** * This inner class is used to react for events of our own UI controls. @@ -380,7 +380,7 @@ public class DocumentView extends JFrame */ private class Reactor implements ActionListener { - // ____________________ + /** * This method react for pressed buttons or selected check boxes. @@ -388,7 +388,7 @@ public class DocumentView extends JFrame public void actionPerformed(ActionEvent aEvent) { String sCommand = aEvent.getActionCommand(); - //----------------------------- + // open any file from disk if( sCommand.compareTo(COMMAND_OPEN) == 0 ) { @@ -397,14 +397,14 @@ public class DocumentView extends JFrame DocumentView.this.load(sURL); } else - //----------------------------- + // save current document if( sCommand.compareTo(COMMAND_SAVE) == 0 ) { DocumentView.this.save(); } else - //----------------------------- + // export current document to html if( sCommand.compareTo(COMMAND_EXPORT) == 0 ) { @@ -413,7 +413,7 @@ public class DocumentView extends JFrame DocumentView.this.exportHTML(sURL); } else - //----------------------------- + // exit application if( sCommand.compareTo(COMMAND_EXIT) == 0 ) { diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java index 88b80d34037b..6060292b95b3 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java @@ -61,7 +61,7 @@ import java.net.*; */ public class FunctionHelper { - // ____________________ + /** * This convert an URL (formated as a string) to a struct com.sun.star.util.URL. @@ -124,7 +124,7 @@ public class FunctionHelper return aURL; } - // ____________________ + /** * create a new empty target frame @@ -165,7 +165,7 @@ public class FunctionHelper return xFrame; } - // ____________________ + /** * create a new window which can be used as container window of an office frame @@ -323,7 +323,7 @@ public class FunctionHelper return xWindow; } - // ____________________ + /** * This method create a new empty child frame on desktop instance of remote office. @@ -423,7 +423,7 @@ public class FunctionHelper return xFrame; } - // ____________________ + /** * Dispatch an URL to given frame. @@ -488,7 +488,7 @@ public class FunctionHelper return xDispatcher; } - // ____________________ + /** * Dispatch an URL to given frame. @@ -535,7 +535,7 @@ public class FunctionHelper } } - // ____________________ + /** * Load document specified by an URL into given frame synchronously. @@ -627,7 +627,7 @@ public class FunctionHelper return xDocument; } - // ____________________ + /** * Save currently loaded document of given frame. @@ -675,7 +675,7 @@ public class FunctionHelper } } - // ____________________ + /** * It try to export given document in HTML format. @@ -780,7 +780,7 @@ public class FunctionHelper } } - // ____________________ + /** * Try to close the document without any saving of modifications. @@ -855,7 +855,7 @@ public class FunctionHelper } } - // ____________________ + /** * Try to close the frame instead of the document. @@ -918,7 +918,7 @@ public class FunctionHelper return bClosed; } - // ____________________ + /** * Try to find an unique frame name, which isn't currently used inside @@ -979,7 +979,7 @@ public class FunctionHelper return sName; } - // ____________________ + /** * helper to get a file URL selected by user @@ -1042,7 +1042,7 @@ public class FunctionHelper return sFileURL; } - // ____________________ + /** * @member maLastDir save the last visited directory of used file open/save dialog diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/IOnewayLink.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/IOnewayLink.java index 33a6b3c79a4e..1ad68bb82f4b 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/IOnewayLink.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/IOnewayLink.java @@ -48,7 +48,7 @@ import java.util.ArrayList; */ public interface IOnewayLink { - // _______________________________ + /** * @param nRequest diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java index 88eeb2fd322f..c8e300eadca6 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java @@ -63,7 +63,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, IShutdownListener, IOnewayLink { - // ____________________ + /** * const @@ -74,7 +74,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, "slot:5300" , ".uno:Quit" }; - // ____________________ + /** * @member m_xMaster use this interceptor if he doesn't handle queried dispatch request @@ -89,7 +89,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, private boolean m_bIsRegistered ; private boolean m_bDead ; - // ____________________ + /** * ctor @@ -111,7 +111,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, m_bDead = false ; } - //_____________________ + /** * start working as frame action listener really. @@ -140,7 +140,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, } } - //_____________________ + /** * In case we got an oneway listener callback - we had to use the office @@ -188,7 +188,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, } } - // ____________________ + /** * call back for frame action events @@ -243,7 +243,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, aExecutor.start(); } - // ____________________ + /** * Indicates using of us as an interceptor. @@ -282,7 +282,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, } - //_____________________ + /** * Internal call back for frame action events, triggered by the used @@ -342,7 +342,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, } } - // ____________________ + /** * Implementation of interface XDispatchProviderInterceptor @@ -361,7 +361,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, } } - // ____________________ + public void setSlaveDispatchProvider(com.sun.star.frame.XDispatchProvider xSlave) { @@ -371,7 +371,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, } } - // ____________________ + public com.sun.star.frame.XDispatchProvider getMasterDispatchProvider() { @@ -381,7 +381,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, } } - // ____________________ + public void setMasterDispatchProvider(com.sun.star.frame.XDispatchProvider xMaster) { @@ -391,7 +391,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, } } - // ____________________ + /** * Implementation of interface XDispatchProvider @@ -457,7 +457,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, return null; } - // ____________________ + public com.sun.star.frame.XDispatch[] queryDispatches(/*IN*/ com.sun.star.frame.DispatchDescriptor[] lDescriptor) { @@ -479,7 +479,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, return lDispatcher; } - // ____________________ + /** * This method is called if this interceptor "wins the request". @@ -520,7 +520,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, } } - // ____________________ + /** * Notification of status listener isn't guaranteed (instead of listener on XNotifyingDispatch interface). @@ -545,13 +545,13 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, }*/ } - // ____________________ + public /*ONEWAY*/ void removeStatusListener(/*IN*/ com.sun.star.frame.XStatusListener xListener,/*IN*/ com.sun.star.util.URL aURL) { } - // ____________________ + /** * Implements (optional!) optimization for interceptor mechanism. @@ -568,7 +568,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, return INTERCEPTED_URLS; } - // ____________________ + /** * This class listen on the intercepted frame to free all used resources on closing. @@ -593,7 +593,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, shutdown(); } - // ____________________ + /** * If this java application shutdown - we must cancel all current existing diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java index 3bc089543687..4405f05ebf09 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java @@ -47,7 +47,7 @@ class JavaWindowPeerFake implements com.sun.star.awt.XSystemDependentWindowPeer, maView = aNative; } - // ____________________ + /** * Implementation of XSystemDependentWindowPeer (that's all we really need). * This method is called back from the Office toolkit to retrieve the system data. diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java index 270baf201062..7fd846983d74 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/NativeView.java @@ -50,7 +50,7 @@ import java.awt.*; public class NativeView extends java.awt.Canvas { - // ____________________ + /** * ctor @@ -67,7 +67,7 @@ public class NativeView extends java.awt.Canvas this.setBackground(Color.white); } - // ____________________ + /** * Overload this method to make necessary initializations here. @@ -84,7 +84,7 @@ public class NativeView extends java.awt.Canvas getHWND(); } - // ____________________ + /** * to guarantee right resize handling inside a swing container @@ -106,7 +106,7 @@ public class NativeView extends java.awt.Canvas return new Dimension(100,100); } - // ____________________ + /** * overload paint routine to show provide against @@ -125,7 +125,7 @@ public class NativeView extends java.awt.Canvas } } - // ____________________ + /** * JNI interface of this class @@ -156,7 +156,7 @@ public class NativeView extends java.awt.Canvas return maHandle; } - // ____________________ + /** * for using of the JNI methods it's necessary to load @@ -167,7 +167,7 @@ public class NativeView extends java.awt.Canvas System.loadLibrary("nativeview"); } - // ____________________ + /** * @member maHandle system window handle diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OfficeConnect.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OfficeConnect.java index e8a345ce1c4b..fb14f5acdacc 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OfficeConnect.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OfficeConnect.java @@ -52,7 +52,7 @@ import java.lang.String; */ public class OfficeConnect { - // ____________________ + /** * At first call we create static connection object and open connection to an @@ -65,7 +65,7 @@ public class OfficeConnect maConnection = new OfficeConnect(); } - // ____________________ + /** * close connection to remote office if it exist @@ -80,7 +80,7 @@ public class OfficeConnect } } - // ____________________ + /** * ctor @@ -110,7 +110,7 @@ public class OfficeConnect } } - // ____________________ + /** * create uno components inside remote office process @@ -145,7 +145,7 @@ public class OfficeConnect return aResult; } - // ____________________ + /** * same as "createRemoteInstance()" but supports additional parameter for @@ -176,7 +176,7 @@ public class OfficeConnect return aResult; } - // ____________________ + /** * returns remote component context of the connected office @@ -186,7 +186,7 @@ public class OfficeConnect return mxOfficeContext; } - // ____________________ + /** * member diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java index 51435cb5b6a2..bd8db66ed431 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/OnewayExecutor.java @@ -48,7 +48,7 @@ import java.util.ArrayList; */ class OnewayExecutor extends Thread { - // _______________________________ + /** * const @@ -66,7 +66,7 @@ class OnewayExecutor extends Thread public static final boolean ENCODE_PARAMS = true ; public static final boolean DECODE_PARAMS = false ; - // _______________________________ + /** * @member m_rLink the object, which wish to be called back by this thread @@ -78,7 +78,7 @@ class OnewayExecutor extends Thread private int m_nRequest ; private ArrayList<Object> m_lParams ; - // _______________________________ + /** * ctor @@ -114,7 +114,7 @@ class OnewayExecutor extends Thread System.out.println("ctor ... m_lParams == null"); } - // _______________________________ + /** * implements the thread function @@ -133,7 +133,7 @@ class OnewayExecutor extends Thread m_rLink.execOneway( m_nRequest, m_lParams ); } - // _______________________________ + /** * static helper! @@ -142,7 +142,7 @@ class OnewayExecutor extends Thread * must be coded. It's not a must to use it - but you can ... */ - // _______________________________ + public static ArrayList<Object> encodeDispatch( com.sun.star.util.URL[] aURL, diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java index 29c4fffecda7..6e65c8375a7a 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java @@ -67,7 +67,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener, IShutdownListener, IOnewayLink { - //_____________________ + /** * @member m_rControl reference to the UI control, which should be updated @@ -90,7 +90,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener, private boolean m_bIsStatusListener; private boolean m_bDead ; - //_____________________ + /** * ctor @@ -115,7 +115,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener, m_aURL = FunctionHelper.parseURL(sURL); } - //_____________________ + /** * start working as frame action listener really. @@ -146,7 +146,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener, } } - //_____________________ + /** * In case we got an oneway listener callback - we had to use the office @@ -180,7 +180,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener, } } - //_____________________ + /** * This is the callback method for such frame action events, we listen for. @@ -222,7 +222,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener, aExecutor.start(); } - //_____________________ + /** * This is the callback method for the status we listen for an wish to show it @@ -252,7 +252,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener, // look for the right type ofthe UI control // Following actions depend on it. - //............................................................. + // it's a check box if (m_rControl instanceof JCheckBox) { @@ -271,7 +271,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener, aBox.setText(m_sFalseText); } else - //............................................................. + // it's a label if (m_rControl instanceof JLabel) { @@ -305,7 +305,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener, } } - //_____________________ + /** * Internal call back for frame action events, triggered by the used @@ -377,7 +377,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener, } } - // ____________________ + /** * callback for disposing events @@ -414,7 +414,7 @@ class StatusListener implements com.sun.star.frame.XStatusListener, shutdown(); } - // ____________________ + /** * If this java application shutdown - we must cancel all current existing diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java index aad53937aaae..08616cfe617d 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java @@ -61,7 +61,7 @@ import java.lang.String; public class StatusView extends JPanel implements IShutdownListener { - // ____________________ + /** * const @@ -73,7 +73,7 @@ public class StatusView extends JPanel public static final String FEATUREURL_ITALIC = "slot:10008"; public static final String FEATUREURL_UNDERLINE = "slot:10014"; - // ____________________ + /** * const @@ -91,7 +91,7 @@ public class StatusView extends JPanel public static final String ITALIC_ON = "X" ; public static final String UNDERLINE_ON = "X" ; - // ____________________ + /** * @member mlaFontValue shows status of font name @@ -118,7 +118,7 @@ public class StatusView extends JPanel private StatusListener m_aUnderlineListener ; private StatusListener m_aItalicListener ; - // ____________________ + /** * ctor @@ -201,7 +201,7 @@ public class StatusView extends JPanel m_laUnderlineValue.setText(UNDERLINE_OFF); } - // ____________________ + /** * Set new frame for this view and start listening for events imedatly. @@ -235,7 +235,7 @@ public class StatusView extends JPanel m_aUnderlineListener.startListening(); } - // ____________________ + /** * If this java application shutdown - we must cancel all current existing diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java index 5b9851188aea..ef632f98b0f2 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/ViewContainer.java @@ -49,7 +49,7 @@ import java.util.*; */ public class ViewContainer extends Thread { - // ____________________ + /** * provides a singleton view container @@ -65,7 +65,7 @@ public class ViewContainer extends Thread return maSingleton; } - // ____________________ + /** * ctor @@ -80,7 +80,7 @@ public class ViewContainer extends Thread Runtime.getRuntime().addShutdownHook(this); } - // ____________________ + /** * This register a new view inside this global container @@ -97,7 +97,7 @@ public class ViewContainer extends Thread } } - // ____________________ + /** * This deregister a view from this global container. @@ -158,7 +158,7 @@ public class ViewContainer extends Thread } } - // ____________________ + /** * add/remove listener for possibe shutdown events @@ -172,7 +172,7 @@ public class ViewContainer extends Thread } } - // ____________________ + public void removeListener( IShutdownListener rListener ) { @@ -183,7 +183,7 @@ public class ViewContainer extends Thread } } - // ____________________ + /** * Is called from current runtime system of the java machine @@ -237,14 +237,14 @@ public class ViewContainer extends Thread } } - // ____________________ + /** * @const BASICNAME it's used to create uinque names for all regieterd views */ private static final String BASICNAME = "Document View "; - // ____________________ + /** * @member mbInplace indicates using of inplace office frames instead of outplace ones diff --git a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java index 1dc93286f94c..81303623f517 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java +++ b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java @@ -85,7 +85,7 @@ public class AsciiReplaceFilter public static final int FILTERPROC_BREAK = 1; public static final int FILTERPROC_STOPPED = 2; - //______________________________ + // member @@ -102,7 +102,7 @@ public class AsciiReplaceFilter // we need a flag to cancel any running filter operation private int m_nFilterProcState; - //______________________________ + // native interface /** * special debug helper to get an idea how expensive @@ -122,7 +122,7 @@ public class AsciiReplaceFilter m_nLast = nNow; } - //______________________________ + // native interface /** * The constructor to initialize every instance @@ -154,7 +154,7 @@ public class AsciiReplaceFilter m_nStart = m_nLast; } - //______________________________ + // interface XInitialization /** * used for initializing after creation @@ -210,7 +210,7 @@ public class AsciiReplaceFilter measure("} initialize"); } - //______________________________ + // interface XNamed /** * For external user of us we must provide our internal filter name @@ -238,7 +238,7 @@ public class AsciiReplaceFilter { } - //______________________________ + // interface XImporter /** * This interface is used to tell us: "you will be used for importing a document". @@ -274,7 +274,7 @@ public class AsciiReplaceFilter measure("} setTargetDocument"); } - //______________________________ + // interface XExporter /** * This interface is used to tell us: "you will be used for exporting a document". @@ -311,7 +311,7 @@ public class AsciiReplaceFilter } - //______________________________ + // interface XFilter /** * Implements the real filter method. We detect if it must be an import or an export. @@ -387,7 +387,7 @@ public class AsciiReplaceFilter measure("} cancel"); } - //______________________________ + // private helper /** * This helper function imports a simple ascii text file into @@ -630,7 +630,7 @@ public class AsciiReplaceFilter } - //______________________________ + // interface XServiceInfo /** * This method returns an array of all supported service names. diff --git a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java index 73198adb717a..2a14247d1379 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java +++ b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/FilterOptions.java @@ -56,7 +56,7 @@ import com.sun.star.uno.UnoRuntime; public class FilterOptions { - //_____________________________________ + // public member to provide these options to our outside filter class public com.sun.star.io.XInputStream m_xInput ; public com.sun.star.io.XOutputStream m_xOutput ; @@ -67,12 +67,12 @@ public class FilterOptions public boolean m_bCaseChange ; public boolean m_bLower ; - //_____________________________________ + // private members for internal things private XMultiComponentFactory m_xMCF ; private XComponentContext m_Ctx ; - //_____________________________________ + // interface /** * creates a new instance of this class @@ -187,7 +187,7 @@ public class FilterOptions return(m_xInput!=null || m_xOutput!=null); } - //_____________________________________ + // helper /** * In case we couldn't found any valid stream inside the given MediaDescriptor, diff --git a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx index 84731ba73d6d..4baad95d7070 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx +++ b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx @@ -116,7 +116,7 @@ OUString SAL_CALL FilterDetect::detect(Sequence< PropertyValue >& aArguments ) // flatxml starts with an office:document element. this element // conatains a clas="..." attribut by which we can deduct the // type of document that is to be loaded - // + // WARNING: // parsing the plain text of the document is an easy way to do this // but not the purest solution, since namespaces and other xml details diff --git a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_java/FlatXml.java b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_java/FlatXml.java index b6b0383531c2..b7c23161709e 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_java/FlatXml.java +++ b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilter_java/FlatXml.java @@ -244,7 +244,7 @@ public class FlatXml implements XImportFilter, XExportFilter, XServiceName, m_xHandler.setDocumentLocator(xLocator); } - // ------------------------------------------------------------ + // component management public static XSingleServiceFactory __getServiceFactory(String implName, diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/OneInstanceFactory.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/OneInstanceFactory.java index 114d1bda2e94..2a33ecb4d6cf 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/OneInstanceFactory.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/OneInstanceFactory.java @@ -42,11 +42,11 @@ import com.sun.star.uno.UnoRuntime; import java.lang.reflect.Constructor; -// + // purpose of this class is to provide a service factory that instantiates // the services only once (as long as this factory itself exists) // and returns only reference to that instance. -// + public class OneInstanceFactory implements XSingleServiceFactory, @@ -71,9 +71,9 @@ public class OneInstanceFactory implements xInstantiatedService = null; } - //********************** + // XSingleServiceFactory - //********************** + public Object createInstance() throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException @@ -123,9 +123,9 @@ public class OneInstanceFactory implements } - //************* + // XServiceInfo - //************* + public boolean supportsService( String aServiceName ) throws com.sun.star.uno.RuntimeException { diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper.java index 2932a7791367..98f7e27e259e 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper.java @@ -138,9 +138,9 @@ public class PropChgHelper implements // __________ interface methods __________ - //*************** + // XEventListener - //*************** + public void disposing( EventObject aSource ) throws com.sun.star.uno.RuntimeException { @@ -150,18 +150,18 @@ public class PropChgHelper implements } } - //************************ + // XPropertyChangeListener - //************************ + public void propertyChange( PropertyChangeEvent aEvt ) throws com.sun.star.uno.RuntimeException { // will be overloaded in derived classes } - //****************************** + // XLinguServiceEventBroadcaster - //****************************** + public boolean addLinguServiceEventListener( XLinguServiceEventListener xListener ) throws com.sun.star.uno.RuntimeException diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Hyph.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Hyph.java index cb0e2811c0a4..95047d436bee 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Hyph.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Hyph.java @@ -46,9 +46,9 @@ public class PropChgHelper_Hyph extends PropChgHelper super( xEvtSource, aPropNames ); } - //************************ + // XPropertyChangeListener - //************************ + public void propertyChange( PropertyChangeEvent aEvt ) throws com.sun.star.uno.RuntimeException { diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Spell.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Spell.java index 68c3c3b46d69..cf1aef3d0f33 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Spell.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/PropChgHelper_Spell.java @@ -46,9 +46,9 @@ public class PropChgHelper_Spell extends PropChgHelper super( xEvtSource, aPropNames ); } - //************************ + // XPropertyChangeListener - //************************ + public void propertyChange( PropertyChangeEvent aEvt ) throws com.sun.star.uno.RuntimeException { diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java index be0b47d90134..ffa8358227cd 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java @@ -177,9 +177,9 @@ public class SampleHyphenator extends ComponentBase implements // __________ interface methods __________ - //***************** + //XSupportedLocales - //***************** + public Locale[] getLocales() throws com.sun.star.uno.RuntimeException { @@ -202,9 +202,9 @@ public class SampleHyphenator extends ComponentBase implements return bRes; } - //*********** + //XHyphenator - //*********** + public XHyphenatedWord hyphenate( String aWord, Locale aLocale, short nMaxLeading, PropertyValue[] aProperties ) @@ -400,9 +400,9 @@ public class SampleHyphenator extends ComponentBase implements return xRes; } - //***************************** + //XLinguServiceEventBroadcaster - //***************************** + public boolean addLinguServiceEventListener ( XLinguServiceEventListener xLstnr ) throws com.sun.star.uno.RuntimeException @@ -423,18 +423,18 @@ public class SampleHyphenator extends ComponentBase implements return bRes; } - //******************** + // XServiceDisplayName - //******************** + public String getServiceDisplayName( Locale aLocale ) throws com.sun.star.uno.RuntimeException { return "Java Samples"; } - //**************** + // XInitialization - //**************** + public void initialize( Object[] aArguments ) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException @@ -450,9 +450,9 @@ public class SampleHyphenator extends ComponentBase implements } - //************* + // XServiceInfo - //************* + public boolean supportsService( String aServiceName ) throws com.sun.star.uno.RuntimeException { diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleSpellChecker.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleSpellChecker.java index 2ae92beb043b..00fbab8365d9 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleSpellChecker.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleSpellChecker.java @@ -253,9 +253,9 @@ public class SampleSpellChecker extends ComponentBase implements // __________ interface methods __________ - //***************** + //XSupportedLocales - //***************** + public Locale[] getLocales() throws com.sun.star.uno.RuntimeException { @@ -279,9 +279,9 @@ public class SampleSpellChecker extends ComponentBase implements } - //************* + //XSpellChecker - //************* + public boolean isValid( String aWord, Locale aLocale, PropertyValue[] aProperties ) @@ -344,9 +344,9 @@ public class SampleSpellChecker extends ComponentBase implements } - //***************************** + //XLinguServiceEventBroadcaster - //***************************** + public boolean addLinguServiceEventListener ( XLinguServiceEventListener xLstnr ) throws com.sun.star.uno.RuntimeException @@ -367,18 +367,18 @@ public class SampleSpellChecker extends ComponentBase implements return bRes; } - //******************** + // XServiceDisplayName - //******************** + public String getServiceDisplayName( Locale aLocale ) throws com.sun.star.uno.RuntimeException { return "Java Samples"; } - //**************** + // XInitialization - //**************** + public void initialize( Object[] aArguments ) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException @@ -393,9 +393,9 @@ public class SampleSpellChecker extends ComponentBase implements } } - //************* + // XServiceInfo - //************* + public boolean supportsService( String aServiceName ) throws com.sun.star.uno.RuntimeException { diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java index 967d5c54cdbb..d51ccb71a440 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java @@ -135,9 +135,9 @@ public class SampleThesaurus extends ComponentBase implements // __________ interface methods __________ - //***************** + //XSupportedLocales - //***************** + public Locale[] getLocales() throws com.sun.star.uno.RuntimeException { @@ -158,9 +158,9 @@ public class SampleThesaurus extends ComponentBase implements return bRes; } - //********** + //XThesaurus - //********** + public XMeaning[] queryMeanings( String aTerm, Locale aLocale, PropertyValue[] aProperties ) @@ -203,18 +203,18 @@ public class SampleThesaurus extends ComponentBase implements } - //******************** + // XServiceDisplayName - //******************** + public String getServiceDisplayName( Locale aLocale ) throws com.sun.star.uno.RuntimeException { return "Java Samples"; } - //**************** + // XInitialization - //**************** + public void initialize( Object[] aArguments ) throws com.sun.star.uno.Exception, com.sun.star.uno.RuntimeException @@ -229,9 +229,9 @@ public class SampleThesaurus extends ComponentBase implements } } - //************* + // XServiceInfo - //************* + public boolean supportsService( String aServiceName ) throws com.sun.star.uno.RuntimeException { diff --git a/odk/examples/DevelopersGuide/OfficeDev/Number_Formats.java b/odk/examples/DevelopersGuide/OfficeDev/Number_Formats.java index eb536ce02b15..d620d8e431da 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Number_Formats.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Number_Formats.java @@ -56,7 +56,7 @@ public class Number_Formats // __________ public members and methods __________ - // ____________________ + public static void main( String args[] ) { @@ -76,7 +76,7 @@ public class Number_Formats System.exit(0); } - // ____________________ + public void doFunction() throws RuntimeException, Exception { @@ -178,7 +178,7 @@ public class Number_Formats xColPropSet.setPropertyValue( "OptimalWidth", new Boolean(true) ); } - // ____________________ + public Number_Formats( String[] args ) throws java.lang.Exception { @@ -214,7 +214,7 @@ public class Number_Formats private XSpreadsheet maSheet; // the first sheet - // ____________________ + /** init the first sheet */ diff --git a/odk/examples/DevelopersGuide/OfficeDev/OfficeConnect.java b/odk/examples/DevelopersGuide/OfficeDev/OfficeConnect.java index 47bf1bb74b04..be5404ae1965 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/OfficeConnect.java +++ b/odk/examples/DevelopersGuide/OfficeDev/OfficeConnect.java @@ -51,7 +51,7 @@ import java.lang.String; */ public class OfficeConnect { - // ____________________ + /** * At first call we create static connection object and get the remote office @@ -69,14 +69,14 @@ public class OfficeConnect return maConnection; } - // ____________________ + public static synchronized OfficeConnect getConnection() { return maConnection; } - // ____________________ + /** * ctor @@ -93,7 +93,7 @@ public class OfficeConnect mxServiceManager = mxOfficeContext.getServiceManager(); } - // ____________________ + /** * create uno components inside remote office process @@ -125,7 +125,7 @@ public class OfficeConnect return aResult; } - // ____________________ + /** * same as "createRemoteInstance()" but supports additional parameter for initializing created object @@ -154,7 +154,7 @@ public class OfficeConnect return aResult; } - // ____________________ + /** * member |