1*d3553c6bSHerbert Dürr/************************************************************** 2f9c62b5dSSteve Yin * 3*d3553c6bSHerbert Dürr * Licensed to the Apache Software Foundation (ASF) under one 4*d3553c6bSHerbert Dürr * or more contributor license agreements. See the NOTICE file 5*d3553c6bSHerbert Dürr * distributed with this work for additional information 6*d3553c6bSHerbert Dürr * regarding copyright ownership. The ASF licenses this file 7*d3553c6bSHerbert Dürr * to you under the Apache License, Version 2.0 (the 8*d3553c6bSHerbert Dürr * "License"); you may not use this file except in compliance 9*d3553c6bSHerbert Dürr * with the License. You may obtain a copy of the License at 10f9c62b5dSSteve Yin * 11*d3553c6bSHerbert Dürr * http://www.apache.org/licenses/LICENSE-2.0 12f9c62b5dSSteve Yin * 13*d3553c6bSHerbert Dürr * Unless required by applicable law or agreed to in writing, 14*d3553c6bSHerbert Dürr * software distributed under the License is distributed on an 15*d3553c6bSHerbert Dürr * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*d3553c6bSHerbert Dürr * KIND, either express or implied. See the License for the 17*d3553c6bSHerbert Dürr * specific language governing permissions and limitations 18*d3553c6bSHerbert Dürr * under the License. 19f9c62b5dSSteve Yin * 20*d3553c6bSHerbert Dürr *************************************************************/ 21f9c62b5dSSteve Yin 22f9c62b5dSSteve Yin#ifndef __com_sun_star_accessibility_XAccessibleTextSelection_idl__ 23f9c62b5dSSteve Yin#define __com_sun_star_accessibility_XAccessibleTextSelection_idl__ 24f9c62b5dSSteve Yin 25f9c62b5dSSteve Yin#ifndef __com_sun_star_uno_XInterface_idl__ 26f9c62b5dSSteve Yin#include <com/sun/star/uno/XInterface.idl> 27f9c62b5dSSteve Yin#endif 28f9c62b5dSSteve Yin#ifndef __com_sun_star_awt_Point_idl__ 29f9c62b5dSSteve Yin#include <com/sun/star/awt/Point.idl> 30f9c62b5dSSteve Yin#endif 31f9c62b5dSSteve Yin#ifndef __com_sun_star_awt_Rectangle_idl__ 32f9c62b5dSSteve Yin#include <com/sun/star/awt/Rectangle.idl> 33f9c62b5dSSteve Yin#endif 34f9c62b5dSSteve Yin#ifndef __com_sun_star_lang_IndexOutOfBoundsException_idl__ 35f9c62b5dSSteve Yin#include <com/sun/star/lang/IndexOutOfBoundsException.idl> 36f9c62b5dSSteve Yin#endif 37f9c62b5dSSteve Yin#ifndef __com_sun_star_lang_IllegalArgumentException_idl__ 38f9c62b5dSSteve Yin#include <com/sun/star/lang/IllegalArgumentException.idl> 39f9c62b5dSSteve Yin#endif 40f9c62b5dSSteve Yin 41f9c62b5dSSteve Yinmodule com { module sun { module star { module accessibility { 42f9c62b5dSSteve Yin 43f9c62b5dSSteve Yininterface XAccessibleTextSelection : ::com::sun::star::uno::XInterface 44f9c62b5dSSteve Yin{ 45f9c62b5dSSteve Yin boolean scrollToPosition ([in] ::com::sun::star::awt::Point aPoint, [in] boolean isLeftTop) raises (::com::sun::star::lang::IllegalArgumentException); 46f9c62b5dSSteve Yin 47f9c62b5dSSteve Yin long getSelectedPortionCount(); 48f9c62b5dSSteve Yin 49f9c62b5dSSteve Yin long getSeletedPositionStart ([in] long nSelectedPortionIndex) raises (::com::sun::star::lang::IndexOutOfBoundsException); 50f9c62b5dSSteve Yin 51f9c62b5dSSteve Yin long getSeletedPositionEnd ([in] long nSelectedPortionIndex) raises (::com::sun::star::lang::IndexOutOfBoundsException); 52f9c62b5dSSteve Yin 53f9c62b5dSSteve Yin long addSelection( [in] long selectionIndex, [in]long startOffset, [in] long endOffset) raises (::com::sun::star::lang::IndexOutOfBoundsException); 54f9c62b5dSSteve Yin 55f9c62b5dSSteve Yin boolean removeSelection( [in] long selectionIndex ) raises (::com::sun::star::lang::IndexOutOfBoundsException); 56f9c62b5dSSteve Yin}; 57f9c62b5dSSteve Yin 58f9c62b5dSSteve Yin}; }; }; }; 59f9c62b5dSSteve Yin 60f9c62b5dSSteve Yin#endif 61