Branch data Line data Source code
1 : : #ifndef INCLUDED_COM_SUN_STAR_ACCESSIBILITY_XACCESSIBLETEXT_HDL
2 : : #define INCLUDED_COM_SUN_STAR_ACCESSIBILITY_XACCESSIBLETEXT_HDL
3 : :
4 : : #include "sal/config.h"
5 : :
6 : : #include "com/sun/star/uno/RuntimeException.hdl"
7 : : #include "com/sun/star/accessibility/TextSegment.hdl"
8 : : #include "com/sun/star/awt/Rectangle.hdl"
9 : : #include "com/sun/star/beans/PropertyValue.hdl"
10 : : #include "com/sun/star/lang/IllegalArgumentException.hdl"
11 : : #include "com/sun/star/lang/IndexOutOfBoundsException.hdl"
12 : : #include "com/sun/star/uno/XInterface.hdl"
13 : : #include "com/sun/star/awt/Point.hdl"
14 : : #include "com/sun/star/uno/Reference.h"
15 : : #include "com/sun/star/uno/Sequence.h"
16 : : #include "cppu/macros.hxx"
17 : : #include "rtl/ustring.hxx"
18 : : #include "sal/types.h"
19 : :
20 : : namespace com { namespace sun { namespace star { namespace uno { class Type; } } } }
21 : :
22 : : namespace com { namespace sun { namespace star { namespace accessibility {
23 : :
24 : 4959 : class SAL_NO_VTABLE XAccessibleText : public ::com::sun::star::uno::XInterface
25 : : {
26 : : public:
27 : :
28 : : // Methods
29 : : virtual ::sal_Int32 SAL_CALL getCaretPosition( ) throw (::com::sun::star::uno::RuntimeException) = 0;
30 : : virtual ::sal_Bool SAL_CALL setCaretPosition( ::sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) = 0;
31 : : virtual ::sal_Unicode SAL_CALL getCharacter( ::sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) = 0;
32 : : virtual ::com::sun::star::uno::Sequence< ::com::sun::star::beans::PropertyValue > SAL_CALL getCharacterAttributes( ::sal_Int32 nIndex, const ::com::sun::star::uno::Sequence< ::rtl::OUString >& aRequestedAttributes ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) = 0;
33 : : virtual ::com::sun::star::awt::Rectangle SAL_CALL getCharacterBounds( ::sal_Int32 nIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) = 0;
34 : : virtual ::sal_Int32 SAL_CALL getCharacterCount( ) throw (::com::sun::star::uno::RuntimeException) = 0;
35 : : virtual ::sal_Int32 SAL_CALL getIndexAtPoint( const ::com::sun::star::awt::Point& aPoint ) throw (::com::sun::star::uno::RuntimeException) = 0;
36 : : virtual ::rtl::OUString SAL_CALL getSelectedText( ) throw (::com::sun::star::uno::RuntimeException) = 0;
37 : : virtual ::sal_Int32 SAL_CALL getSelectionStart( ) throw (::com::sun::star::uno::RuntimeException) = 0;
38 : : virtual ::sal_Int32 SAL_CALL getSelectionEnd( ) throw (::com::sun::star::uno::RuntimeException) = 0;
39 : : virtual ::sal_Bool SAL_CALL setSelection( ::sal_Int32 nStartIndex, ::sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) = 0;
40 : : virtual ::rtl::OUString SAL_CALL getText( ) throw (::com::sun::star::uno::RuntimeException) = 0;
41 : : virtual ::rtl::OUString SAL_CALL getTextRange( ::sal_Int32 nStartIndex, ::sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) = 0;
42 : : virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextAtIndex( ::sal_Int32 nIndex, ::sal_Int16 nTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
43 : : virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBeforeIndex( ::sal_Int32 nIndex, ::sal_Int16 nTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
44 : : virtual ::com::sun::star::accessibility::TextSegment SAL_CALL getTextBehindIndex( ::sal_Int32 nIndex, ::sal_Int16 nTextType ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::uno::RuntimeException) = 0;
45 : : virtual ::sal_Bool SAL_CALL copyText( ::sal_Int32 nStartIndex, ::sal_Int32 nEndIndex ) throw (::com::sun::star::lang::IndexOutOfBoundsException, ::com::sun::star::uno::RuntimeException) = 0;
46 : :
47 : : static inline ::com::sun::star::uno::Type const & SAL_CALL static_type(void * = 0);
48 : :
49 : : protected:
50 : 4745 : ~XAccessibleText() throw () {} // avoid warnings about virtual members and non-virtual dtor
51 : : };
52 : :
53 : :
54 : : inline ::com::sun::star::uno::Type const & cppu_detail_getUnoType(SAL_UNUSED_PARAMETER ::com::sun::star::accessibility::XAccessibleText const *);
55 : : } } } }
56 : :
57 : : inline ::com::sun::star::uno::Type const & SAL_CALL getCppuType(const ::com::sun::star::uno::Reference< ::com::sun::star::accessibility::XAccessibleText > *) SAL_THROW(());
58 : :
59 : : #endif
|