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 .
21 import lib
.MultiPropertyTest
;
24 * Testing <code>com.sun.star.text.BaseFrame</code>
25 * service properties :
27 * <li><code> AnchorPageNo</code></li>
28 * <li><code> AnchorFrame</code></li>
29 * <li><code> BackColor</code></li>
30 * <li><code> BackGraphicURL</code></li>
31 * <li><code> BackGraphicFilter</code></li>
32 * <li><code> BackGraphicLocation</code></li>
33 * <li><code> LeftBorder</code></li>
34 * <li><code> RightBorder</code></li>
35 * <li><code> TopBorder</code></li>
36 * <li><code> BottomBorder</code></li>
37 * <li><code> BorderDistance</code></li>
38 * <li><code> LeftBorderDistance</code></li>
39 * <li><code> RightBorderDistance</code></li>
40 * <li><code> TopBorderDistance</code></li>
41 * <li><code> BottomBorderDistance</code></li>
42 * <li><code> BackTransparent</code></li>
43 * <li><code> ContentProtected</code></li>
44 * <li><code> FrameStyleName</code></li>
45 * <li><code> LeftMargin</code></li>
46 * <li><code> RightMargin</code></li>
47 * <li><code> TopMargin</code></li>
48 * <li><code> BottomMargin</code></li>
49 * <li><code> Height</code></li>
50 * <li><code> Width</code></li>
51 * <li><code> RelativeHeight</code></li>
52 * <li><code> RelativeWidth</code></li>
53 * <li><code> IsSyncWidthToHeight</code></li>
54 * <li><code> IsSyncHeightToWidth</code></li>
55 * <li><code> HoriOrient</code></li>
56 * <li><code> HoriOrientPosition</code></li>
57 * <li><code> HoriOrientRelation</code></li>
58 * <li><code> VertOrient</code></li>
59 * <li><code> VertOrientPosition</code></li>
60 * <li><code> VertOrientRelation</code></li>
61 * <li><code> HyperLinkURL</code></li>
62 * <li><code> HyperLinkTarget</code></li>
63 * <li><code> HyperLinkName</code></li>
64 * <li><code> Opaque</code></li>
65 * <li><code> PageToggle</code></li>
66 * <li><code> PositionProtected</code></li>
67 * <li><code> Print</code></li>
68 * <li><code> ShadowFormat</code></li>
69 * <li><code> ServerMap</code></li>
70 * <li><code> Size</code></li>
71 * <li><code> SizeProtected</code></li>
72 * <li><code> Surround</code></li>
73 * <li><code> SurroundAnchorOnly</code></li>
74 * <li><code> BackColorTransparency</code></li>
75 * <li><code> BackColorRGB</code></li>
76 * <li><code> BackGraphicTransparency</code></li>
78 * Properties testing is automated by <code>lib.MultiPropertyTest</code>.
79 * @see com.sun.star.text.BaseFrame
81 public class _BaseFrame
extends MultiPropertyTest
{
82 public String str1
= "Graphics";
83 public String str2
= "Watermark";
86 * Redefined method returns value, that differs from property value.
88 protected PropertyTester StringTester
= new PropertyTester() {
90 protected Object
getNewValue(String propName
, Object oldValue
) {
91 if (str1
.equals(oldValue
))
99 * This property can be VOID, and in case if it is so new
100 * value must be defined.
102 public void _FrameStyleName() {
103 log
.println("Testing with custom Property tester") ;
104 testProperty("FrameStyleName", StringTester
) ;
108 * This property can be VOID, and in case if it is so new
109 * value must be defined.
111 public void _BackColorTransparency() {
112 testProperty("BackColorTransparency", Integer
.valueOf(10), Integer
.valueOf(50)) ;
115 } //finish class _BaseFrame