Files
loongoffice/qadevOOo/tests/java/ifc/text/_TextEmbeddedObject.java
Rüdiger Timm 3a6968406a INTEGRATION: CWS ooo19126 (1.3.76); FILE MERGED
2005/09/05 15:44:23 rt 1.3.76.1: #i54170# Change license header: remove SISSL
2005-09-09 00:16:56 +00:00

77 lines
2.8 KiB
Java

/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: _TextEmbeddedObject.java,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-09 01:16:10 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library 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 for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
************************************************************************/
package ifc.text;
import lib.MultiPropertyTest;
/**
* Testing <code>com.sun.star.text.TextEmbeddedObject</code>
* service properties :
* <ul>
* <li><code> CLSID</code></li>
* <li><code> Model</code></li>
* <li><code> Component</code></li>
* </ul> <p>
* Properties testing is automated by <code>lib.MultiPropertyTest</code>.
* @see com.sun.star.text.TextEmbeddedObject
*/
public class _TextEmbeddedObject extends MultiPropertyTest {
/**
* This property can't be set, as soon as the object is inserted
* so the set method will be skipped.
*/
public void _CLSID() {
boolean result = false;
try {
String clsid = (String) oObj.getPropertyValue("CLSID");
log.println("Getting " + clsid);
log.println(
"According to the idl-description this property can't be set as soon as the Object is inserted in the document, so setting will be skipped");
result=true;
} catch (com.sun.star.beans.UnknownPropertyException e) {
log.println("Exception while getting Property 'CLSID' " +
e.getMessage());
} catch (com.sun.star.lang.WrappedTargetException e) {
log.println("Exception while getting Property 'CLSID' " +
e.getMessage());
}
tRes.tested("CLSID", result);
}
} // finish class _TextEmbeddedObject