diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java')
-rwxr-xr-x | qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java b/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java index 0ab78ad40bab..235e8a4be8ab 100755 --- a/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java +++ b/qadevOOo/tests/java/mod/_fwk/UIConfigurationManager.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -53,8 +53,8 @@ import util.utils; */ public class UIConfigurationManager extends TestCase { XUIConfigurationManager xManager = null; - - + + /** * Create test environment: * <ul> @@ -70,9 +70,9 @@ public class UIConfigurationManager extends TestCase { protected TestEnvironment createTestEnvironment(TestParameters tParam, PrintWriter log) { TestEnvironment tEnv = null; XMultiServiceFactory xMSF = (XMultiServiceFactory)tParam.getMSF(); - + log.println("Creating instance..."); - + try { xManager = (XUIConfigurationManager)UnoRuntime.queryInterface( XUIConfigurationManager.class, xMSF.createInstance( @@ -83,7 +83,7 @@ public class UIConfigurationManager extends TestCase { // just to make sure, it's the right one. log.println("TestObject: " + utils.getImplName(xManager)); tEnv = new TestEnvironment(xManager); - + // create a configuration storage try { String sourceDeleteCfg = util.utils.getFullTestURL("delete.cfg"); @@ -98,7 +98,7 @@ public class UIConfigurationManager extends TestCase { props[1] = new Integer(ElementModes.READWRITE); XStorage xRootStorage = (XStorage)UnoRuntime.queryInterface(XStorage.class, xSSF.createInstanceWithArguments(props)); xSubStorage = xRootStorage.openStorageElement("Configurations2", ElementModes.READWRITE); - + XUIConfigurationStorage xConfigStorage =(XUIConfigurationStorage)UnoRuntime.queryInterface(XUIConfigurationStorage.class, xManager); xConfigStorage.setStorage(xSubStorage); tEnv.addObjRelation("XUIConfigurationStorage.Storage", xSubStorage); @@ -107,17 +107,17 @@ public class UIConfigurationManager extends TestCase { log.println("Could not create storage: " + e.toString()); } util.dbg.printInterfaces(xManager); - + tEnv.addObjRelation("XUIConfiguration.XUIConfigurationListenerImpl", new ConfigurationListener(log, xManager, xMSF)); // the short cut manager service name - // 2do: correct the service name when it's no longer in - tEnv.addObjRelation("XConfigurationManager.ShortCutManager", + // 2do: correct the service name when it's no longer in + tEnv.addObjRelation("XConfigurationManager.ShortCutManager", "com.sun.star.ui.DocumentAcceleratorConfiguration"); return tEnv; } - + /** * An implementation of the _XUIConfiguration.XUIConfigurationListenerImpl * interface to trigger the event for a listener call. @@ -129,7 +129,7 @@ public class UIConfigurationManager extends TestCase { private XUIConfigurationManager xUIManager = null; private XMultiServiceFactory xMSF = null; private static int iUniqueCounter; - + public ConfigurationListener(PrintWriter _log, XUIConfigurationManager xUIManager, XMultiServiceFactory xMSF) { log = _log; this.xUIManager = xUIManager; @@ -146,7 +146,7 @@ public class UIConfigurationManager extends TestCase { PropertyValue[][]props = xUIManager.getUIElementsInfo(UIElementType.UNKNOWN); XIndexAccess xMenuBarSettings = xUIManager.getSettings( "private:resource/menubar/menubar", true); - + PropertyValue[]prop = _XUIConfigurationManager.createMenuBarEntry( "Trigger Event", xMenuBarSettings, xMSF, log); _XUIConfigurationManager.createMenuBarItem("Click for Macro", @@ -199,7 +199,7 @@ public class UIConfigurationManager extends TestCase { log.println("_XUIConfiguration.XUIConfigurationListenerImpl.elementReplaced."); } } - + } |