diff options
Diffstat (limited to 'qadevOOo/tests/basic/mod/sc/ScPageObj/sc_ScPageObj.xba')
-rw-r--r-- | qadevOOo/tests/basic/mod/sc/ScPageObj/sc_ScPageObj.xba | 106 |
1 files changed, 0 insertions, 106 deletions
diff --git a/qadevOOo/tests/basic/mod/sc/ScPageObj/sc_ScPageObj.xba b/qadevOOo/tests/basic/mod/sc/ScPageObj/sc_ScPageObj.xba deleted file mode 100644 index b2863fe1d39f..000000000000 --- a/qadevOOo/tests/basic/mod/sc/ScPageObj/sc_ScPageObj.xba +++ /dev/null @@ -1,106 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd"> -<script:module xmlns:script="http://openoffice.org/2000/script" script:name="sc_ScPageObj" script:language="StarBasic"> - -'************************************************************************* -' -' 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 -' -' This file is part of OpenOffice.org. -' -' OpenOffice.org is free software: you can redistribute it and/or modify -' it under the terms of the GNU Lesser General Public License version 3 -' only, as published by the Free Software Foundation. -' -' OpenOffice.org is distributed in the hope that it will be useful, -' but WITHOUT ANY WARRANTY; without even the implied warranty of -' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -' GNU Lesser General Public License version 3 for more details -' (a copy is included in the LICENSE file that accompanied this code). -' -' You should have received a copy of the GNU Lesser General Public License -' version 3 along with OpenOffice.org. If not, see -' <http://www.openoffice.org/license.html> -' for a copy of the LGPLv3 License. -' -'************************************************************************* -'************************************************************************* - - - -' Be sure that all variables are dimensioned: -option explicit - - -' REQUIRED VARIABLES for interface/service tests: - -' "com::sun::star::drawing::XShapes" needs the following Global variables: -Global oXShapeInstance As Object - -' "com::sun::star::drawing::XShapeGrouper" needs the following Global variables: -Global oGrouperCollection As Object - - -Sub CreateObj() - -'************************************************************************* -' COMPONENT: -' sc.ScPageObj -'************************************************************************* -On Error Goto ErrHndl - - Dim bOK As Boolean - Dim oDP as Object - bOK = true - - oDoc = utils.createDocument("scalc", cObjectName) - oGrouperCollection = createUNOService("com.sun.star.drawing.ShapeCollection") - - oDP = oDoc.getDrawPages() - - oDP.insertNewByIndex(0) - oDP.insertNewByIndex(1) - - oObj = oDP.getByIndex(0) - addShape(oObj,1) - addShape(oObj,2) - addShape(oObj,3) - addShape(oObj,4) - - oXShapeInstance = oDoc.createInstance("com.sun.star.drawing.RectangleShape") - oGrouperCollection.Add(oObj.getByIndex(2)) - oGrouperCollection.Add(oObj.getByIndex(3)) - -Exit Sub -ErrHndl: - Test.Exception() -End Sub - -Function addShape(oPage as Object, no as Integer) As Object -On Error Goto ErrHndl - Dim aPoint As New com.sun.star.awt.Point - Dim aSize As New com.sun.star.awt.Size - Dim oShape As Object - Dim servNames As Variant - - aPoint.x = 1000 * no - aPoint.y = 1000 * no - aSize.Width = 2000 - aSize.Height = 1000 - oShape = oDoc.createInstance("com.sun.star.drawing.RectangleShape") - oShape.Size = aSize - oShape.Position = aPoint - - oPage.add(oShape) - - addShapeToDrawDoc() = oShape -Exit Function -ErrHndl: - Test.Exception() -End Function - -</script:module> |