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: _SpreadsheetViewSettings.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 ************************************************************************/
32 import com
.sun
.star
.view
.DocumentZoomType
;
34 import lib
.MultiPropertyTest
;
38 * Testing <code>com.sun.star.sheet.SpreadsheetViewSettings</code>
39 * service properties :
41 * <li><code> ShowFormulas</code></li>
42 * <li><code> ShowZeroValues</code></li>
43 * <li><code> IsValueHighlightingEnabled</code></li>
44 * <li><code> ShowNotes</code></li>
45 * <li><code> HasVerticalScrollBar</code></li>
46 * <li><code> HasHorizontalScrollBar</code></li>
47 * <li><code> HasSheetTabs</code></li>
48 * <li><code> IsOutlineSymbolsSet</code></li>
49 * <li><code> HasColumnRowHeaders</code></li>
50 * <li><code> ShowGrid</code></li>
51 * <li><code> GridColor</code></li>
52 * <li><code> ShowHelpLines</code></li>
53 * <li><code> ShowAnchor</code></li>
54 * <li><code> ShowPageBreaks</code></li>
55 * <li><code> SolidHandles</code></li>
56 * <li><code> ShowObjects</code></li>
57 * <li><code> ShowCharts</code></li>
58 * <li><code> ShowDrawing</code></li>
59 * <li><code> HideSpellMarks</code></li>
60 * <li><code> ZoomType</code></li>
61 * <li><code> ZoomValue</code></li>
63 * Properties testing is automated by <code>lib.MultiPropertyTest</code>.
64 * @see com.sun.star.sheet.SpreadsheetViewSettings
66 public class _SpreadsheetViewSettings
extends MultiPropertyTest
{
67 public void _ZoomType() {
68 testProperty("ZoomType", new Short(DocumentZoomType
.PAGE_WIDTH
),
69 new Short(DocumentZoomType
.BY_VALUE
));
73 * Forces environment recreation.
75 protected void after() {
78 } // finish class _SpreadsheetViewSettings