1<?xml version="1.0" encoding="UTF-8"?> 2<!DOCTYPE script:module PUBLIC "-//OpenOffice.org//DTD OfficeDocument 1.0//EN" "module.dtd"> 3<script:module xmlns:script="http://openoffice.org/2000/script" script:name="formula_FormulaProperties" script:language="StarBasic"> 4 5 6'************************************************************************* 7' 8' Licensed to the Apache Software Foundation (ASF) under one 9' or more contributor license agreements. See the NOTICE file 10' distributed with this work for additional information 11' regarding copyright ownership. The ASF licenses this file 12' to you under the Apache License, Version 2.0 (the 13' "License"); you may not use this file except in compliance 14' with the License. You may obtain a copy of the License at 15' 16' http://www.apache.org/licenses/LICENSE-2.0 17' 18' Unless required by applicable law or agreed to in writing, 19' software distributed under the License is distributed on an 20' "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 21' KIND, either express or implied. See the License for the 22' specific language governing permissions and limitations 23' under the License. 24' 25'************************************************************************* 26 27 28 29 30 31' Be sure that all variables are dimensioned: 32option explicit 33 34 35 36Sub RunTest() 37 38'************************************************************************* 39' SERVICE: 40' com.sun.star.formula.FormulaProperties 41'************************************************************************* 42On Error Goto ErrHndl 43 Dim bOK As Boolean 44 Dim align(1) As Integer 45 46 align(0) = 1 47 align(1) = 0 48 49 PropertyTester.TestProperty("Alignment",align()) 50 51 PropertyTester.TestProperty("BaseFontHeight") 52 53 PropertyTester.TestProperty("CustomFontNameFixed") 54 55 PropertyTester.TestProperty("FontFixedIsItalic") 56 57 PropertyTester.TestProperty("FontFixedIsBold") 58 59 PropertyTester.TestProperty("CustomFontNameSans") 60 61 PropertyTester.TestProperty("FontSansIsItalic") 62 63 PropertyTester.TestProperty("FontSansIsBold") 64 65 PropertyTester.TestProperty("CustomFontNameSerif") 66 67 PropertyTester.TestProperty("FontSerifIsItalic") 68 69 PropertyTester.TestProperty("FontSerifIsBold") 70 71 PropertyTester.TestProperty("FontNameFunctions") 72 73 PropertyTester.TestProperty("FontFunctionsIsItalic") 74 75 PropertyTester.TestProperty("FontFunctionsIsBold") 76 77 PropertyTester.TestProperty("FontNameNumbers") 78 79 PropertyTester.TestProperty("FontNumbersIsItalic") 80 81 PropertyTester.TestProperty("FontNumbersIsBold") 82 83 PropertyTester.TestProperty("FontNameText") 84 85 PropertyTester.TestProperty("FontTextIsItalic") 86 87 PropertyTester.TestProperty("FontTextIsBold") 88 89 PropertyTester.TestProperty("FontNameVariables") 90 91 PropertyTester.TestProperty("FontVariablesIsItalic") 92 93 PropertyTester.TestProperty("FontVariablesIsBold") 94 95 PropertyTester.TestProperty("Formula") 96 97 PropertyTester.TestProperty("IsScaleAllBrackets") 98 99 PropertyTester.TestProperty("IsTextMode") 100 101 PropertyTester.TestProperty("RelativeFontHeightFunctions") 102 103 PropertyTester.TestProperty("RelativeFontHeightIndices") 104 105 PropertyTester.TestProperty("RelativeFontHeightLimits") 106 107 PropertyTester.TestProperty("RelativeFontHeightOperators") 108 109 PropertyTester.TestProperty("RelativeFontHeightText") 110 111 PropertyTester.TestProperty("RelativeBracketDistance") 112 113 PropertyTester.TestProperty("RelativeBracketExcessSize") 114 115 PropertyTester.TestProperty("RelativeFractionBarExcessLength") 116 117 PropertyTester.TestProperty("RelativeFractionBarLineWeight") 118 119 PropertyTester.TestProperty("RelativeFractionDenominatorDepth") 120 121 PropertyTester.TestProperty("RelativeFractionNumeratorHeight") 122 123 PropertyTester.TestProperty("RelativeIndexSubscript") 124 125 PropertyTester.TestProperty("RelativeIndexSuperscript") 126 127 PropertyTester.TestProperty("RelativeLineSpacing") 128 129 PropertyTester.TestProperty("RelativeLowerLimitDistance") 130 131 PropertyTester.TestProperty("RelativeMatrixColumnSpacing") 132 133 PropertyTester.TestProperty("RelativeMatrixLineSpacing") 134 135 PropertyTester.TestProperty("RelativeOperatorExcessSize") 136 137 PropertyTester.TestProperty("RelativeOperatorSpacing") 138 139 PropertyTester.TestProperty("RelativeRootSpacing") 140 141 PropertyTester.TestProperty("RelativeScaleBracketExcessSize") 142 143 PropertyTester.TestProperty("RelativeSpacing") 144 145 PropertyTester.TestProperty("RelativeSymbolMinimumHeight") 146 147 PropertyTester.TestProperty("RelativeSymbolPrimaryHeight") 148 149 PropertyTester.TestProperty("RelativeUpperLimitDistance") 150 151 PropertyTester.TestProperty("TopMargin") 152 153 PropertyTester.TestProperty("BottomMargin") 154 155 PropertyTester.TestProperty("LeftMargin") 156 157 PropertyTester.TestProperty("RightMargin") 158 159Exit Sub 160ErrHndl: 161 Test.Exception() 162 bOK = false 163 resume next 164End Sub 165</script:module> 166