diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:21:41 +0200 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2011-08-23 15:21:41 +0200 |
commit | 1b12b332a9ff0c44b19f7f4f0c76b3f8ee534fc7 (patch) | |
tree | f951731fcd4f0c17dd7a55b154be238cb2b71bae /qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java | |
parent | 42e0579442c805df41454461d17cdede43c47b6a (diff) |
recreated tag libreoffice-3.3.3.1 which had these commits:
commit aec86c5680a68c65de8537b8a83a16e8d90cfdd9 (tag: refs/tags/libreoffice-3.3.3.1)
Author: Petr Mladek <pmladek@suse.cz>
Date: Tue May 31 17:39:08 2011 +0200
Version 3.3.3.1, tag libreoffice-3.3.3.1 (3.3.3-rc1)
Notes
Notes:
split repo tag: testing_libreoffice-3.3.3.1
split repo tag: testing_libreoffice-3.3.4.1
Diffstat (limited to 'qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java b/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java index e12d323a5a8f..640365fdb855 100644 --- a/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.java +++ b/qadevOOo/tests/java/mod/_toolkit/UnoScrollBarControl.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 @@ -69,24 +69,24 @@ public class UnoScrollBarControl extends TestCase { try { log.println("creating a textdocument"); xTextDoc = SOF.createTextDoc(null); - + log.println("maximize the window size"); XModel xModel = (XModel) UnoRuntime.queryInterface(XModel.class, xTextDoc); XFrame xFrame = xModel.getCurrentController().getFrame(); XWindow xWin = xFrame.getContainerWindow(); - + Toolkit tk = Toolkit.getDefaultToolkit(); Dimension dim = tk.getScreenSize(); - + Rectangle newPosSize = xWin.getPosSize(); newPosSize.Width = new Double(dim.getWidth()).intValue(); newPosSize.Height = new Double(dim.getHeight()).intValue(); newPosSize.X = 0; newPosSize.Y = 0; - + xWin.setPosSize(newPosSize.X, newPosSize.Y, newPosSize.Width, - newPosSize.Height, com.sun.star.awt.PosSize.POSSIZE); - + newPosSize.Height, com.sun.star.awt.PosSize.POSSIZE); + } catch (com.sun.star.uno.Exception e) { // Some exception occures.FAILED e.printStackTrace(log); @@ -100,7 +100,7 @@ public class UnoScrollBarControl extends TestCase { util.DesktopTools.closeDoc(xTextDoc); } - protected TestEnvironment createTestEnvironment(TestParameters Param, + protected TestEnvironment createTestEnvironment(TestParameters Param, PrintWriter log) { XInterface oObj = null; XWindowPeer the_win = null; @@ -110,18 +110,18 @@ public class UnoScrollBarControl extends TestCase { XControl aControl = null; //Insert a ControlShape and get the ControlModel - XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, - 4500, 15000, - 10000, - "ScrollBar", + XControlShape aShape = FormTools.createUnoControlShape(xTextDoc, 3000, + 4500, 15000, + 10000, + "ScrollBar", "UnoControlScrollBar"); WriterTools.getDrawPage(xTextDoc).add((XShape) aShape); XControlModel the_Model = aShape.getControl(); - XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000, - 4500, 5000, 10000, + XControlShape aShape2 = FormTools.createControlShape(xTextDoc, 3000, + 4500, 5000, 10000, "TextField"); WriterTools.getDrawPage(xTextDoc).add((XShape) aShape2); @@ -130,7 +130,7 @@ public class UnoScrollBarControl extends TestCase { //Try to query XControlAccess XControlAccess the_access = (XControlAccess) UnoRuntime.queryInterface( - XControlAccess.class, + XControlAccess.class, xTextDoc.getCurrentController()); //get the ScrollBarControl for the needed Object relations @@ -167,7 +167,7 @@ public class UnoScrollBarControl extends TestCase { tEnv.addObjRelation("TOOLKIT", the_kit); tEnv.addObjRelation("MODEL", the_Model); - XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, + XWindow forObjRel = (XWindow) UnoRuntime.queryInterface(XWindow.class, aControl); tEnv.addObjRelation("XWindow.AnotherWindow", forObjRel); |