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