Lines Matching refs:nIndex

183             sal_uInt16 nIndex = pPoint->nContent.GetIndex();  in GetCaretPos()  local
184 if(!GetPortionData().IsValidCorePosition( nIndex ) || in GetCaretPos()
185 ( GetPortionData().IsZeroCorePositionData() && nIndex== 0) ) in GetCaretPos()
195 if( GetPortionData().IsValidCorePosition( nIndex ) ) in GetCaretPos()
206 nRet = GetPortionData().GetAccessiblePosition( nIndex ); in GetCaretPos()
732 for(int nIndex = 0; nIndex<nSize; nIndex++ ) in GetTOXSortTabBase() local
734 pSortBase = (*(pTOXBaseSect->GetTOXSortTabBases()))[nIndex]; in GetTOXSortTabBase()
1439 sal_Int32 nIndex = aTypes.getLength(); in getTypes() local
1444 aTypes.realloc( nIndex + 6 ); in getTypes()
1447 …pTypes[nIndex++] = ::getCppuType( static_cast< uno::Reference< XAccessibleEditableText > * >( 0 ) … in getTypes()
1448 …pTypes[nIndex++] = ::getCppuType( static_cast< uno::Reference< XAccessibleTextAttributes > * >( 0 … in getTypes()
1449 pTypes[nIndex++] = ::getCppuType( static_cast< uno::Reference< XAccessibleSelection > * >( 0 ) ); in getTypes()
1450 … pTypes[nIndex++] = ::getCppuType( static_cast< uno::Reference< XAccessibleTextMarkup > * >( 0 ) ); in getTypes()
1451 …pTypes[nIndex++] = ::getCppuType( static_cast< uno::Reference< XAccessibleMultiLineText > * >( 0 )… in getTypes()
1452 pTypes[nIndex] = ::getCppuType( static_cast< uno::Reference< XAccessibleHypertext > * >( 0 ) ); in getTypes()
1499 sal_Bool SAL_CALL SwAccessibleParagraph::setCaretPosition( sal_Int32 nIndex ) in setCaretPosition() argument
1508 if ( ! IsValidPosition( nIndex, nLength ) ) in setCaretPosition()
1521 SwIndex aIndex( pNode, GetPortionData().GetModelPosition(nIndex)); in setCaretPosition()
1532 sal_Unicode SwAccessibleParagraph::getCharacter( sal_Int32 nIndex ) in getCharacter() argument
1542 if( IsValidChar(nIndex, sText.getLength() ) ) in getCharacter()
1544 return sText.getStr()[nIndex]; in getCharacter()
1550 …e< ::com::sun::star::style::TabStop > SwAccessibleParagraph::GetCurrentTabStop( sal_Int32 nIndex ) in GetCurrentTabStop() argument
1560 if( ! (IsValidPosition( nIndex, GetString().getLength() ) ) ) in GetCurrentTabStop()
1565 if ( nIndex == GetString().getLength() ) in GetCurrentTabStop()
1588 (nIndex, aSpecialPos, aMoveState.pSpecialPos ); in GetCurrentTabStop()
1640 String SwAccessibleParagraph::GetFieldTypeNameAtIndex(sal_Int32 nIndex) in GetFieldTypeNameAtIndex() argument
1646 SwIndex fldIndex( pTxtNd, nIndex ); in GetFieldTypeNameAtIndex()
1647 sal_Int32 nFldIndex = GetPortionData().GetFieldIndex(nIndex); in GetFieldTypeNameAtIndex()
1818 sal_Int32 nIndex, in getCharacterAttributes() argument
1828 if( ! IsValidChar( nIndex, rText.getLength()+1 ) ) in getCharacterAttributes()
1844 _getRunAttributesImpl( nIndex, aNames, aRunAttrSeq ); in getCharacterAttributes()
1873 _getSupplementalAttributesImpl( nIndex, aSupplementalNames, aSupplementalAttrSeq ); in getCharacterAttributes()
1886 _correctValues( nIndex, aValues ); in getCharacterAttributes()
1900 String strTypeName = GetFieldTypeNameAtIndex(nIndex); in getCharacterAttributes()
2198 const sal_Int32 nIndex, in _getRunAttributesImpl() argument
2207 … pStartPos->nContent.Assign( const_cast<SwTxtNode*>(pTxtNode), static_cast<sal_uInt16>(nIndex) ); in _getRunAttributesImpl()
2209 … pEndPos->nContent.Assign( const_cast<SwTxtNode*>(pTxtNode), static_cast<sal_uInt16>(nIndex+1) ); in _getRunAttributesImpl()
2315 sal_Int32 nIndex, in getRunAttributes() argument
2325 if ( !IsValidChar( nIndex, rText.getLength() ) ) in getRunAttributes()
2332 _getRunAttributesImpl( nIndex, aRequestedAttributes, aRunAttrSeq ); in getRunAttributes()
2411 void SwAccessibleParagraph::_correctValues( const sal_Int32 nIndex, in _correctValues() argument
2416 const SwRedline* pRedline = GetRedlineAtIndex( nIndex ); in _correctValues()
2518 if( GetPortionData().IsInGrayPortion( nIndex ) ) in _correctValues()
2546 xub_StrLen nBegin = nIndex; in _correctValues()
2567 xub_StrLen nBegin = nIndex; in _correctValues()
2596 …m::sun::star::uno::Sequence< ::com::sun::star::style::TabStop > tabs = GetCurrentTabStop( nIndex ); in _correctValues()
2602 com::sun::star::awt::Rectangle rc1 = getCharacterBounds(nIndex); in _correctValues()
2636 if ( GetPortionData().IsIndexInFootnode(nIndex) ) in _correctValues()
2647 sal_Int32 nIndex ) in getCharacterBounds() argument
2658 if( ! (IsValidPosition( nIndex, GetString().getLength() ) ) ) in getCharacterBounds()
2663 if ( nIndex == GetString().getLength() ) in getCharacterBounds()
2686 (nIndex, aSpecialPos, aMoveState.pSpecialPos ); in getCharacterBounds()
2769 const xub_StrLen nIndex = aCntntIdx.GetIndex(); in getIndexAtPoint() local
2770 if ( nIndex > 0 ) in getIndexAtPoint()
2781 SwIndex aIdxPrev( pNode, nIndex - 1); in getIndexAtPoint()
2900 /*accessibility::*/TextSegment SwAccessibleParagraph::getTextAtIndex( sal_Int32 nIndex, sal_Int16 n… in getTextAtIndex() argument
2915 if( nIndex == rText.getLength() && AccessibleTextType::LINE != nTextType ) in getTextAtIndex()
2920 sal_Bool bWord = GetTextBoundary( aBound, rText, nIndex, nTextType ); in getTextAtIndex()
2936 /*accessibility::*/TextSegment SwAccessibleParagraph::getTextBeforeIndex( sal_Int32 nIndex, sal_Int… in getTextBeforeIndex() argument
2948 if( nIndex == 0 ) in getTextBeforeIndex()
2954 if (nIndex == rText.getLength()) in getTextBeforeIndex()
2955 aBound.startPos = aBound.endPos = nIndex; in getTextBeforeIndex()
2958 sal_Bool bTmp = GetTextBoundary( aBound, rText, nIndex, nTextType ); in getTextBeforeIndex()
2961 aBound.startPos = aBound.endPos = nIndex; in getTextBeforeIndex()
2968 while(preBound.startPos==aBound.startPos && nIndex > 0) in getTextBeforeIndex()
2970 nIndex = min( nIndex, preBound.startPos ) - 1; in getTextBeforeIndex()
2971 if( nIndex < 0 ) break; in getTextBeforeIndex()
2972 GetTextBoundary( preBound, rText, nIndex, nTextType ); in getTextBeforeIndex()
2975 if (nIndex>=0) in getTextBeforeIndex()
2988 nIndex = min( nIndex, aBound.startPos ) - 1; in getTextBeforeIndex()
2989 if( nIndex >= 0 ) in getTextBeforeIndex()
2991 bWord = GetTextBoundary( aBound, rText, nIndex, nTextType ); in getTextBeforeIndex()
2997 if (bWord && nIndex<rText.getLength()) in getTextBeforeIndex()
3007 /*accessibility::*/TextSegment SwAccessibleParagraph::getTextBehindIndex( sal_Int32 nIndex, sal_Int… in getTextBehindIndex() argument
3021 if( nIndex == rText.getLength() ) in getTextBehindIndex()
3027 GetTextBoundary( aBound, rText, nIndex, nTextType ); in getTextBehindIndex()
3031 nIndex = max( sal_Int32(nIndex+1), aBound.endPos ); in getTextBehindIndex()
3032 if( nIndex < rText.getLength() ) in getTextBehindIndex()
3033 bWord = GetTextBoundary( aBound, rText, nIndex, nTextType ); in getTextBehindIndex()
3137 sal_Bool SwAccessibleParagraph::pasteText( sal_Int32 nIndex ) in pasteText() argument
3147 setSelection( nIndex, nIndex ); in pasteText()
3158 sal_Bool SwAccessibleParagraph::insertText( const ::rtl::OUString& sText, sal_Int32 nIndex ) in insertText() argument
3161 return replaceText( nIndex, nIndex, sText ); in insertText()
3960 sal_Int32 SAL_CALL SwAccessibleParagraph::getLineNumberAtIndex( sal_Int32 nIndex ) in getLineNumberAtIndex() argument
3966 if ( ! IsValidPosition( nIndex, nLength ) ) in getLineNumberAtIndex()
3971 const sal_Int32 nLineNo = GetPortionData().GetLineNo( nIndex ); in getLineNumberAtIndex()
4077 sal_Int32& nIndex, sal_Int32& nStart, sal_Int32& nEnd) in GetSelectionAtIndex() argument
4079 if(nIndex < 0) return sal_False; in GetSelectionAtIndex()
4085 sal_Int32 nSelected = nIndex; in GetSelectionAtIndex()
4277 sal_Bool SwAccessibleParagraph::tabCharInWord( sal_Int32 nIndex, i18n::Boundary& aBound) in tabCharInWord() argument
4280 if( aBound.startPos != nIndex) in tabCharInWord()
4283 if(aBound.startPos>nIndex) in tabCharInWord()
4284 tabStr = GetString().copy(nIndex,(aBound.startPos - nIndex) ); in tabCharInWord()
4290 aBound.startPos = nIndex + tabIndex ; in tabCharInWord()