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 import com.sun.star.awt.FontSlant;
29 import com.sun.star.awt.FontWeight;
30 
31 /**
32 * Testing <code>com.sun.star.style.CharacterPropertiesAsian</code>
33 * service properties :
34 * <ul>
35 *  <li><code> CharHeightAsian</code></li>
36 *  <li><code> CharWeightAsian</code></li>
37 *  <li><code> CharFontNameAsian</code></li>
38 *  <li><code> CharFontStyleNameAsian</code></li>
39 *  <li><code> CharFontFamilyAsian</code></li>
40 *  <li><code> CharFontCharSetAsian</code></li>
41 *  <li><code> CharFontPitchAsian</code></li>
42 *  <li><code> CharPostureAsian</code></li>
43 *  <li><code> CharLocaleAsian</code></li>
44 *  <li><code> ParaIsCharacterDistance</code></li>
45 *  <li><code> ParaIsForbiddenRules</code></li>
46 *  <li><code> ParaIsHangingPunctuation</code></li>
47 * </ul> <p>
48 * Properties testing is automated by <code>lib.MultiPropertyTest</code>.
49 * @see com.sun.star.style.CharacterPropertiesAsian
50 */
51 public class _CharacterPropertiesAsian extends MultiPropertyTest {
52 
_CharPostureAsian()53     public void _CharPostureAsian() {
54         testProperty("CharPostureAsian", FontSlant.NONE, FontSlant.ITALIC);
55     }
56 
_CharWeightAsian()57     public void _CharWeightAsian() {
58         testProperty("CharWeightAsian", new Float(FontWeight.NORMAL),
59             new Float(FontWeight.BOLD));
60     }
61 
_ParaIsCharacterDistance()62     public void _ParaIsCharacterDistance() {
63         testProperty("ParaIsCharacterDistance", Boolean.TRUE, Boolean.FALSE);
64     }
65 
_ParaIsForbiddenRules()66     public void _ParaIsForbiddenRules() {
67         testProperty("ParaIsForbiddenRules", Boolean.TRUE, Boolean.FALSE);
68     }
69 
_ParaIsHangingPunctuation()70     public void _ParaIsHangingPunctuation() {
71         testProperty("ParaIsHangingPunctuation", Boolean.TRUE, Boolean.FALSE);
72     }
73 } //finish class _CharacterPropertiesAsian
74