Lines Matching refs:nIndex

230 …tableTextPara::implGetLineBoundary( ::com::sun::star::i18n::Boundary& rBoundary, sal_Int32 nIndex )  in implGetLineBoundary()  argument
242 CheckPosition(nIndex); in implGetLineBoundary()
248 if( nIndex == nTextLen ) in implGetLineBoundary()
268 if( nCurIndex > nIndex ) in implGetLineBoundary()
285 void AccessibleEditableTextPara::SetIndexInParent( sal_Int32 nIndex ) in SetIndexInParent() argument
289 mnIndexInParent = nIndex; in SetIndexInParent()
299 void AccessibleEditableTextPara::SetParagraphIndex( sal_Int32 nIndex ) in SetParagraphIndex() argument
305 mnParagraphIndex = nIndex; in SetParagraphIndex()
313 if( nOldIndex != nIndex ) in SetParagraphIndex()
423 …void AccessibleEditableTextPara::CheckIndex( sal_Int32 nIndex ) SAL_THROW((lang::IndexOutOfBoundsE… in CheckIndex() argument
427 if( nIndex < 0 || nIndex >= getCharacterCount() ) in CheckIndex()
433 …void AccessibleEditableTextPara::CheckPosition( sal_Int32 nIndex ) SAL_THROW((lang::IndexOutOfBoun… in CheckPosition() argument
437 if( nIndex < 0 || nIndex > getCharacterCount() ) in CheckPosition()
496 … String AccessibleEditableTextPara::GetText( sal_Int32 nIndex ) SAL_THROW((uno::RuntimeException)) in GetText() argument
500 return GetTextForwarder().GetText( MakeSelection(nIndex) ); in GetText()
524 … uno::Reference< XAccessibleText > AccessibleEditableTextPara::GetParaInterface( sal_Int32 nIndex ) in GetParaInterface() argument
534 uno::Reference< XAccessible > xPara = xParentContext->getAccessibleChild( nIndex ); in GetParaInterface()
793 …itableTextPara::GetAttributeRun( sal_uInt16& nStartIndex, sal_uInt16& nEndIndex, sal_Int32 nIndex ) in GetAttributeRun() argument
797 DBG_ASSERT(nIndex >= 0 && nIndex <= USHRT_MAX, in GetAttributeRun()
806 static_cast< sal_uInt16 >(nIndex) ); in GetAttributeRun()
1292 …sal_Bool SAL_CALL AccessibleEditableTextPara::setCaretPosition( sal_Int32 nIndex ) throw (lang::In… in setCaretPosition() argument
1296 return setSelection(nIndex, nIndex); in setCaretPosition()
1299 …sal_Unicode SAL_CALL AccessibleEditableTextPara::getCharacter( sal_Int32 nIndex ) throw (lang::Ind… in getCharacter() argument
1308 return OCommonAccessibleText::getCharacter( nIndex ); in getCharacter()
1360 String AccessibleEditableTextPara::GetFieldTypeNameAtIndex(sal_Int32 nIndex) in GetFieldTypeNameAtIndex() argument
1374 reeBegin = ree.aPosition.nIndex + nAllFieldLen; in GetFieldTypeNameAtIndex()
1377 if( reeBegin > nIndex ) in GetFieldTypeNameAtIndex()
1381 if( nIndex >= reeBegin && nIndex < reeEnd ) in GetFieldTypeNameAtIndex()
1444 …> SAL_CALL AccessibleEditableTextPara::getCharacterAttributes( sal_Int32 nIndex, const ::com::sun:… in getCharacterAttributes() argument
1453 nIndex += aBulletInfo.aText.Len(); in getCharacterAttributes()
1454 if (nIndex != 0 && nIndex >= getCharacterCount()) in getCharacterAttributes()
1455 nIndex = getCharacterCount()-1; in getCharacterAttributes()
1457 if (nIndex != 0) in getCharacterAttributes()
1458 CheckIndex(nIndex); // may throw IndexOutOfBoundsException in getCharacterAttributes()
1471 … uno::Sequence< beans::PropertyValue > aRunAttribs( getRunAttributes( nIndex, aPropertyNames ) ); in getCharacterAttributes()
1484 … const uno::Sequence< beans::PropertyValue > aAttribs( getRunAttributes( nIndex, aNames ) ); in getCharacterAttributes()
1521 _correctValues( nIndex, aRes ); in getCharacterAttributes()
1535 String strFieldType = GetFieldTypeNameAtIndex(nIndex); in getCharacterAttributes()
1571 …awt::Rectangle SAL_CALL AccessibleEditableTextPara::getCharacterBounds( sal_Int32 nIndex ) throw (… in getCharacterBounds() argument
1582 CheckPosition( nIndex ); in getCharacterBounds()
1585 …ctangle aRect = rCacheTF.GetCharBounds( GetParagraphIndex(), static_cast< sal_uInt16 >( nIndex ) ); in getCharacterBounds()
1626 sal_uInt16 nIndex; in getIndexAtPoint() local
1640 if( rCacheTF.GetIndexAtPoint( aLogPoint, nPara, nIndex ) && in getIndexAtPoint()
1646 awt::Rectangle aRect1( getCharacterBounds(nIndex) ); in getIndexAtPoint()
1650 return nIndex; in getIndexAtPoint()
1927 sal_Int32 AccessibleEditableTextPara::SkipField(sal_Int32 nIndex, sal_Bool bForward) in SkipField() argument
1938 reeBegin = ree.aPosition.nIndex + nAllFieldLen; in SkipField()
1941 if( reeBegin > nIndex ) in SkipField()
1945 if( nIndex >= reeBegin && nIndex < reeEnd ) in SkipField()
1961 return nIndex; in SkipField()
1974 reeBegin = ree.aPosition.nIndex + nAllFieldLen; in ExtendByField()
2026 …xtSegment SAL_CALL AccessibleEditableTextPara::getTextAtIndex( sal_Int32 nIndex, sal_Int16 aTextTy… in getTextAtIndex() argument
2044 aResult = OCommonAccessibleText::getTextAtIndex( nIndex, aTextType ); in getTextAtIndex()
2054 if( nIndex == nTextLen ) in getTextAtIndex()
2067 nIndex += aBulletInfo.aText.Len(); in getTextAtIndex()
2068 if (nIndex != 0 && nIndex >= getCharacterCount()) in getTextAtIndex()
2069 nIndex = getCharacterCount()-1; in getTextAtIndex()
2070 CheckPosition(nIndex); in getTextAtIndex()
2071 if( GetAttributeRun(nStartIndex, nEndIndex, nIndex) ) in getTextAtIndex()
2090 CheckPosition(nIndex); in getTextAtIndex()
2091 if (nIndex != 0 && nIndex == getCharacterCount()) in getTextAtIndex()
2092 --nIndex; in getTextAtIndex()
2116 if( nCurIndex > nIndex ) in getTextAtIndex()
2141 aResult = OCommonAccessibleText::getTextAtIndex( nIndex, aTextType ); in getTextAtIndex()
2148 …gment SAL_CALL AccessibleEditableTextPara::getTextBeforeIndex( sal_Int32 nIndex, sal_Int16 aTextTy… in getTextBeforeIndex() argument
2170 if( nIndex == nTextLen ) in getTextBeforeIndex()
2173 if( nIndex > 0 && in getTextBeforeIndex()
2174 GetAttributeRun(nStartIndex, nEndIndex, nIndex-1) ) in getTextBeforeIndex()
2183 if( GetAttributeRun(nStartIndex, nEndIndex, nIndex) ) in getTextBeforeIndex()
2204 CheckPosition(nIndex); in getTextBeforeIndex()
2238 if (nCurIndex > nIndex) in getTextBeforeIndex()
2266 nIndex = SkipField( nIndex, sal_False); in getTextBeforeIndex()
2271 implGetWordBoundary( aBoundary, nIndex ); in getTextBeforeIndex()
2277 if( aBoundary.startPos == -1 || aBoundary.startPos > nIndex) in getTextBeforeIndex()
2278 curWordStart = preWordStart = nIndex; in getTextBeforeIndex()
2303 nIndex = SkipField( nIndex, sal_False); in getTextBeforeIndex()
2304 aResult = OCommonAccessibleText::getTextBeforeIndex( nIndex, aTextType ); in getTextBeforeIndex()
2309 aResult = OCommonAccessibleText::getTextBeforeIndex( nIndex, aTextType ); in getTextBeforeIndex()
2316 …gment SAL_CALL AccessibleEditableTextPara::getTextBehindIndex( sal_Int32 nIndex, sal_Int16 aTextTy… in getTextBehindIndex() argument
2335 if( GetAttributeRun(nStartIndex, nEndIndex, nIndex) ) in getTextBehindIndex()
2357 CheckPosition(nIndex); in getTextBehindIndex()
2385 if( nCurIndex > nIndex && in getTextBehindIndex()
2399 nIndex = SkipField( nIndex, sal_True); in getTextBehindIndex()
2404 sal_Bool bWord = implGetWordBoundary( aBoundary, nIndex ); in getTextBehindIndex()
2407 sal_Int32 nextWord = nIndex; in getTextBehindIndex()
2409 if( nIndex <= aBoundary.endPos ) in getTextBehindIndex()
2431 nIndex = SkipField( nIndex, sal_True); in getTextBehindIndex()
2432 aResult = OCommonAccessibleText::getTextBehindIndex( nIndex, aTextType ); in getTextBehindIndex()
2437 aResult = OCommonAccessibleText::getTextBehindIndex( nIndex, aTextType ); in getTextBehindIndex()
2527 …sal_Bool SAL_CALL AccessibleEditableTextPara::pasteText( sal_Int32 nIndex ) throw (lang::IndexOutO… in pasteText() argument
2541 CheckPosition(nIndex); in pasteText()
2549 if( !rCacheTF.IsEditable( MakeSelection(nIndex + nBulletLen) ) ) in pasteText()
2554 rCacheVF.SetSelection( MakeCursor(nIndex + nBulletLen) ); in pasteText()
2606 …bleEditableTextPara::insertText( const ::rtl::OUString& sText, sal_Int32 nIndex ) throw (lang::Ind… in insertText() argument
2622 CheckPosition(nIndex); in insertText()
2631 if( !rCacheTF.IsEditable( MakeSelection(nIndex + nBulletLen) ) ) in insertText()
2636 sal_Bool bRet = rCacheTF.InsertText( sText, MakeCursor(nIndex + nBulletLen) ); in insertText()
2861 sal_Int32 nIndex, in getRunAttributes() argument
2882 CheckIndex(nIndex); in getRunAttributes()
2884 CheckPosition(nIndex); in getRunAttributes()
2888 aPropSet.SetSelection( MakeSelection( nIndex ) ); in getRunAttributes()
2984 sal_uInt16 nEEStart = aField.aPosition.nIndex; in getHyperLink()
3017 if ( aField.aPosition.nIndex == nEEIndex ) in getHyperLinkIndex()
3030 …sal_Int32 SAL_CALL AccessibleEditableTextPara::getLineNumberAtIndex( sal_Int32 nIndex ) throw (lan… in getLineNumberAtIndex() argument
3043 if (0 <= nIndex && nIndex <= rCacheTF.GetTextLen( nPara )) in getLineNumberAtIndex()
3044 nRes = rCacheTF.GetLineNumberAtIndex( nPara, static_cast< sal_uInt16 >(nIndex) ); in getLineNumberAtIndex()