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 org.openoffice.java.accessibility.logging; 25 26 import com.sun.star.accessibility.*; 27 import com.sun.star.uno.*; 28 29 /** The AccessibleHypertextImpl mapps all calls to the java AccessibleHypertext 30 * interface to the corresponding methods of the UNO XAccessibleHypertext 31 * interface. 32 */ 33 public class XAccessibleHypertextLog extends XAccessibleTextLog 34 implements com.sun.star.accessibility.XAccessibleHypertext { 35 36 private com.sun.star.accessibility.XAccessibleHypertext unoObject; 37 38 /** Creates a new instance of XAccessibleTextLog */ XAccessibleHypertextLog(XAccessibleHypertext xAccessibleHypertext)39 public XAccessibleHypertextLog(XAccessibleHypertext xAccessibleHypertext) { 40 super(xAccessibleHypertext); 41 unoObject = xAccessibleHypertext; 42 } 43 getHyperLink(int param)44 public XAccessibleHyperlink getHyperLink(int param) 45 throws com.sun.star.lang.IndexOutOfBoundsException { 46 return unoObject.getHyperLink(param); 47 } 48 getHyperLinkCount()49 public int getHyperLinkCount() { 50 return unoObject.getHyperLinkCount(); 51 } 52 getHyperLinkIndex(int param)53 public int getHyperLinkIndex(int param) 54 throws com.sun.star.lang.IndexOutOfBoundsException { 55 return unoObject.getHyperLinkIndex(param); 56 } 57 } 58