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 .
20 import com
.sun
.star
.view
.DocumentZoomType
;
22 import lib
.MultiPropertyTest
;
26 * Testing <code>com.sun.star.sheet.SpreadsheetViewSettings</code>
27 * service properties :
29 * <li><code> ShowFormulas</code></li>
30 * <li><code> ShowZeroValues</code></li>
31 * <li><code> IsValueHighlightingEnabled</code></li>
32 * <li><code> ShowNotes</code></li>
33 * <li><code> HasVerticalScrollBar</code></li>
34 * <li><code> HasHorizontalScrollBar</code></li>
35 * <li><code> HasSheetTabs</code></li>
36 * <li><code> IsOutlineSymbolsSet</code></li>
37 * <li><code> HasColumnRowHeaders</code></li>
38 * <li><code> ShowGrid</code></li>
39 * <li><code> GridColor</code></li>
40 * <li><code> ShowHelpLines</code></li>
41 * <li><code> ShowAnchor</code></li>
42 * <li><code> ShowPageBreaks</code></li>
43 * <li><code> ShowObjects</code></li>
44 * <li><code> ShowCharts</code></li>
45 * <li><code> ShowDrawing</code></li>
46 * <li><code> HideSpellMarks</code></li>
47 * <li><code> ZoomType</code></li>
48 * <li><code> ZoomValue</code></li>
50 * Properties testing is automated by <code>lib.MultiPropertyTest</code>.
51 * @see com.sun.star.sheet.SpreadsheetViewSettings
53 public class _SpreadsheetViewSettings
extends MultiPropertyTest
{
54 public void _ZoomType() {
55 testProperty("ZoomType", Short
.valueOf(DocumentZoomType
.PAGE_WIDTH
),
56 Short
.valueOf(DocumentZoomType
.BY_VALUE
));
60 * Forces environment recreation.
63 protected void after() {
66 } // finish class _SpreadsheetViewSettings