1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 package ifc.style; 25 26 import lib.MultiPropertyTest; 27 28 /** 29 * Testing <code>com.sun.star.style.CharacterPropertiesComplex</code> 30 * service properties : 31 * <ul> 32 * <li><code> CharHeightComplex</code></li> 33 * <li><code> CharWeightComplex</code></li> 34 * <li><code> CharFontNameComplex</code></li> 35 * <li><code> CharFontStyleNameComplex</code></li> 36 * <li><code> CharFontFamilyComplex</code></li> 37 * <li><code> CharFontCharSetComplex</code></li> 38 * <li><code> CharFontPitchComplex</code></li> 39 * <li><code> CharPostureComplex</code></li> 40 * <li><code> CharLocaleComplex</code></li> 41 * </ul> <p> 42 * Properties testing is automated by <code>lib.MultiPropertyTest</code>. 43 * @see com.sun.star.style.CharacterPropertiesComplex 44 */ 45 public class _CharacterPropertiesComplex extends MultiPropertyTest { 46 _CharWeightComplex()47 public void _CharWeightComplex() { 48 testProperty("CharWeightComplex", new Float(com.sun.star.awt.FontWeight.BOLD), 49 new Float(com.sun.star.awt.FontWeight.THIN)) ; 50 } 51 _CharPostureComplex()52 public void _CharPostureComplex() { 53 testProperty("CharPostureComplex", com.sun.star.awt.FontSlant.ITALIC, 54 com.sun.star.awt.FontSlant.NONE) ; 55 } 56 57 /** 58 * Forces environment recreation. 59 */ after()60 protected void after() { 61 disposeEnvironment(); 62 } 63 64 } //finish class _CharacterPropertiesComplex 65 66