Lines Matching refs:sal_uInt16

74 sal_uInt16 lcl_CalcExtraSpace( ParaPortion*, const SvxLineSpacingItem& rLSItem )  in lcl_CalcExtraSpace()
76 sal_uInt16 nExtra = 0; in lcl_CalcExtraSpace()
221 nOnePixelInRef = (sal_uInt16)pRefDev->PixelToLogic( Size( 1, 0 ) ).Width(); in SetRefDevice()
244 nOnePixelInRef = (sal_uInt16)pRefDev->PixelToLogic( Size( 1, 0 ) ).Width(); in SetRefMapMode()
484 sal_uInt16 nMax = aOldTextAfterStartPos.Search( CH_FEATURE ); in Command()
549 sal_uInt16 nOldIMETextLen = mpIMEInfos->nLen; in Command()
550 sal_uInt16 nNewIMETextLen = pData->GetText().Len(); in Command()
556 sal_uInt16 nRestore = nOldIMETextLen - nNewIMETextLen; in Command()
565 sal_uInt16 nOverwrite = nNewIMETextLen - nOldIMETextLen; in Command()
613 sal_uInt16 nInputEnd = mpIMEInfos->aPos.GetIndex() + mpIMEInfos->nLen; in Command()
619 sal_uInt16 nLine = pParaPortion->GetLines().FindLine( aPaM.GetIndex(), sal_True ); in Command()
727 for ( sal_uInt16 nView = aEditViews.Count(); nView; ) in Clear()
743 for ( sal_uInt16 nView = 0; nView < aEditViews.Count(); nView++ ) in RemoveText()
767 for ( sal_uInt16 nView = 0; nView < aEditViews.Count(); nView++ ) in SetText()
796 for ( sal_uInt16 nWhich = EE_ITEMS_START; nWhich <= EE_CHAR_END; nWhich++) in GetEmptyItemSet()
869 sal_uInt16 nCode = aTranslatedKeyEvent.GetKeyCode().GetCode(); in MoveCursor()
1037 sal_uInt16 nLine = pParaPortion->GetLines().FindLine( aPaM.GetIndex(), sal_False ); in CursorVisualStartEnd()
1056 sal_uInt16 nVisPos = bStart ? 0 : aLine.Len()-1; in CursorVisualStartEnd()
1057 sal_uInt16 nLogPos = (sal_uInt16)ubidi_getLogicalIndex( pBidi, nVisPos, &nError ); in CursorVisualStartEnd()
1063 sal_uInt16 nTmp; in CursorVisualStartEnd()
1064sal_uInt16 nTextPortion = pParaPortion->GetTextPortions().FindPortion( aPaM.GetIndex(), nTmp, sal_… in CursorVisualStartEnd()
1066 sal_uInt16 nRTLLevel = pTextPortion->GetRightToLeft(); in CursorVisualStartEnd()
1088 EditPaM ImpEditEngine::CursorVisualLeftRight( EditView* pEditView, const EditPaM& rPaM, sal_uInt16 in CursorVisualLeftRight()
1095 sal_uInt16 nLine = pParaPortion->GetLines().FindLine( aPaM.GetIndex(), sal_False ); in CursorVisualLeftRight()
1129 sal_uInt16 nPortionStart; in CursorVisualLeftRight()
1130sal_uInt16 nTextPortion = pParaPortion->GetTextPortions().FindPortion( aPaM.GetIndex(), nPortionSt… in CursorVisualLeftRight()
1134 sal_uInt16 nRTLLevel = pTextPortion->GetRightToLeft(); in CursorVisualLeftRight()
1137 sal_uInt16 nRTLLevelNextPortion = 0xFFFF; in CursorVisualLeftRight()
1140 sal_uInt16 nTmp; in CursorVisualLeftRight()
1141sal_uInt16 nNextTextPortion = pParaPortion->GetTextPortions().FindPortion( aPaM.GetIndex()+1, nTmp… in CursorVisualLeftRight()
1168 sal_uInt16 nPosInLine = aPaM.GetIndex() - pLine->GetStart(); in CursorVisualLeftRight()
1181sal_uInt16 nVisPos = (sal_uInt16)ubidi_getVisualIndex( pBidi, !bEndOfLine ? nPosInLine : nPosInLin… in CursorVisualLeftRight()
1197 sal_uInt16 nLogPos = (sal_uInt16)ubidi_getLogicalIndex( pBidi, nVisPos, &nError ); in CursorVisualLeftRight()
1209 sal_uInt16 nPortionStart; in CursorVisualLeftRight()
1210sal_uInt16 nTextPortion = pParaPortion->GetTextPortions().FindPortion( aPaM.GetIndex(), nPortionSt… in CursorVisualLeftRight()
1234 sal_uInt16 nLogPos = (sal_uInt16)ubidi_getLogicalIndex( pBidi, nVisPos, &nError ); in CursorVisualLeftRight()
1250 sal_uInt16 _nPortionStart; in CursorVisualLeftRight()
1252sal_uInt16 _nTextPortion = pParaPortion->GetTextPortions().FindPortion( aPaM.GetIndex(), _nPortion… in CursorVisualLeftRight()
1283 EditPaM ImpEditEngine::CursorLeft( const EditPaM& rPaM, sal_uInt16 nCharacterIteratorMode ) in CursorLeft()
1292 …aNewPaM.SetIndex( (sal_uInt16)_xBI->previousCharacters( *aNewPaM.GetNode(), aNewPaM.GetIndex(), Ge… in CursorLeft()
1308 EditPaM ImpEditEngine::CursorRight( const EditPaM& rPaM, sal_uInt16 nCharacterIteratorMode ) in CursorRight()
1317 …aNewPaM.SetIndex( (sal_uInt16)_xBI->nextCharacters( *aNewPaM.GetNode(), aNewPaM.GetIndex(), GetLoc… in CursorRight()
1339 sal_uInt16 nLine = pPPortion->GetLineNumber( rPaM.GetIndex() ); in CursorUp()
1383 sal_uInt16 nLine = pPPortion->GetLineNumber( rPaM.GetIndex() ); in CursorDown()
1427 sal_uInt16 nLine = pCurPortion->GetLineNumber( rPaM.GetIndex() ); in CursorStartOfLine()
1440 sal_uInt16 nLine = pCurPortion->GetLineNumber( rPaM.GetIndex() ); in CursorEndOfLine()
1532 sal_uInt16 nCurrentPos = rPaM.GetIndex(); in WordLeft()
1559 aNewPaM.SetIndex( ( aBoundary.startPos != (-1) ) ? (sal_uInt16)aBoundary.startPos : 0 ); in WordLeft()
1579 aNewPaM.SetIndex( (sal_uInt16)aBoundary.startPos ); in WordRight()
1610 aNewPaM.SetIndex( (sal_uInt16)aBoundary.startPos ); in StartOfWord()
1628 aNewPaM.SetIndex( (sal_uInt16)aBoundary.endPos ); in EndOfWord()
1654 aNewSel.Min().SetIndex( (sal_uInt16)aBoundary.startPos ); in SelectWord()
1655 aNewSel.Max().SetIndex( (sal_uInt16)aBoundary.endPos ); in SelectWord()
1676 aNewSel.Min().SetIndex( (sal_uInt16)nStart ); in SelectSentence()
1677 aNewSel.Max().SetIndex( (sal_uInt16)nEnd ); in SelectSentence()
1688 sal_uInt16 nFirstPos = rCurSel.Min().GetIndex(); in IsInputSequenceCheckingRequired()
1689 sal_uInt16 nMaxPos = rCurSel.Max().GetIndex(); in IsInputSequenceCheckingRequired()
1744 for ( sal_uInt16 nCharInField = 1; nCharInField < aFldText.getLength(); nCharInField++ ) in InitScriptTypes()
1769 sal_uInt16 nTextLen = (sal_uInt16)aOUText.getLength(); in InitScriptTypes()
1773 rTypes.push_back( ScriptTypePosInfo( nScriptType, (sal_uInt16)nPos, nTextLen ) ); in InitScriptTypes()
1777 rTypes.back().nEndPos = (sal_uInt16)nPos; in InitScriptTypes()
1785 rTypes.back().nEndPos = (sal_uInt16)nEndPos; in InitScriptTypes()
1800 rTypes.push_back( ScriptTypePosInfo( nScriptType, (sal_uInt16)nPos, nTextLen ) ); in InitScriptTypes()
1837 …rt( rTypes.begin()+nIdx, ScriptTypePosInfo( rTypes[nIdx].nScriptType, (sal_uInt16)nEnd, rTypes[nId… in InitScriptTypes()
1844 …begin()+nIdx, ScriptTypePosInfo( i18n::ScriptType::COMPLEX, (sal_uInt16)nStart, (sal_uInt16)nEnd) … in InitScriptTypes()
1853 sal_uInt16 nDebugStt = 0; in InitScriptTypes()
1854 sal_uInt16 nDebugEnd = 0; in InitScriptTypes()
1866 sal_uInt16 ImpEditEngine::GetScriptType( const EditPaM& rPaM, sal_uInt16* pEndPos ) const in GetScriptType()
1868 sal_uInt16 nScriptType = 0; in GetScriptType()
1881 sal_uInt16 nPos = rPaM.GetIndex(); in GetScriptType()
1896 sal_uInt16 ImpEditEngine::GetScriptType( const EditSelection& rSel ) const in GetScriptType()
1917 sal_uInt16 nS = ( nPara == nStartPara ) ? aSel.Min().GetIndex() : 0; in GetScriptType()
1918 sal_uInt16 nE = ( nPara == nEndPara ) ? aSel.Max().GetIndex() : pParaPortion->GetNode()->Len(); in GetScriptType()
1954 sal_uInt16 nPos = rPaM.GetIndex(); in IsScriptChange()
1967 sal_Bool ImpEditEngine::HasScriptType( sal_uInt32 nPara, sal_uInt16 nType ) const in HasScriptType()
2026 … rInfos.push_back( WritingDirectionInfo( nCurrDir, (sal_uInt16)nStart, (sal_uInt16)nEnd ) ); in InitWritingDirections()
2035 … rInfos.push_back( WritingDirectionInfo( 0, 0, (sal_uInt16)pParaPortion->GetNode()->Len() ) ); in InitWritingDirections()
2076 sal_uInt16 nRTLLevel = IsRightToLeft( nPara ) ? 1 : 0; in HasDifferentRTLLevels()
2077 for ( sal_uInt16 n = 0; n < pParaPortion->GetTextPortions().Count(); n++ ) in HasDifferentRTLLevels()
2090 …nt8 ImpEditEngine::GetRightToLeft( sal_uInt32 nPara, sal_uInt16 nPos, sal_uInt16* pStart, sal_uInt… in GetRightToLeft()
2144 void ImpEditEngine::ImpRemoveChars( const EditPaM& rPaM, sal_uInt16 nChars, EditUndoRemoveChars* pC… in ImpRemoveChars()
2151 sal_uInt16 nStart = rPaM.GetIndex(); in ImpRemoveChars()
2152 sal_uInt16 nEnd = nStart + nChars; in ImpRemoveChars()
2155 for ( sal_uInt16 nAttr = 0; nAttr < rAttribs.Count(); nAttr++ ) in ImpRemoveChars()
2355 sal_uInt16 nRWrongs = pRight->GetWrongList()->Count(); in ImpConnectParagraphs()
2356 for ( sal_uInt16 nW = 0; nW < nRWrongs; nW++ ) in ImpConnectParagraphs()
2530 sal_uInt16 nChars; in ImpDeleteSelection()
2549 sal_uInt16 nChars; in ImpDeleteSelection()
2651 sal_uInt16 nIndex = aSel.Max().GetIndex(); in AutoCorrect()
2730 EditSelection aSel( EditPaM( aPaM.GetNode(), (sal_uInt16) nChgPos ), aPaM ); in InsertText()
2958 sal_uInt16 nLWrongs = pLWrongs->Count(); in ImpInsertParaBreak()
2959 for ( sal_uInt16 nW = 0; nW < nLWrongs; nW++ ) in ImpInsertParaBreak()
2973 sal_uInt16 nInv = nEnd ? nEnd-1 : nEnd; in ImpInsertParaBreak()
3044 sal_uInt16 n = 0; in InsertParaBreak()
3082 for ( sal_uInt16 nAttr = 0; nAttr < rAttribs.Count(); nAttr++ ) in UpdateFields()
3127 Rectangle ImpEditEngine::PaMtoEditCursor( EditPaM aPaM, sal_uInt16 nFlags ) in PaMtoEditCursor()
3231 for ( sal_uInt16 nLine = 0; nLine < nLines; nLine++ ) in CalcTextWidth()
3282 sal_uInt16 nPos = pLine->GetStart(); in CalcLineWidth()
3283 for ( sal_uInt16 nTP = pLine->GetStartPortion(); nTP <= pLine->GetEndPortion(); nTP++ ) in CalcLineWidth()
3329 sal_uInt16 ImpEditEngine::GetLineCount( sal_uInt32 nParagraph ) const in GetLineCount()
3340 xub_StrLen ImpEditEngine::GetLineLen( sal_uInt32 nParagraph, sal_uInt16 nLine ) const in GetLineLen()
3355 …ditEngine::GetLineBoundaries( /*out*/sal_uInt16 &rStart, /*out*/sal_uInt16 &rEnd, sal_uInt32 nPara… in GetLineBoundaries()
3370 sal_uInt16 ImpEditEngine::GetLineNumberAtIndex( sal_uInt32 nPara, sal_uInt16 nIndex ) const in GetLineNumberAtIndex()
3372 sal_uInt16 nLineNo = 0xFFFF; in GetLineNumberAtIndex()
3380 const sal_uInt16 nLineCount = GetLineCount( nPara ); in GetLineNumberAtIndex()
3385 sal_uInt16 nStart = USHRT_MAX, nEnd = USHRT_MAX; in GetLineNumberAtIndex()
3386 for (sal_uInt16 i = 0; i < nLineCount && nLineNo == 0xFFFF; ++i) in GetLineNumberAtIndex()
3397 sal_uInt16 ImpEditEngine::GetLineHeight( sal_uInt32 nParagraph, sal_uInt16 nLine ) in GetLineHeight()
3427 sal_uInt16 nInvNodes = aDeletedNodes.Count(); in UpdateSelections()
3431 for ( sal_uInt16 nView = 0; nView < aEditViews.Count(); nView++ ) in UpdateSelections()
3437 for ( sal_uInt16 n = 0; n < nInvNodes; n++ ) in UpdateSelections()
3490 for ( sal_uInt16 n = 0; n < nInvNodes; n++ ) in UpdateSelections()
3498 EditSelection ImpEditEngine::ConvertSelection( sal_uInt32 nStartPara, sal_uInt16 nStartPos, in ConvertSelection()
3499 sal_uInt32 nEndPara, sal_uInt16 nEndPos ) const in ConvertSelection()
3505 sal_uInt16 nIndex = nStartPos; in ConvertSelection()
3545 sal_uInt16 nPos = aTmpSel.Min().GetIndex(); in MatchGroup()
3550 sal_uInt16 nMatchChar = aGroupChars.Search( pNode->GetChar( nPos ) ); in MatchGroup()
3561 sal_uInt16 nCur = aTmpSel.Min().GetIndex()+1; in MatchGroup()
3562 sal_uInt16 nLevel = 1; in MatchGroup()
3598 sal_uInt16 nCur = aTmpSel.Min().GetIndex()-1; in MatchGroup()
3599 sal_uInt16 nLevel = 1; in MatchGroup()
3842 sal_uInt16 nSBL = ( rLSItem.GetInterLineSpaceRule() == SVX_INTER_LINE_SPACE_FIX ) in GetInvalidYOffsets()
3846 sal_uInt16 nFirstInvalid = 0xFFFF; in GetInvalidYOffsets()
3847 sal_uInt16 nLine; in GetInvalidYOffsets()
3869 sal_uInt16 nLastInvalid = pPortion->GetLines().Count()-1; in GetInvalidYOffsets()
3906 sal_uInt16 nCurIndex = 0; in GetPaM()
3911 sal_uInt16 nSBL = ( rLSItem.GetInterLineSpaceRule() == SVX_INTER_LINE_SPACE_FIX ) in GetPaM()
3919 for ( sal_uInt16 nLine = 0; nLine < pPortion->GetLines().Count(); nLine++ ) in GetPaM()
3957 sal_uInt16 ImpEditEngine::GetChar( ParaPortion* pParaPortion, EditLine* pLine, long nXPos, sal_Bool… in GetChar()
3961 sal_uInt16 nChar = 0xFFFF; in GetChar()
3962 sal_uInt16 nCurIndex = pLine->GetStart(); in GetChar()
3966 for ( sal_uInt16 i = pLine->GetStartPortion(); i <= pLine->GetEndPortion(); i++ ) in GetChar()
3991 sal_uInt16 nMax = pPortion->GetLen(); in GetChar()
3992 sal_uInt16 nOffset = 0xFFFF; in GetChar()
3993 sal_uInt16 nTmpCurIndex = nChar - pLine->GetStart(); in GetChar()
4000 for ( sal_uInt16 x = 0; x < nMax; x++ ) in GetChar()
4039 sal_uInt16 nScriptType = GetScriptType( aPaM ); in GetChar()
4045sal_uInt16 nRight = (sal_uInt16)_xBI->nextCharacters( *pParaPortion->GetNode(), nChar, aLocale, ::… in GetChar()
4046sal_uInt16 nLeft = (sal_uInt16)_xBI->previousCharacters( *pParaPortion->GetNode(), nRight, aLocale… in GetChar()
4087 long ImpEditEngine::GetPortionXOffset( ParaPortion* pParaPortion, EditLine* pLine, sal_uInt16 nText… in GetPortionXOffset()
4091 for ( sal_uInt16 i = pLine->GetStartPortion(); i < nTextPortion; i++ ) in GetPortionXOffset()
4117 sal_uInt16 nTmpPortion = nTextPortion+1; in GetPortionXOffset()
4142 sal_uInt16 nTmpPortion = nTextPortion+1; in GetPortionXOffset()
4177 long ImpEditEngine::GetXPos( ParaPortion* pParaPortion, EditLine* pLine, sal_uInt16 nIndex, sal_Boo… in GetXPos()
4189 sal_uInt16 nTextPortionStart = 0; in GetXPos()
4190sal_uInt16 nTextPortion = pParaPortion->GetTextPortions().FindPortion( nIndex, nTextPortionStart, … in GetXPos()
4242 sal_uInt16 nPos = nIndex - 1 - pLine->GetStart(); in GetXPos()
4269 sal_uInt16 n = nIndex - nTextPortionStart; in GetXPos()
4317 for ( sal_uInt16 nLine = 0; nLine < pPortion->GetLines().Count(); nLine++ ) in CalcHeight()
4324sal_uInt16 nSBL = ( rLSItem.GetInterLineSpaceRule() == SVX_INTER_LINE_SPACE_FIX ) ? GetYValue( rLS… in CalcHeight()
4337 sal_uInt16 nUpper = GetYValue( rULItem.GetUpper() ); in CalcHeight()
4360 sal_uInt16 nExtraSpace = GetYValue( lcl_CalcExtraSpace( pPortion, rLSItem ) ); in CalcHeight()
4369 sal_uInt16 nPrevLower = GetYValue( rPrevULItem.GetLower() ); in CalcHeight()
4394 sal_uInt16 nMoreLower = nExtraSpace - nPrevLower; in CalcHeight()
4408 Rectangle ImpEditEngine::GetEditCursor( ParaPortion* pPortion, sal_uInt16 nIndex, sal_uInt16 nFlags… in GetEditCursor()
4423 sal_uInt16 nSBL = ( rLSItem.GetInterLineSpaceRule() == SVX_INTER_LINE_SPACE_FIX ) in GetEditCursor()
4426 sal_uInt16 nCurIndex = 0; in GetEditCursor()
4430 for ( sal_uInt16 nLine = 0; nLine < pPortion->GetLines().Count(); nLine++ ) in GetEditCursor()