tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / qadevOOo / tests / java / ifc / style / _CharacterPropertiesAsian.java
blobd14b7edbc76c8b248589ed6ff8642ab40cbb089a
1 /*
2 * This file is part of the LibreOffice project.
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 * This file incorporates work covered by the following license notice:
10 * Licensed to the Apache Software Foundation (ASF) under one or more
11 * contributor license agreements. See the NOTICE file distributed
12 * with this work for additional information regarding copyright
13 * ownership. The ASF licenses this file to you under the Apache
14 * License, Version 2.0 (the "License"); you may not use this file
15 * except in compliance with the License. You may obtain a copy of
16 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 package ifc.style;
21 import lib.MultiPropertyTest;
23 import com.sun.star.awt.FontSlant;
24 import com.sun.star.awt.FontWeight;
26 /**
27 * Testing <code>com.sun.star.style.CharacterPropertiesAsian</code>
28 * service properties :
29 * <ul>
30 * <li><code> CharHeightAsian</code></li>
31 * <li><code> CharWeightAsian</code></li>
32 * <li><code> CharFontNameAsian</code></li>
33 * <li><code> CharFontStyleNameAsian</code></li>
34 * <li><code> CharFontFamilyAsian</code></li>
35 * <li><code> CharFontCharSetAsian</code></li>
36 * <li><code> CharFontPitchAsian</code></li>
37 * <li><code> CharPostureAsian</code></li>
38 * <li><code> CharLocaleAsian</code></li>
39 * <li><code> ParaIsCharacterDistance</code></li>
40 * <li><code> ParaIsForbiddenRules</code></li>
41 * <li><code> ParaIsHangingPunctuation</code></li>
42 * </ul> <p>
43 * Properties testing is automated by <code>lib.MultiPropertyTest</code>.
44 * @see com.sun.star.style.CharacterPropertiesAsian
46 public class _CharacterPropertiesAsian extends MultiPropertyTest {
48 public void _CharPostureAsian() {
49 testProperty("CharPostureAsian", FontSlant.NONE, FontSlant.ITALIC);
52 public void _CharWeightAsian() {
53 testProperty("CharWeightAsian", Float.valueOf(FontWeight.NORMAL),
54 Float.valueOf(FontWeight.BOLD));
57 public void _ParaIsCharacterDistance() {
58 testProperty("ParaIsCharacterDistance", Boolean.TRUE, Boolean.FALSE);
61 public void _ParaIsForbiddenRules() {
62 testProperty("ParaIsForbiddenRules", Boolean.TRUE, Boolean.FALSE);
65 public void _ParaIsHangingPunctuation() {
66 testProperty("ParaIsHangingPunctuation", Boolean.TRUE, Boolean.FALSE);
68 } //finish class _CharacterPropertiesAsian