1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: _FootnoteSettings.java,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
33 import lib
.MultiPropertyTest
;
36 * Testing <code>com.sun.star.text.FootnoteSettings</code>
37 * service properties :
39 * <li><code> CharStyleName</code></li>
40 * <li><code> NumberingType</code></li>
41 * <li><code> PageStyleName</code></li>
42 * <li><code> ParaStyleName</code></li>
43 * <li><code> Prefix</code></li>
44 * <li><code> StartAt</code></li>
45 * <li><code> Suffix</code></li>
46 * <li><code> BeginNotice</code></li>
47 * <li><code> EndNotice</code></li>
48 * <li><code> FootnoteCounting</code></li>
49 * <li><code> PositionEndOfDoc</code></li>
51 * Properties testing is automated by <code>lib.MultiPropertyTest</code>.
52 * @see com.sun.star.text.FootnoteSettings
54 public class _FootnoteSettings
extends MultiPropertyTest
{
57 * This property can be VOID, and in case if it is so new
58 * value must be defined.
60 public void _CharStyleName() {
61 log
.println("Testing with custom Property tester") ;
62 testProperty("CharStyleName", "Endnote Symbol", "Endnote anchor") ;
66 * This property can be VOID, and in case if it is so new
67 * value must be defined.
69 public void _PageStyleName() {
70 log
.println("Testing with custom Property tester") ;
71 testProperty("PageStyleName", "Standard", "Endnote") ;
75 * This property can be VOID, and in case if it is so new
76 * value must be defined.
78 public void _ParaStyleName() {
79 log
.println("Testing with custom Property tester") ;
80 testProperty("ParaStyleName", "Standard", "Endnote") ;
84 * This property can be VOID, and in case if it is so new
85 * value must be defined.
87 public void _NumberingType() {
88 Short val1
= new Short(com
.sun
.star
.text
.FootnoteNumbering
.PER_DOCUMENT
);
89 Short val2
= new Short(com
.sun
.star
.text
.FootnoteNumbering
.PER_PAGE
);
90 log
.println("Testing with custom Property tester") ;
91 testProperty("NumberingType", val1
, val2
) ;
95 * This property can be VOID, and in case if it is so new
96 * value must be defined.
98 public void _FootnoteCounting() {
99 Short val1
= new Short( (short) 1 );
100 Short val2
= new Short( (short) 2 );
101 log
.println("Testing with custom Property tester") ;
102 testProperty("FootnoteCounting", val1
, val2
) ;