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.text; 25 26 import lib.MultiPropertyTest; 27 28 /** 29 * Testing <code>com.sun.star.text.FootnoteSettings</code> 30 * service properties : 31 * <ul> 32 * <li><code> CharStyleName</code></li> 33 * <li><code> NumberingType</code></li> 34 * <li><code> PageStyleName</code></li> 35 * <li><code> ParaStyleName</code></li> 36 * <li><code> Prefix</code></li> 37 * <li><code> StartAt</code></li> 38 * <li><code> Suffix</code></li> 39 * <li><code> BeginNotice</code></li> 40 * <li><code> EndNotice</code></li> 41 * <li><code> FootnoteCounting</code></li> 42 * <li><code> PositionEndOfDoc</code></li> 43 * </ul> <p> 44 * Properties testing is automated by <code>lib.MultiPropertyTest</code>. 45 * @see com.sun.star.text.FootnoteSettings 46 */ 47 public class _FootnoteSettings extends MultiPropertyTest { 48 49 /** 50 * This property can be VOID, and in case if it is so new 51 * value must be defined. 52 */ _CharStyleName()53 public void _CharStyleName() { 54 log.println("Testing with custom Property tester") ; 55 testProperty("CharStyleName", "Endnote Symbol", "Endnote anchor") ; 56 } 57 58 /** 59 * This property can be VOID, and in case if it is so new 60 * value must be defined. 61 */ _PageStyleName()62 public void _PageStyleName() { 63 log.println("Testing with custom Property tester") ; 64 testProperty("PageStyleName", "Standard", "Endnote") ; 65 } 66 67 /** 68 * This property can be VOID, and in case if it is so new 69 * value must be defined. 70 */ _ParaStyleName()71 public void _ParaStyleName() { 72 log.println("Testing with custom Property tester") ; 73 testProperty("ParaStyleName", "Standard", "Endnote") ; 74 } 75 76 /** 77 * This property can be VOID, and in case if it is so new 78 * value must be defined. 79 */ _NumberingType()80 public void _NumberingType() { 81 Short val1 = new Short(com.sun.star.text.FootnoteNumbering.PER_DOCUMENT); 82 Short val2 = new Short(com.sun.star.text.FootnoteNumbering.PER_PAGE); 83 log.println("Testing with custom Property tester") ; 84 testProperty("NumberingType", val1, val2) ; 85 } 86 87 /** 88 * This property can be VOID, and in case if it is so new 89 * value must be defined. 90 */ _FootnoteCounting()91 public void _FootnoteCounting() { 92 Short val1 = new Short( (short) 1 ); 93 Short val2 = new Short( (short) 2 ); 94 log.println("Testing with custom Property tester") ; 95 testProperty("FootnoteCounting", val1, val2) ; 96 } 97 98 } 99 100 101