Update ooo320-m1
[ooovba.git] / qadevOOo / tests / java / ifc / style / _CharacterPropertiesAsian.java
blob166ca0af6a16a213385e37e828f82a39f8fb4c5d
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: _CharacterPropertiesAsian.java,v $
10 * $Revision: 1.5 $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
31 package ifc.style;
33 import lib.MultiPropertyTest;
35 import com.sun.star.awt.FontSlant;
36 import com.sun.star.awt.FontWeight;
38 /**
39 * Testing <code>com.sun.star.style.CharacterPropertiesAsian</code>
40 * service properties :
41 * <ul>
42 * <li><code> CharHeightAsian</code></li>
43 * <li><code> CharWeightAsian</code></li>
44 * <li><code> CharFontNameAsian</code></li>
45 * <li><code> CharFontStyleNameAsian</code></li>
46 * <li><code> CharFontFamilyAsian</code></li>
47 * <li><code> CharFontCharSetAsian</code></li>
48 * <li><code> CharFontPitchAsian</code></li>
49 * <li><code> CharPostureAsian</code></li>
50 * <li><code> CharLocaleAsian</code></li>
51 * <li><code> ParaIsCharacterDistance</code></li>
52 * <li><code> ParaIsForbiddenRules</code></li>
53 * <li><code> ParaIsHangingPunctuation</code></li>
54 * </ul> <p>
55 * Properties testing is automated by <code>lib.MultiPropertyTest</code>.
56 * @see com.sun.star.style.CharacterPropertiesAsian
58 public class _CharacterPropertiesAsian extends MultiPropertyTest {
60 public void _CharPostureAsian() {
61 testProperty("CharPostureAsian", FontSlant.NONE, FontSlant.ITALIC);
64 public void _CharWeightAsian() {
65 testProperty("CharWeightAsian", new Float(FontWeight.NORMAL),
66 new Float(FontWeight.BOLD));
69 public void _ParaIsCharacterDistance() {
70 testProperty("ParaIsCharacterDistance", Boolean.TRUE, Boolean.FALSE);
73 public void _ParaIsForbiddenRules() {
74 testProperty("ParaIsForbiddenRules", Boolean.TRUE, Boolean.FALSE);
77 public void _ParaIsHangingPunctuation() {
78 testProperty("ParaIsHangingPunctuation", Boolean.TRUE, Boolean.FALSE);
80 } //finish class _CharacterPropertiesAsian