2003-01-27 17:20:08 +00:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 19:01:09 +00:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2003-01-27 17:20:08 +00:00
|
|
|
*
|
2008-04-10 19:01:09 +00:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2003-01-27 17:20:08 +00:00
|
|
|
*
|
2008-04-10 19:01:09 +00:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2003-01-27 17:20:08 +00:00
|
|
|
*
|
2008-04-10 19:01:09 +00:00
|
|
|
* $RCSfile: UnoControlFixedLineModel.java,v $
|
|
|
|
* $Revision: 1.6 $
|
2003-01-27 17:20:08 +00:00
|
|
|
*
|
2008-04-10 19:01:09 +00:00
|
|
|
* This file is part of OpenOffice.org.
|
2003-01-27 17:20:08 +00:00
|
|
|
*
|
2008-04-10 19:01:09 +00:00
|
|
|
* 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.
|
2003-01-27 17:20:08 +00:00
|
|
|
*
|
2008-04-10 19:01:09 +00:00
|
|
|
* 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).
|
2003-01-27 17:20:08 +00:00
|
|
|
*
|
2008-04-10 19:01:09 +00:00
|
|
|
* 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.
|
2003-01-27 17:20:08 +00:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
package mod._toolkit;
|
|
|
|
|
2004-01-05 19:50:44 +00:00
|
|
|
import com.sun.star.lang.XMultiServiceFactory;
|
|
|
|
import com.sun.star.uno.XInterface;
|
|
|
|
|
2003-01-27 17:20:08 +00:00
|
|
|
import java.io.PrintWriter;
|
2003-09-08 12:06:58 +00:00
|
|
|
|
2003-01-27 17:20:08 +00:00
|
|
|
import lib.StatusException;
|
|
|
|
import lib.TestCase;
|
|
|
|
import lib.TestEnvironment;
|
|
|
|
import lib.TestParameters;
|
|
|
|
|
2004-01-05 19:50:44 +00:00
|
|
|
import util.utils;
|
2003-09-08 12:06:58 +00:00
|
|
|
|
|
|
|
|
2003-01-27 17:20:08 +00:00
|
|
|
/**
|
|
|
|
* Test for object which is represented by service
|
|
|
|
* <code>com.sun.star.awt.UnoControlFixedLineModel</code>. <p>
|
|
|
|
* Object implements the following interfaces :
|
|
|
|
* <ul>
|
|
|
|
* <li> <code>com::sun::star::awt::UnoControlFixedLineModel</code></li>
|
|
|
|
* <li> <code>com::sun::star::io::XPersistObject</code></li>
|
|
|
|
* <li> <code>com::sun::star::lang::XComponent</code></li>
|
|
|
|
* <li> <code>com::sun::star::beans::XPropertySet</code></li>
|
|
|
|
* <li> <code>com::sun::star::beans::XMultiPropertySet</code></li>
|
|
|
|
* </ul>
|
|
|
|
* This object test <b> is NOT </b> designed to be run in several
|
|
|
|
* threads concurently.
|
|
|
|
* @see com.sun.star.awt.UnoControlFixedLineModel
|
|
|
|
* @see com.sun.star.io.XPersistObject
|
|
|
|
* @see com.sun.star.lang.XComponent
|
|
|
|
* @see com.sun.star.beans.XPropertySet
|
|
|
|
* @see com.sun.star.beans.XMultiPropertySet
|
|
|
|
* @see ifc.awt._UnoControlFixedLineModel
|
|
|
|
* @see ifc.io._XPersistObject
|
|
|
|
* @see ifc.lang._XComponent
|
|
|
|
* @see ifc.beans._XPropertySet
|
|
|
|
* @see ifc.beans._XMultiPropertySet
|
|
|
|
*/
|
|
|
|
public class UnoControlFixedLineModel extends TestCase {
|
|
|
|
/**
|
|
|
|
* Creating a Testenvironment for the interfaces to be tested.
|
|
|
|
* Creates an instance of the service
|
|
|
|
* <code>com.sun.star.awt.UnoControlFixedLineModel</code>.
|
|
|
|
* Object relations created :
|
|
|
|
* <ul>
|
|
|
|
* <li> <code>'OBJNAME'</code> for
|
|
|
|
* {@link ifc.io._XPersistObject} </li>
|
|
|
|
* </ul>
|
|
|
|
*/
|
2003-09-08 12:06:58 +00:00
|
|
|
public synchronized TestEnvironment createTestEnvironment(TestParameters Param,
|
|
|
|
PrintWriter log)
|
|
|
|
throws StatusException {
|
2003-01-27 17:20:08 +00:00
|
|
|
XInterface oObj = null;
|
|
|
|
|
|
|
|
try {
|
2004-01-05 19:50:44 +00:00
|
|
|
oObj = (XInterface) ((XMultiServiceFactory) Param.getMSF()).createInstance(
|
|
|
|
"com.sun.star.awt.UnoControlFixedLineModel");
|
2003-01-27 17:20:08 +00:00
|
|
|
} catch (Exception e) {
|
|
|
|
}
|
|
|
|
|
2003-09-08 12:06:58 +00:00
|
|
|
log.println("creating a new environment for object");
|
2003-01-27 17:20:08 +00:00
|
|
|
|
2003-09-08 12:06:58 +00:00
|
|
|
TestEnvironment tEnv = new TestEnvironment(oObj);
|
2003-01-27 17:20:08 +00:00
|
|
|
|
|
|
|
tEnv.addObjRelation("OBJNAME", "stardiv.vcl.controlmodel.FixedLine");
|
2003-09-08 12:06:58 +00:00
|
|
|
System.out.println("ImplementationName: " + utils.getImplName(oObj));
|
2003-01-27 17:20:08 +00:00
|
|
|
|
|
|
|
return tEnv;
|
|
|
|
} // finish method getTestEnvironment
|
2003-09-08 12:06:58 +00:00
|
|
|
}
|