1/*************************************************************************
2 *
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright IBM Corporation 2010.
6 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 *
8 * OpenOffice.org - a multi-platform office productivity suite
9 *
10 * This file is part of OpenOffice.org.
11 *
12 * OpenOffice.org is free software: you can redistribute it and/or modify
13 * it under the terms of the GNU Lesser General Public License version 3
14 * only, as published by the Free Software Foundation.
15 *
16 * OpenOffice.org is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19 * GNU Lesser General Public License version 3 for more details
20 * (a copy is included in the LICENSE file that accompanied this code).
21 *
22 * You should have received a copy of the GNU Lesser General Public License
23 * version 3 along with OpenOffice.org.  If not, see
24 * <http://www.openoffice.org/license.html>
25 * for a copy of the LGPLv3 License.
26 *
27 ************************************************************************/
28
29#ifndef __com_sun_star_accessibility_XAccessibleTextSelection_idl__
30#define __com_sun_star_accessibility_XAccessibleTextSelection_idl__
31
32#ifndef __com_sun_star_uno_XInterface_idl__
33#include <com/sun/star/uno/XInterface.idl>
34#endif
35#ifndef __com_sun_star_awt_Point_idl__
36#include <com/sun/star/awt/Point.idl>
37#endif
38#ifndef __com_sun_star_awt_Rectangle_idl__
39#include <com/sun/star/awt/Rectangle.idl>
40#endif
41#ifndef __com_sun_star_lang_IndexOutOfBoundsException_idl__
42#include <com/sun/star/lang/IndexOutOfBoundsException.idl>
43#endif
44#ifndef __com_sun_star_lang_IllegalArgumentException_idl__
45#include <com/sun/star/lang/IllegalArgumentException.idl>
46#endif
47
48module com { module sun { module star { module accessibility {
49
50interface XAccessibleTextSelection : ::com::sun::star::uno::XInterface
51{
52    boolean scrollToPosition ([in] ::com::sun::star::awt::Point aPoint, [in] boolean isLeftTop) raises (::com::sun::star::lang::IllegalArgumentException);
53
54    long getSelectedPortionCount();
55
56    long getSeletedPositionStart ([in] long nSelectedPortionIndex) raises (::com::sun::star::lang::IndexOutOfBoundsException);
57
58    long getSeletedPositionEnd ([in] long nSelectedPortionIndex) raises (::com::sun::star::lang::IndexOutOfBoundsException);
59
60    long addSelection( [in] long selectionIndex, [in]long startOffset, [in] long endOffset) raises (::com::sun::star::lang::IndexOutOfBoundsException);
61
62    boolean removeSelection( [in] long selectionIndex ) raises (::com::sun::star::lang::IndexOutOfBoundsException);
63};
64
65}; }; }; };
66
67#endif
68