tdf#130857 qt weld: Implement QtInstanceWidget::strip_mnemonic
[LibreOffice.git] / qadevOOo / tests / java / ifc / text / _TextTable.java
blobad3645d220a366dc8e1973ffcdac9305d91fc8e1
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.text;
21 import lib.MultiPropertyTest;
23 /**
24 * Testing <code>com.sun.star.text.TextTable</code>
25 * service properties :
26 * <ul>
27 * <li><code> BreakType</code></li>
28 * <li><code> LeftMargin</code></li>
29 * <li><code> RightMargin</code></li>
30 * <li><code> HoriOrient</code></li>
31 * <li><code> KeepTogether</code></li>
32 * <li><code> Split</code></li>
33 * <li><code> PageNumberOffset</code></li>
34 * <li><code> PageDescName</code></li>
35 * <li><code> RelativeWidth</code></li>
36 * <li><code> IsWidthRelative</code></li>
37 * <li><code> RepeatHeadline</code></li>
38 * <li><code> ShadowFormat</code></li>
39 * <li><code> TopMargin</code></li>
40 * <li><code> BottomMargin</code></li>
41 * <li><code> BackTransparent</code></li>
42 * <li><code> Width</code></li>
43 * <li><code> ChartRowAsLabel</code></li>
44 * <li><code> ChartColumnAsLabel</code></li>
45 * <li><code> TableBorder</code></li>
46 * <li><code> TableColumnSeparators</code></li>
47 * <li><code> TableColumnRelativeSum</code></li>
48 * <li><code> BackColor</code></li>
49 * <li><code> BackGraphicURL</code></li>
50 * <li><code> BackGraphicFilter</code></li>
51 * <li><code> BackGraphicLocation</code></li>
52 * </ul> <p>
53 * Properties testing is automated by <code>lib.MultiPropertyTest</code>.
54 * @see com.sun.star.text.TextTable
56 public class _TextTable extends MultiPropertyTest {
58 /**
59 * This property accepts only restricted range of values.
60 * The property value is switched between '' and 'Standard'
61 * strings.
63 public void _PageDescName() {
64 testProperty("PageDescName", "Endnote", "Standard");
67 /**
68 * For setting this property, 'HoriOrient' property must be
69 * set to non-automatic.
71 public void _Width() {
72 Short align = Short.valueOf(com.sun.star.text.HoriOrientation.CENTER);
73 try {
74 oObj.setPropertyValue("HoriOrient",align);
76 catch (com.sun.star.lang.IllegalArgumentException ex) {}
77 catch (com.sun.star.lang.WrappedTargetException ex) {}
78 catch (com.sun.star.beans.PropertyVetoException ex) {}
79 catch (com.sun.star.beans.UnknownPropertyException ex) {}
81 testProperty("Width");
84 /**
85 * For setting this property, 'HoriOrient' property must be
86 * set to non-automatic.
88 public void _RelativeWidth() {
89 Short align = Short.valueOf(com.sun.star.text.HoriOrientation.CENTER);
90 try {
91 oObj.setPropertyValue("HoriOrient",align);
93 catch (com.sun.star.lang.IllegalArgumentException ex) {}
94 catch (com.sun.star.lang.WrappedTargetException ex) {}
95 catch (com.sun.star.beans.PropertyVetoException ex) {}
96 catch (com.sun.star.beans.UnknownPropertyException ex) {}
98 testProperty("RelativeWidth");
102 * Forces environment recreation.
104 @Override
105 protected void after() {
106 disposeEnvironment();
109 } // finish class _TextTable