org.openoffice.demo
Class IloMain

java.lang.Object
  extended by com.sun.star.lib.uno.helper.WeakBase
      extended by org.openoffice.demo.IloMain
All Implemented Interfaces:
com.sun.star.frame.XControlNotificationListener, com.sun.star.frame.XDispatch, com.sun.star.frame.XDispatchProvider, com.sun.star.lang.XInitialization, com.sun.star.lang.XServiceInfo, com.sun.star.lang.XTypeProvider, com.sun.star.uno.XInterface, com.sun.star.uno.XWeak

public class IloMain
extends com.sun.star.lib.uno.helper.WeakBase
implements com.sun.star.lang.XServiceInfo, com.sun.star.frame.XDispatchProvider, com.sun.star.lang.XInitialization, com.sun.star.frame.XDispatch, com.sun.star.frame.XControlNotificationListener

Basic entry class for all event based functions regarding the ITS-tags this class is instantiated from UNO per button, box, ... each toggleDropdownButton has some clickable lines each line has one buttonMessage the buttonMessage contains the variable text of the ITS-tag-fields data structure one buttonMessage per clickable content-line aURL.Path LocalizationNote reflect to one button with some messages some messages per url. path-> url-related objects ? idea structure for dispatch hashmap key=Url.Path+value, val=buttonMessage dispatch() is called Url.Path TranslateNote valueFromButtonClick selector: default SuggestedNames: ItsExtensionModule, IloEntryPoint, IloMain

Author:
mkandora, tmeinert

Field Summary
(package private) static java.lang.String PROTOCOL
          This String is important for any event url calls to this class The value must be reflected in each configuration file: Addons.xcu, ProtocolHandler.xcu and others
static java.lang.String URL_EXPORT
           
static java.lang.String URL_IMPORT
           
static java.lang.String URL_LOCALEFILTER
           
static java.lang.String URL_LOCALIZATION
           
static java.lang.String URL_TERMINOLOGY
           
static java.lang.String URL_TRANSLATE
           
 
Fields inherited from class com.sun.star.lib.uno.helper.WeakBase
_mapImplementationIds, _mapTypes
 
Fields inherited from interface com.sun.star.lang.XServiceInfo
UNOTYPEINFO
 
Fields inherited from interface com.sun.star.frame.XDispatchProvider
UNOTYPEINFO
 
Fields inherited from interface com.sun.star.lang.XInitialization
UNOTYPEINFO
 
Fields inherited from interface com.sun.star.frame.XDispatch
UNOTYPEINFO
 
Fields inherited from interface com.sun.star.frame.XControlNotificationListener
UNOTYPEINFO
 
Fields inherited from interface com.sun.star.uno.XWeak
UNOTYPEINFO
 
Fields inherited from interface com.sun.star.lang.XTypeProvider
UNOTYPEINFO
 
Constructor Summary
IloMain(com.sun.star.uno.XComponentContext xContext)
           
 
Method Summary
static com.sun.star.lang.XSingleComponentFactory __getComponentFactory(java.lang.String sImplementationName)
          Is called by CentralRegistrationClass.
static boolean __writeRegistryServiceInfo(com.sun.star.registry.XRegistryKey registryKey)
          Is called by CentralRegistrationClass.
 void addStatusListener(com.sun.star.frame.XStatusListener listener, com.sun.star.util.URL url)
          called on start per button here each button content is initialized and Messages are created for further use in EditDialog and TextHandling
 void controlEvent(com.sun.star.frame.ControlEvent event)
           
 void dispatch(com.sun.star.util.URL aURL, com.sun.star.beans.PropertyValue[] propertyValues)
           
 java.lang.String getImplementationName()
           
 java.lang.String[] getSupportedServiceNames()
           
 void initialize(java.lang.Object[] arg0)
           
 com.sun.star.frame.XDispatch queryDispatch(com.sun.star.util.URL aURL, java.lang.String arg1, int arg2)
           
 com.sun.star.frame.XDispatch[] queryDispatches(com.sun.star.frame.DispatchDescriptor[] arg0)
           
 void removeStatusListener(com.sun.star.frame.XStatusListener arg0, com.sun.star.util.URL arg1)
           
 boolean supportsService(java.lang.String arg0)
           
 
