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 24 package ifc.util; 25 26 import lib.MultiMethodTest; 27 28 import com.sun.star.util.XNumberFormatter; 29 30 31 /** 32 * Testing <code>com.sun.star.util.XNumberFormatter</code> 33 * interface methods : 34 * <ul> 35 * <li><code> attachNumberFormatsSupplier()</code></li> 36 * <li><code> convertNumberToString() </code></li> 37 * <li><code> convertStringToNumber() </code></li> 38 * <li><code> detectNumberFormat() </code></li> 39 * <li><code> formatString() </code></li> 40 * <li><code> getInputString() </code></li> 41 * <li><code> getNumberFormatsSupplier() </code></li> 42 * <li><code> queryColorForNumber() </code></li> 43 * <li><code> queryColorForString() </code></li> 44 * </ul> <p> 45 * Test is <b> NOT </b> multithread compilant. <p> 46 * @see com.sun.star.util.XNumberFormatter 47 */ 48 public class _XNumberFormatter extends MultiMethodTest { 49 50 public XNumberFormatter oObj = null; 51 52 /** 53 * Not implemented yet. 54 */ _attachNumberFormatsSupplier()55 public void _attachNumberFormatsSupplier() { 56 log.println("Not yet implemented"); 57 } 58 59 /** 60 * Tries to convert a number to a string. <p> 61 * Has <b> OK </b> status if the method returns not 62 * <code>null</code> value. 63 */ _convertNumberToString()64 public void _convertNumberToString() { 65 double dValue = 1.56; 66 int key = 15; 67 68 String gString = oObj.convertNumberToString(key,dValue); 69 70 log.println("Getting: "+gString); 71 tRes.tested("convertNumberToString",gString!=null); 72 } 73 74 /** 75 * Not implemented yet. 76 */ _convertStringToNumber()77 public void _convertStringToNumber() { 78 log.println("Not yet implemented"); 79 } 80 81 /** 82 * Not implemented yet. 83 */ _detectNumberFormat()84 public void _detectNumberFormat() { 85 log.println("Not yet implemented"); 86 } 87 88 /** 89 * Not implemented yet. 90 */ _formatString()91 public void _formatString() { 92 log.println("Not yet implemented"); 93 } 94 95 /** 96 * Not implemented yet. 97 */ _getInputString()98 public void _getInputString() { 99 log.println("Not yet implemented"); 100 } 101 102 /** 103 * Not implemented yet. 104 */ _getNumberFormatsSupplier()105 public void _getNumberFormatsSupplier() { 106 log.println("Not yet implemented"); 107 } 108 109 /** 110 * Not implemented yet. 111 */ _queryColorForNumber()112 public void _queryColorForNumber() { 113 log.println("Not yet implemented"); 114 } 115 116 /** 117 * Not implemented yet. 118 */ _queryColorForString()119 public void _queryColorForString() { 120 log.println("Not yet implemented"); 121 } 122 } // finish class _XNumberFormatter 123 124 125