Lines Matching refs:pText

71 adjust_boundaries( accessibility::XAccessibleText* pText,  in adjust_boundaries()  argument
100 if( end > 0 && end < pText->getCharacterCount() - 1 ) in adjust_boundaries()
103 aString = pText->getTextRange(start, end); in adjust_boundaries()
110 aTextSegment = pText->getTextBehindIndex(rTextSegment.SegmentEnd, in adjust_boundaries()
115 end = pText->getCharacterCount(); in adjust_boundaries()
117 aString = pText->getTextRange(start, end); in adjust_boundaries()
124 aTextSegment = pText->getTextBeforeIndex(rTextSegment.SegmentStart, in adjust_boundaries()
131 aString = pText->getTextRange(start, end); in adjust_boundaries()
154 getText( AtkText *pText ) throw (uno::RuntimeException) in getText() argument
156 AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pText ); in getText()
175 getTextMarkup( AtkText *pText ) throw (uno::RuntimeException) in getTextMarkup() argument
177 AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pText ); in getTextMarkup()
204 getTextAttributes( AtkText *pText ) throw (uno::RuntimeException) in getTextAttributes() argument
206 AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pText ); in getTextAttributes()
232 getMultiLineText( AtkText *pText ) throw (uno::RuntimeException) in getMultiLineText() argument
234 AtkObjectWrapper *pWrap = ATK_OBJECT_WRAPPER( pText ); in getMultiLineText()
289 accessibility::XAccessibleText* pText = getText( text ); in text_wrapper_get_text() local
290 if( pText ) in text_wrapper_get_text()
293 sal_Int32 n = pText->getCharacterCount(); in text_wrapper_get_text()
296 aText = pText->getText(); in text_wrapper_get_text()
298 aText = pText->getTextRange(start_offset, end_offset); in text_wrapper_get_text()
321 accessibility::XAccessibleText* pText = getText( text ); in text_wrapper_get_text_after_offset() local
322 if( pText ) in text_wrapper_get_text_after_offset()
324 …accessibility::TextSegment aTextSegment = pText->getTextBehindIndex(offset, text_type_from_boundar… in text_wrapper_get_text_after_offset()
325 return adjust_boundaries(pText, aTextSegment, boundary_type, start_offset, end_offset); in text_wrapper_get_text_after_offset()
343 accessibility::XAccessibleText* pText = getText( text ); in text_wrapper_get_text_at_offset() local
344 if( pText ) in text_wrapper_get_text_at_offset()
360 … return adjust_boundaries(pText, aTextSegment, boundary_type, start_offset, end_offset); in text_wrapper_get_text_at_offset()
364 …accessibility::TextSegment aTextSegment = pText->getTextAtIndex(offset, text_type_from_boundary(bo… in text_wrapper_get_text_at_offset()
365 return adjust_boundaries(pText, aTextSegment, boundary_type, start_offset, end_offset); in text_wrapper_get_text_at_offset()
402 accessibility::XAccessibleText* pText = getText( text ); in text_wrapper_get_text_before_offset() local
403 if( pText ) in text_wrapper_get_text_before_offset()
405 …accessibility::TextSegment aTextSegment = pText->getTextBeforeIndex(offset, text_type_from_boundar… in text_wrapper_get_text_before_offset()
406 return adjust_boundaries(pText, aTextSegment, boundary_type, start_offset, end_offset); in text_wrapper_get_text_before_offset()
422 accessibility::XAccessibleText* pText = getText( text ); in text_wrapper_get_caret_offset() local
423 if( pText ) in text_wrapper_get_caret_offset()
424 offset = pText->getCaretPosition(); in text_wrapper_get_caret_offset()
442 accessibility::XAccessibleText* pText = getText( text ); in text_wrapper_set_caret_offset() local
443 if( pText ) in text_wrapper_set_caret_offset()
444 return pText->setCaretPosition( offset ); in text_wrapper_set_caret_offset()
542 accessibility::XAccessibleText* pText = getText( text ); in text_wrapper_get_run_attributes() local
544 if( pText && pTextAttributes ) in text_wrapper_get_run_attributes()
556 pText->getTextAtIndex(offset, accessibility::AccessibleTextType::ATTRIBUTE_RUN); in text_wrapper_get_run_attributes()
579 pText->getTextAtIndex(offset, accessibility::AccessibleTextType::ATTRIBUTE_RUN); in text_wrapper_get_run_attributes()
661 accessibility::XAccessibleText* pText = getText( text ); in text_wrapper_get_character_extents() local
662 if( pText ) in text_wrapper_get_character_extents()
665 awt::Rectangle aRect = pText->getCharacterBounds( offset ); in text_wrapper_get_character_extents()
698 accessibility::XAccessibleText* pText = getText( text ); in text_wrapper_get_character_count() local
699 if( pText ) in text_wrapper_get_character_count()
700 rv = pText->getCharacterCount(); in text_wrapper_get_character_count()
720 accessibility::XAccessibleText* pText = getText( text ); in text_wrapper_get_offset_at_point() local
721 if( pText ) in text_wrapper_get_offset_at_point()
732 return pText->getIndexAtPoint( awt::Point(x - origin_x, y - origin_y) ); in text_wrapper_get_offset_at_point()
750 accessibility::XAccessibleText* pText = getText( text ); in text_wrapper_get_n_selections() local
751 if( pText ) in text_wrapper_get_n_selections()
752 rv = ( pText->getSelectionEnd() > pText->getSelectionStart() ) ? 1 : 0; in text_wrapper_get_n_selections()
774 accessibility::XAccessibleText* pText = getText( text ); in text_wrapper_get_selection() local
775 if( pText ) in text_wrapper_get_selection()
777 *start_offset = pText->getSelectionStart(); in text_wrapper_get_selection()
778 *end_offset = pText->getSelectionEnd(); in text_wrapper_get_selection()
780 return OUStringToGChar( pText->getSelectedText() ); in text_wrapper_get_selection()
799 accessibility::XAccessibleText* pText = getText( text ); in text_wrapper_add_selection() local
800 if( pText ) in text_wrapper_add_selection()
801 return pText->setSelection( start_offset, end_offset ); // ? in text_wrapper_add_selection()
817 accessibility::XAccessibleText* pText = getText( text ); in text_wrapper_remove_selection() local
818 if( pText ) in text_wrapper_remove_selection()
819 return pText->setSelection( 0, 0 ); // ? in text_wrapper_remove_selection()
837 accessibility::XAccessibleText* pText = getText( text ); in text_wrapper_set_selection() local
838 if( pText ) in text_wrapper_set_selection()
839 return pText->setSelection( start_offset, end_offset ); in text_wrapper_set_selection()