diff options
Diffstat (limited to 'qadevOOo/tests/java/ifc/ui/_XUIConfigurationManager.java')
-rwxr-xr-x | qadevOOo/tests/java/ifc/ui/_XUIConfigurationManager.java | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/qadevOOo/tests/java/ifc/ui/_XUIConfigurationManager.java b/qadevOOo/tests/java/ifc/ui/_XUIConfigurationManager.java index 53ddc59e6ce9..f14e70403f2d 100755 --- a/qadevOOo/tests/java/ifc/ui/_XUIConfigurationManager.java +++ b/qadevOOo/tests/java/ifc/ui/_XUIConfigurationManager.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 @@ -42,7 +42,7 @@ import java.io.PrintWriter; import lib.MultiMethodTest; public class _XUIConfigurationManager extends MultiMethodTest { - + public XUIConfigurationManager oObj; private String msResourceUrl = "private:resource/menubar/menubar"; private String msMyResourceUrl = "private:resource/menubar/mymenubar"; @@ -50,8 +50,8 @@ public class _XUIConfigurationManager extends MultiMethodTest { private XIndexAccess mxMenuBarSettings = null; private XMultiServiceFactory mxMSF = null; private String sShortCutManagerServiceName = null; - - + + /** * Some stuff before the tests: * extract the multi service factory. @@ -61,7 +61,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { sShortCutManagerServiceName = (String)tEnv.getObjRelation("XConfigurationManager.ShortCutManager"); } - + /** * reset all changes: do at the end. */ @@ -70,7 +70,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { oObj.reset(); tRes.tested("reset()", true); } - + public void _getUIElementsInfo() { boolean result = true; try { @@ -85,13 +85,13 @@ public class _XUIConfigurationManager extends MultiMethodTest { } tRes.tested("getUIElementsInfo()", result); } - + public void _createSettings() { mxSettings = oObj.createSettings(); util.dbg.printInterfaces(mxSettings); tRes.tested("createSettings()", mxSettings != null); } - + public void _hasSettings() { boolean result = false; try { @@ -103,7 +103,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { } tRes.tested("hasSettings()", result); } - + public void _getSettings() { requiredMethod("hasSettings()"); boolean result = true; @@ -137,7 +137,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { } tRes.tested("getSettings()", result); } - + public void _replaceSettings() { requiredMethod("getSettings()"); boolean result = true; @@ -149,7 +149,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { createMenuBarItem("Click for Macro", (XIndexContainer)UnoRuntime.queryInterface( XIndexContainer.class, prop[3].Value), log); - + XIndexContainer x = (XIndexContainer)UnoRuntime.queryInterface(XIndexContainer.class, mxMenuBarSettings); try { x.insertByIndex(x.getCount(), prop); @@ -185,7 +185,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { _getSettings(); tRes.tested("replaceSettings()", result); } - + public void _removeSettings() { requiredMethod("insertSettings()"); boolean result = true; @@ -206,7 +206,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { } tRes.tested("removeSettings()", result); } - + public void _insertSettings() { requiredMethod("createSettings()"); requiredMethod("replaceSettings()"); @@ -220,7 +220,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { createMenuBarItem("A new sub entry", (XIndexContainer)UnoRuntime.queryInterface( XIndexContainer.class, prop[3].Value), log); - + XIndexContainer x = (XIndexContainer)UnoRuntime.queryInterface(XIndexContainer.class,mxSettings); try { int count = x.getCount(); @@ -256,10 +256,10 @@ public class _XUIConfigurationManager extends MultiMethodTest { } tRes.tested("insertSettings()", result); } - + /** * Only a short test. - * See complex.imageManager.CheckImageManager for a more extensive test of + * See complex.imageManager.CheckImageManager for a more extensive test of * this implementation. */ public void _getImageManager() { @@ -268,8 +268,8 @@ public class _XUIConfigurationManager extends MultiMethodTest { XImageManager xImageManager = (XImageManager)UnoRuntime.queryInterface(XImageManager.class, o); tRes.tested("getImageManager()", xImageManager != null); } - - + + /** * get a shortcut manager */ @@ -286,12 +286,12 @@ public class _XUIConfigurationManager extends MultiMethodTest { } tRes.tested("getShortCutManager()", bSupportedServiceFound); } - + public void _getEventsManager() { Object o = oObj.getEventsManager(); tRes.tested("getEventsManager()", o == null); } - + /** * Create a menu bar entry for adding to the menu bar of the Office. * @param sLabelName The name of the new entry. @@ -311,7 +311,7 @@ public class _XUIConfigurationManager extends MultiMethodTest { prop[2].Value = new Short((short)0); prop[3] = new PropertyValue(); prop[3].Name = "ItemDescriptorContainer"; - + XSingleComponentFactory xFactory = (XSingleComponentFactory)UnoRuntime.queryInterface( XSingleComponentFactory.class, xMenuBarSettings); try { @@ -327,11 +327,11 @@ public class _XUIConfigurationManager extends MultiMethodTest { } return prop; } - + /** * Create a sub entry to the menu bar. * @param sLabelName The name of the entry in the UI. - * @param xDescriptionContainer The parent entry in the menu bar where + * @param xDescriptionContainer The parent entry in the menu bar where * this entry is added. */ public static void createMenuBarItem(String sLabelName, XIndexContainer xDescriptionContainer, PrintWriter log) { |