Methods inherited from class com.sun.star.lib.uno.helper.WeakBase
finalize, getImplementationId, getTypes, queryAdapter
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOCOL

static final java.lang.String PROTOCOL
This String is important for any event url calls to this class The value must be reflected in each configuration file: Addons.xcu, ProtocolHandler.xcu and others

See Also:
Constant Field Values

URL_LOCALIZATION

public static final java.lang.String URL_LOCALIZATION
See Also:
Constant Field Values

URL_TERMINOLOGY

public static final java.lang.String URL_TERMINOLOGY
See Also:
Constant Field Values

URL_LOCALEFILTER

public static final java.lang.String URL_LOCALEFILTER
See Also:
Constant Field Values

URL_TRANSLATE

public static final java.lang.String URL_TRANSLATE
See Also:
Constant Field Values

URL_EXPORT

public static final java.lang.String URL_EXPORT
See Also:
Constant Field Values

URL_IMPORT

public static final java.lang.String URL_IMPORT
See Also:
Constant Field Values
Constructor Detail

IloMain

public IloMain(com.sun.star.uno.XComponentContext xContext)
Method Detail

__getComponentFactory

public static com.sun.star.lang.XSingleComponentFactory __getComponentFactory(java.lang.String sImplementationName)
Is called by CentralRegistrationClass.

Parameters:
sImplementationName - UNO Service
Returns:

__writeRegistryServiceInfo

public static boolean __writeRegistryServiceInfo(com.sun.star.registry.XRegistryKey registryKey)
Is called by CentralRegistrationClass.

Parameters:
registryKey -
Returns:

addStatusListener

public void addStatusListener(com.sun.star.frame.XStatusListener listener,
                              com.sun.star.util.URL url)
called on start per button here each button content is initialized and Messages are created for further use in EditDialog and TextHandling

Specified by:
addStatusListener in interface com.sun.star.frame.XDispatch

dispatch

public void dispatch(com.sun.star.util.URL aURL,
                     com.sun.star.beans.PropertyValue[] propertyValues)
Specified by:
dispatch in interface com.sun.star.frame.XDispatch

removeStatusListener

public void removeStatusListener(com.sun.star.frame.XStatusListener arg0,
                                 com.sun.star.util.URL arg1)
Specified by:
removeStatusListener in interface com.sun.star.frame.XDispatch

initialize

public void initialize(java.lang.Object[] arg0)
                throws com.sun.star.uno.Exception
Specified by:
initialize in interface com.sun.star.lang.XInitialization
Throws:
com.sun.star.uno.Exception

queryDispatch

public com.sun.star.frame.XDispatch queryDispatch(com.sun.star.util.URL aURL,
                                                  java.lang.String arg1,
                                                  int arg2)
Specified by:
queryDispatch in interface com.sun.star.frame.XDispatchProvider

queryDispatches

public com.sun.star.frame.XDispatch[] queryDispatches(com.sun.star.frame.DispatchDescriptor[] arg0)
Specified by:
queryDispatches in interface com.sun.star.frame.XDispatchProvider

getImplementationName

public java.lang.String getImplementationName()
Specified by:
getImplementationName in interface com.sun.star.lang.XServiceInfo

getSupportedServiceNames

public java.lang.String[] getSupportedServiceNames()
Specified by:
getSupportedServiceNames in interface com.sun.star.lang.XServiceInfo

supportsService

public boolean supportsService(java.lang.String arg0)
Specified by:
supportsService in interface com.sun.star.lang.XServiceInfo

controlEvent

public void controlEvent(com.sun.star.frame.ControlEvent event)
Specified by:
controlEvent in interface com.sun.star.frame.XControlNotificationListener