Lines Matching refs:pCrsr

237 	SwPaM *pCrsr = pSh->GetCrsr();  in _Start()  local
241 if( pShell->HasSelection() || pCrsr != pCrsr->GetNext() ) in _Start()
265 pCrsr = pSh->GetCrsr(); in _Start()
266 if ( *pCrsr->GetPoint() > *pCrsr->GetMark() ) in _Start()
267 pCrsr->Exchange(); in _Start()
269 pStart = new SwPosition( *pCrsr->GetPoint() ); in _Start()
270 pEnd = new SwPosition( *pCrsr->GetMark() ); in _Start()
279 pCrsr->SetMark(); in _Start()
362 SwPaM *pCrsr = pMySh->GetCrsr(); in Continue() local
363 if ( !pCrsr->HasMark() ) in Continue()
364 pCrsr->SetMark(); in Continue()
375 SwPosition* pNewPoint = new SwPosition( *pCrsr->GetPoint() ); in Continue()
376 SwPosition* pNewMark = new SwPosition( *pCrsr->GetMark() ); in Continue()
383 pCrsr = pMySh->GetCrsr(); in Continue()
384 if ( *pCrsr->GetPoint() > *pCrsr->GetMark() ) in Continue()
385 pCrsr->Exchange(); in Continue()
386 SwPosition* pNew = new SwPosition( *pCrsr->GetPoint() ); in Continue()
388 pNew = new SwPosition( *pCrsr->GetMark() ); in Continue()
394 pCrsr->SetMark(); in Continue()
438 SwPaM *pCrsr = pMySh->GetCrsr(); in Continue() local
439 if ( !pCrsr->HasMark() ) in Continue()
440 pCrsr->SetMark(); in Continue()
454 SwPosition* pNewPoint = new SwPosition( *pCrsr->GetPoint() ); in Continue()
455 SwPosition* pNewMark = new SwPosition( *pCrsr->GetMark() ); in Continue()
463 pCrsr = pMySh->GetCrsr(); in Continue()
464 if ( *pCrsr->GetPoint() > *pCrsr->GetMark() ) in Continue()
465 pCrsr->Exchange(); in Continue()
466 SwPosition* pNew = new SwPosition( *pCrsr->GetPoint() ); in Continue()
468 pNew = new SwPosition( *pCrsr->GetMark() ); in Continue()
474 pCrsr->SetMark(); in Continue()
562 SwPaM *pCrsr; in Continue() local
565 pCrsr = pMySh->GetCrsr(); in Continue()
566 if ( !pCrsr->HasMark() ) in Continue()
567 pCrsr->SetMark(); in Continue()
568 if ( *pCrsr->GetPoint() < *pCrsr->GetMark() ) in Continue()
570 pCrsr->Exchange(); in Continue()
571 pCrsr->SetMark(); in Continue()
575 if ( *pCrsr->End() > *GetEnd() ) in Continue()
579 *pCrsr->GetMark() = *GetEnd(); in Continue()
583 xHyphWord = pMySh->GetDoc()->Hyphenate( pCrsr, aCrsrPos, in Continue()
597 pCrsr = pMySh->GetCrsr(); in Continue()
598 if ( *pCrsr->GetPoint() > *pCrsr->GetMark() ) in Continue()
599 pCrsr->Exchange(); in Continue()
600 SwPosition* pNew = new SwPosition(*pCrsr->End()); in Continue()
602 pCrsr->SetMark(); in Continue()
619 SwPaM *pCrsr = pMySh->GetCrsr(); in Ignore() local
622 DelSoftHyph( *pCrsr ); in Ignore()
625 pCrsr->Start()->nContent = pCrsr->End()->nContent; in Ignore()
626 pCrsr->SetMark(); in Ignore()
654 SwPaM *pCrsr = pMySh->GetCrsr(); in InsertSoftHyph() local
655 SwPosition* pSttPos = pCrsr->Start(); in InsertSoftHyph()
656 SwPosition* pEndPos = pCrsr->End(); in InsertSoftHyph()
673 DelSoftHyph( *pCrsr ); in InsertSoftHyph()
682 pCrsr->DeleteMark(); in InsertSoftHyph()
684 pCrsr->SetMark(); in InsertSoftHyph()
731 SwPaM *pCrsr = GetCrsr(); in SetLinguRange() local
732 MakeFindRange( static_cast<sal_uInt16>(eStart), static_cast<sal_uInt16>(eEnd), pCrsr ); in SetLinguRange()
733 if( *pCrsr->GetPoint() > *pCrsr->GetMark() ) in SetLinguRange()
734 pCrsr->Exchange(); in SetLinguRange()
1009 SwPaM* pCrsr = GetCrsr(); in GetCorrection() local
1010 SwPosition aPos( *pCrsr->GetPoint() ); in GetCorrection()
1078 pCrsr = GetCrsr(); in GetCorrection()
1079 *pCrsr->GetPoint() = aPos; in GetCorrection()
1080 pCrsr->SetMark(); in GetCorrection()
1087 pCrsr->DeleteMark(); in GetCorrection()
1093 SwCntntNode* pCntntNode = pCrsr->GetCntntNode(); in GetCorrection()
1094 …SwCntntFrm *pCntntFrame = pCntntNode->getLayoutFrm( GetLayout(), pPt, pCrsr->GetPoint(), sal_False… in GetCorrection()
1096 pCntntFrame->GetCharRect( aStartRect, *pCrsr->GetPoint(), &aState ); in GetCorrection()
1099 pCntntFrame->GetCharRect( aEndRect, *pCrsr->GetPoint(),&aState ); in GetCorrection()
1124 SwPaM* pCrsr = GetCrsr(); in GetGrammarCorrection() local
1125 SwPosition aPos( *pCrsr->GetPoint() ); in GetGrammarCorrection()
1222 pCrsr = GetCrsr(); in GetGrammarCorrection()
1223 *pCrsr->GetPoint() = aPos; in GetGrammarCorrection()
1224 pCrsr->SetMark(); in GetGrammarCorrection()
1231 pCrsr->DeleteMark(); in GetGrammarCorrection()
1237 SwCntntNode* pCntntNode = pCrsr->GetCntntNode(); in GetGrammarCorrection()
1238 …SwCntntFrm *pCntntFrame = pCntntNode->getLayoutFrm( GetLayout(), pPt, pCrsr->GetPoint(), sal_False… in GetGrammarCorrection()
1240 pCntntFrame->GetCharRect( aStartRect, *pCrsr->GetPoint(), &aState ); in GetGrammarCorrection()
1243 pCntntFrame->GetCharRect( aEndRect, *pCrsr->GetPoint(),&aState ); in GetGrammarCorrection()
1331 SwPaM *pCrsr = GetCrsr(); in ApplyChangedSentence() local
1368 if ( !pCrsr->HasMark() ) in ApplyChangedSentence()
1369 pCrsr->SetMark(); in ApplyChangedSentence()
1370 pCrsr->GetPoint()->nContent = aCurrentOldPosition->nLeft; in ApplyChangedSentence()
1371 pCrsr->GetMark()->nContent = aCurrentOldPosition->nRight; in ApplyChangedSentence()
1382 pDoc->DeleteAndJoin(*pCrsr); in ApplyChangedSentence()
1386 pDoc->InsertString(*pCrsr, aCurrentNewPortion->sText); in ApplyChangedSentence()
1396 IgnoreGrammarErrorAt( *pCrsr ); in ApplyChangedSentence()
1412 pCrsr->GetPoint()->nContent = aCurrentStartPosition->nLeft; in ApplyChangedSentence()
1413 pCrsr->GetMark()->nContent = aCurrentEndPosition->nRight; in ApplyChangedSentence()
1416 pDoc->DeleteAndJoin(*pCrsr); in ApplyChangedSentence()
1434 pDoc->InsertString(*pCrsr, aCurrentNewPortion->sText); in ApplyChangedSentence()
1437 *pCrsr->Start() = *pCrsr->End(); in ApplyChangedSentence()
1448 *pCrsr->Start() = *pCrsr->End(); in ApplyChangedSentence()
1455 pSpellIter->SetCurr( new SwPosition( *pCrsr->Start() ) ); in ApplyChangedSentence()
1472 SwPaM *pCrsr = pSh->GetCrsr(); in lcl_CollectDeletedRedlines() local
1473 const SwPosition* pStartPos = pCrsr->Start(); in lcl_CollectDeletedRedlines()
1474 const SwTxtNode* pTxtNode = pCrsr->GetNode()->GetTxtNode(); in lcl_CollectDeletedRedlines()
1508 SwPaM *pCrsr = pSh->GetCrsr(); in lcl_CutRedlines() local
1509 const SwPosition* pEndPos = pCrsr->End(); in lcl_CutRedlines()
1560 SwPaM *pCrsr = pMySh->GetCrsr(); in SpellSentence() local
1561 if ( !pCrsr->HasMark() ) in SpellSentence()
1562 pCrsr->SetMark(); in SpellSentence()
1564 *pCrsr->GetPoint() = *GetCurr(); in SpellSentence()
1565 *pCrsr->GetMark() = *GetEnd(); in SpellSentence()
1573 pMySh->GetDoc()->Spell(*pCrsr, in SpellSentence()
1582 SwPosition* pNewPoint = new SwPosition( *pCrsr->GetPoint() ); in SpellSentence()
1583 SwPosition* pNewMark = new SwPosition( *pCrsr->GetMark() ); in SpellSentence()
1591 pCrsr = pMySh->GetCrsr(); in SpellSentence()
1592 if ( *pCrsr->GetPoint() > *pCrsr->GetMark() ) in SpellSentence()
1593 pCrsr->Exchange(); in SpellSentence()
1594 SwPosition* pNew = new SwPosition( *pCrsr->GetPoint() ); in SpellSentence()
1596 pNew = new SwPosition( *pCrsr->GetMark() ); in SpellSentence()
1602 pCrsr->SetMark(); in SpellSentence()
1611 SwPaM *pCrsr = pMySh->GetCrsr(); in SpellSentence() local
1613 if ( *pCrsr->GetPoint() > *pCrsr->GetMark() ) in SpellSentence()
1614 pCrsr->Exchange(); in SpellSentence()
1616 pCrsr->DeleteMark(); in SpellSentence()
1617 pCrsr->SetMark(); in SpellSentence()
1626 *pCrsr->GetPoint() = *GetCurrX(); in SpellSentence()
1627 *pCrsr->GetMark() = *GetCurr(); in SpellSentence()
1632 SwPosition aSaveStartPos = *pCrsr->End(); in SpellSentence()
1634 if ( *pCrsr->GetPoint() < *pCrsr->GetMark() ) in SpellSentence()
1635 pCrsr->Exchange(); in SpellSentence()
1637 pCrsr->DeleteMark(); in SpellSentence()
1638 pCrsr->SetMark(); in SpellSentence()
1644 …const ModelToViewHelper::ConversionMap* pConversionMap = ((SwTxtNode*)pCrsr->GetNode())->BuildConv… in SpellSentence()
1649 if( pCrsr->End()->nContent.GetIndex() < nSentenceEnd ) in SpellSentence()
1651 pCrsr->End()->nContent.Assign( in SpellSentence()
1652 pCrsr->End()->nNode.GetNode().GetCntntNode(), nSentenceEnd); in SpellSentence()
1660 SetEnd( new SwPosition( *pCrsr->End() )); in SpellSentence()
1662 *pCrsr->GetPoint() = aSaveStartPos; in SpellSentence()
1663 *pCrsr->GetMark() = *GetEnd(); in SpellSentence()
1673 pMySh->GetDoc()->Spell(*pCrsr, in SpellSentence()
1675 if ( *pCrsr->GetPoint() > *pCrsr->GetMark() ) in SpellSentence()
1676 pCrsr->Exchange(); in SpellSentence()
1677 SetCurr( new SwPosition( *pCrsr->GetPoint() )); in SpellSentence()
1678 SetCurrX( new SwPosition( *pCrsr->GetMark() )); in SpellSentence()
1684 *pCrsr->GetPoint() = aSaveStartPos; in SpellSentence()
1685 *pCrsr->GetMark() = *GetCurr(); in SpellSentence()
1692 *pCrsr->GetPoint() = *GetCurr(); in SpellSentence()
1693 *pCrsr->GetMark() = *GetCurrX(); in SpellSentence()
1696 *pCrsr->GetPoint() = *GetCurrX(); in SpellSentence()
1700 *pCrsr->GetMark() = *GetEnd(); in SpellSentence()
1713 if ( *pCrsr->GetPoint() < *pCrsr->GetMark() ) in SpellSentence()
1714 pCrsr->Exchange(); in SpellSentence()
1724 *pCrsr->GetMark() = *GetEnd(); in SpellSentence()
1812 SwPaM *pCrsr = GetSh()->GetCrsr(); in CreatePortion() local
1813 aPosition.nLeft = pCrsr->Start()->nContent.GetIndex(); in CreatePortion()
1814 aPosition.nRight = pCrsr->End()->nContent.GetIndex(); in CreatePortion()
1837 SwPaM *pCrsr = GetSh()->GetCrsr(); in AddPortion() local
1838 if ( *pCrsr->GetPoint() > *pCrsr->GetMark() ) in AddPortion()
1839 pCrsr->Exchange(); in AddPortion()
1841 SwPosition aStart(*pCrsr->GetPoint()); in AddPortion()
1842 SwPosition aEnd(*pCrsr->GetMark()); in AddPortion()
1845 *pCrsr->GetMark() = aStart; in AddPortion()
1846 SwTxtNode* pTxtNode = pCrsr->GetNode()->GetTxtNode(); in AddPortion()
1855 pCrsr->GetPoint()->nContent.Assign( pTxtNode, nEnd ); in AddPortion()
1857 aStart = *pCrsr->End(); in AddPortion()
1862 while(*pCrsr->GetPoint() < aEnd) in AddPortion()
1870 … xub_Unicode cChar = pTxtNode->GetTxt().GetChar( pCrsr->GetMark()->nContent.GetIndex() ); in AddPortion()
1874 pCrsr->GetMark()->nContent.GetIndex() ); in AddPortion()
1890 bool bRedline = aNextRedline.nLeft == pCrsr->GetPoint()->nContent.GetIndex(); in AddPortion()
1902 *pCrsr->GetPoint() = *pCrsr->GetMark(); in AddPortion()
1904 *pCrsr->GetMark() = aStart; in AddPortion()
1907 if(*pCrsr->Start() != *pCrsr->End()) in AddPortion()
1909 aStart = *pCrsr->End(); in AddPortion()
1913 *pCrsr->GetMark() = *pCrsr->GetPoint(); in AddPortion()
1916 aStart = *pCrsr->End(); in AddPortion()
1922 *pCrsr->GetMark() = *pCrsr->GetPoint(); in AddPortion()
1926 pCrsr->GetPoint()->nContent.Assign( pTxtNode, nEnd ); in AddPortion()
1928 aStart = *pCrsr->End(); in AddPortion()
1933 *pCrsr->GetMark() = *pCrsr->GetPoint(); in AddPortion()
1935 pCrsr->SetMark(); in AddPortion()
1936 *pCrsr->GetMark() = aStart; in AddPortion()