/aoo41x/main/svtools/source/edit/ |
H A D | xtextedt.cxx | 144 return aSel; in MatchGroup() 150 aSel.Justify(); in Search() 164 nEndNode = bForward ? aSel.GetEnd().GetPara() : aSel.GetStart().GetPara(); in Search() 282 SetSelection( aSel ); in Search() 313 TextSelection aSel; in Replace() local 318 aSel = GetSelection(); in Replace() 319 aSel.Justify(); in Replace() 332 aSel = aSearchSel; in Replace() 351 aSel.Justify(); in ImpIndentBlock() 358 if ( aSel.HasRange() && !aSel.GetEnd().GetIndex() ) in ImpIndentBlock() [all …]
|
H A D | textundo.cxx | 153 SetSelection( aSel ); in Undo() 238 TextSelection aSel( maTextPaM, maTextPaM ); in Undo() local 239 aSel.GetEnd().GetIndex() = aSel.GetEnd().GetIndex() + maText.Len(); in Undo() 246 TextSelection aSel( maTextPaM, maTextPaM ); in Redo() local 247 GetTextEngine()->ImpInsertText( aSel, maText ); in Redo() 280 TextSelection aSel( maTextPaM, maTextPaM ); in Undo() local 281 GetTextEngine()->ImpInsertText( aSel, maText ); in Undo() 282 aSel.GetEnd().GetIndex() = aSel.GetEnd().GetIndex() + maText.Len(); in Undo() 283 SetSelection( aSel ); in Undo() 288 TextSelection aSel( maTextPaM, maTextPaM ); in Redo() local [all …]
|
H A D | texteng.cxx | 341 aSel.Justify(); in GetTextLen() 474 aSel.Justify(); in GetText() 623 aSel.Justify(); in ImpDeleteText() 2627 …aWord = pNode->GetText().Copy( aSel.GetStart().GetIndex(), aSel.GetEnd().GetIndex() - aSel.GetStar… in GetWord() 2640 TextSelection aSel; in Read() local 2642 aSel = *pSel; in Read() 2651 aSel = ImpDeleteText( aSel ); in Read() 2658 aSel = ImpInsertText( aSel, aTmpStr ); in Read() 2662 aSel = ImpInsertParaBreak( aSel.GetEnd() ); in Read() 2667 TextSelection aNewSel( aSel.GetEnd(), aSel.GetEnd() ); in Read() [all …]
|
/aoo41x/main/sc/source/ui/pagedlg/ |
H A D | scuitphfedit.cxx | 588 aSel.nStartPos = aSel.nEndPos; in IsPageEntry() 678 …dItem(SvxPageField(), EE_FEATURE_FIELD), ESelection(aSel.nEndPara, aSel.nEndPos, aSel.nEndPara, aS… in ProcessDefinedListSel() 683 …ditEngine()->QuickInsertText(aPageOfEntry,ESelection(aSel.nEndPara,aSel.nEndPos, aSel.nEndPara, aS… in ProcessDefinedListSel() 685 …dItem(SvxPagesField(), EE_FEATURE_FIELD), ESelection(aSel.nEndPara,aSel.nEndPos, aSel.nEndPara, aS… in ProcessDefinedListSel() 727 …EditEngine()->QuickInsertText(aPageEntry, ESelection(aSel.nEndPara,aSel.nEndPos, aSel.nEndPara, aS… in ProcessDefinedListSel() 728 aSel.nStartPos = aSel.nEndPos; in ProcessDefinedListSel() 730 …ldItem(SvxPageField(), EE_FEATURE_FIELD), ESelection(aSel.nEndPara,aSel.nEndPos, aSel.nEndPara, aS… in ProcessDefinedListSel() 755 …dItem(SvxPageField(), EE_FEATURE_FIELD), ESelection(aSel.nEndPara, aSel.nEndPos, aSel.nEndPara, aS… in ProcessDefinedListSel() 758 …ditEngine()->QuickInsertText(aCommaSpace,ESelection(aSel.nEndPara, aSel.nEndPos, aSel.nEndPara, aS… in ProcessDefinedListSel() 776 …dItem(SvxPageField(), EE_FEATURE_FIELD), ESelection(aSel.nEndPara, aSel.nEndPos, aSel.nEndPara, aS… in ProcessDefinedListSel() [all …]
|
/aoo41x/main/editeng/source/outliner/ |
H A D | outlvw.cxx | 159 if( aSel.nEndPos == pOwner->pEditEngine->GetTextLen( aSel.nEndPara ) ) in PostKeyEvent() 201 if( !bReadOnly && !bSelection && aSel.nEndPara && !aSel.nEndPos ) in PostKeyEvent() 227 aSel.nEndPos == pOwner->pEditEngine->GetTextLen( aSel.nEndPara ) ) in PostKeyEvent() 248 ( aSel.nEndPos == pOwner->pEditEngine->GetTextLen(aSel.nEndPara) ) ) in PostKeyEvent() 550 for( sal_uInt16 nPara= aSel.nStartPara; nPara <= aSel.nEndPara; nPara++ ) in SetAttribs() 570 ParaRange aParas( aSel.nStartPara, aSel.nEndPara ); in ImpGetSelectedParagraphs() 1156 aSel.Adjust(); in ImpCalcSelectedPages() 1191 aSel.Adjust(); in ToggleBullets() 1267 aSel.Adjust(); in ToggleBulletsNumbering() 1305 aSel.Adjust(); in EnableBullets() [all …]
|
/aoo41x/main/editeng/source/editeng/ |
H A D | impedit4.cxx | 128 aSel = ImpDeleteSelection( aSel ); in ReadText() 147 aSel = ImpDeleteSelection( aSel ); in ReadXML() 170 aSel = ImpDeleteSelection( aSel ); in ReadRTF() 190 return aSel.Min(); in ReadRTF() 203 aSel = ImpDeleteSelection( aSel ); in ReadHTML() 1067 ( aSel.Max().GetIndex() < aSel.Max().GetNode()->Len() ) ) ? in CreateBinTextObject() 1229 aSel = ImpDeleteSelection( aSel ); in InsertText() 1427 return aSel; in InsertBinTextObject() 2401 if ( aSel.Max().GetIndex() < aSel.Max().GetNode()->Len() ) in DoOnlineSpelling() 2839 aSel = SelectWord( aSel ); in TransliterateText() [all …]
|
H A D | editundo.cxx | 61 EditSelection aSel( aPaM, aPaM ); in lcl_DoSetSelection() local 356 EditSelection aSel( aPaM, aPaM ); in Undo() local 357 aSel.Max().GetIndex() = aSel.Max().GetIndex() + aText.Len(); in Undo() 405 aSel.Max().GetIndex() = aSel.Max().GetIndex() + aText.Len(); in Undo() 414 aSel.Max().GetIndex() = aSel.Max().GetIndex() + aText.Len(); in Redo() 440 aSel.Max().GetIndex()++; in Undo() 454 aSel.Max().GetIndex()++; in Redo() 683 aSel = _pImpEE->DeleteSelected( aSel ); in Undo() 684 EditSelection aDelSel( aSel ); in Undo() 685 aSel = _pImpEE->InsertParaBreak( aSel ); in Undo() [all …]
|
H A D | impedit5.cxx | 60 aSel.Adjust( aEditDoc ); in SetStyleSheet() 202 aSel.Adjust( aEditDoc ); in CreateAttribUndo() 340 aSel.Adjust( aEditDoc ); in GetAttribs() 362 nStartPos = aSel.Min().GetIndex(); in GetAttribs() 364 nEndPos = aSel.Max().GetIndex(); in GetAttribs() 530 aSel.Adjust( aEditDoc ); in SetAttribs() 535 aSel = SelectWord( aSel, ::com::sun::star::i18n::WordType::ANYWORD_IGNOREWHITESPACES, sal_False ); in SetAttribs() 570 nStartPos = aSel.Min().GetIndex(); in SetAttribs() 572 nEndPos = aSel.Max().GetIndex(); in SetAttribs() 639 aSel.Adjust( aEditDoc ); in RemoveCharAttribs() [all …]
|
H A D | editview.cxx | 729 Range aRange( aSel.nStartPara, aSel.nEndPara ); in MoveParagraphs() 927 aSel = PIMPEE->EndOfWord( aSel.Max() ); in CompleteAutoCorrect() 929 aSel = PIMPEE->AutoCorrect( aSel, 0, !IsInsertMode() ); in CompleteAutoCorrect() 1371 if ( ( aSel.Min().GetNode() == aSel.Max().GetNode() ) && in GetFieldAtSelection() 1372 ( ( aSel.Max().GetIndex() == aSel.Min().GetIndex() ) || in GetFieldAtSelection() 1373 ( aSel.Max().GetIndex() == aSel.Min().GetIndex()+1 ) ) ) in GetFieldAtSelection() 1470 aSel.Adjust(); in ChangeFontSize() 1472 if( !aSel.HasRange() ) in ChangeFontSize() 1477 if( aSel.HasRange() ) in ChangeFontSize() 1479 for( sal_uInt16 nPara = aSel.nStartPara; nPara <= aSel.nEndPara; nPara++ ) in ChangeFontSize() [all …]
|
H A D | edtspell.cxx | 560 pImpEE->ImpDeleteSelection( aSel ); in Delete() 569 EditSelection aSel = EditPaM( pCurNode, nPos ); in Insert() local 570 pImpEE->ImpInsertText( aSel, rTxt ); in Insert() 627 aSel.Max().SetIndex( nEnd ); // ??? in SetAttr() 639 String aText = pImpEE->GetSelected( aSel ); in SetINetAttr() 640 aSel = pImpEE->ImpDeleteSelection( aSel ); in SetINetAttr() 645 pImpEE->InsertField( aSel, aField ); in SetINetAttr() 734 aSel = pImpEE->ImpDeleteSelection( aSel ); in ChgAutoCorrWord() 737 pImpEE->ImpInsertText( aSel, pFnd->GetLong() ); in ChgAutoCorrWord() 755 ESelection aSel( nPara, nCursor, nPara, nCursor ); in ImplStartUndoAction() local [all …]
|
H A D | editeng.cxx | 764 aSel = pImpEditEngine->SelectWord( aSel ); in GetWord() 774 aSel = pE->pImpEditEngine->SelectWord( aSel, nWordType ); in GetWord() 784 aSel = pE->pImpEditEngine->WordLeft( aSel.Min(), nWordType ); in WordLeft() 794 aSel = pE->pImpEditEngine->WordRight( aSel.Max(), nWordType ); in WordRight() 804 aSel = pE->pImpEditEngine->CursorLeft( aSel.Min(), nCharacterIteratorMode ); in CursorLeft() 814 aSel = pE->pImpEditEngine->CursorRight( aSel.Max(), nCharacterIteratorMode ); in CursorRight() 1670 EditSelection aSel( pImpEditEngine-> in GetAttribs() local 1955 EditSelection aSel( pImpEditEngine-> in QuickSetAttribs() local 1978 EditSelection aSel( pImpEditEngine-> in QuickInsertText() local 1988 EditSelection aSel( pImpEditEngine-> in QuickDelete() local [all …]
|
H A D | impedit.hxx | 631 EditPaM ReadText( SvStream& rInput, EditSelection aSel ); 632 EditPaM ReadRTF( SvStream& rInput, EditSelection aSel ); 633 EditPaM ReadXML( SvStream& rInput, EditSelection aSel ); 635 EditPaM ReadBin( SvStream& rInput, EditSelection aSel ); 796 EditTextObject* CreateTextObject( EditSelection aSel ); 1065 EditSelection aSel; in CreateSel() local 1066 aSel.Min().SetNode( aEditDoc[ rSel.nStartPara ] ); in CreateSel() 1067 aSel.Min().SetIndex( rSel.nStartPos ); in CreateSel() 1068 aSel.Max().SetNode( aEditDoc[ rSel.nEndPara ] ); in CreateSel() 1069 aSel.Max().SetIndex( rSel.nEndPos ); in CreateSel() [all …]
|
/aoo41x/main/sc/source/ui/app/ |
H A D | inputhdl.cxx | 972 aSel.Adjust(); in UseFormulaData() 1490 aSel.nEndPara, aSel.nEndPos ); in UseColData() 1536 if ( aSel.nEndPara+1 == nParCnt && aSel.nStartPara == aSel.nEndPara ) in NextAutoEntry() 1539 xub_StrLen nSelLen = aSel.nEndPos - aSel.nStartPos; in NextAutoEntry() 1557 aSel.nEndPara, aSel.nStartPos + aIns.Len(), in NextAutoEntry() 1558 aSel.nEndPara, aSel.nStartPos ) ); in NextAutoEntry() 1565 aSel.nEndPara, aSel.nStartPos + aIns.Len(), in NextAutoEntry() 1566 aSel.nEndPara, aSel.nStartPos ) ); in NextAutoEntry() 2257 aSel.nStartPara = aSel.nEndPara; in RemoveSelection() 2258 aSel.nStartPos = aSel.nEndPos; in RemoveSelection() [all …]
|
/aoo41x/main/sd/source/ui/view/ |
H A D | outlnvs2.cxx | 360 if ( aSel.nStartPos <= aSel.nEndPos ) in FuTemporaryModify() 361 aSel.nEndPos = aSel.nStartPos + 1; in FuTemporaryModify() 363 aSel.nStartPos = aSel.nEndPos + 1; in FuTemporaryModify() 364 pOutlinerView->SetSelection( aSel ); in FuTemporaryModify() 557 if( aSel.nStartPos == aSel.nEndPos ) in FuTemporaryModify() 558 aSel.nEndPos++; in FuTemporaryModify() 559 pOutlinerView->SetSelection( aSel ); in FuTemporaryModify() 594 if( aSel.nStartPos == aSel.nEndPos ) in FuTemporaryModify() 597 aSel.nEndPos++; in FuTemporaryModify() 599 pOutlinerView->SetSelection( aSel ); in FuTemporaryModify() [all …]
|
/aoo41x/main/svtools/source/brwbox/ |
H A D | ebbcontrols.cxx | 106 Selection aSel = rBox.GetSelection(); in MoveAllowed() local 107 return !aSel && aSel.Max() == rBox.GetText().Len(); in MoveAllowed() 112 Selection aSel = rBox.GetSelection(); in MoveAllowed() local 113 return !aSel && aSel.Min() == 0; in MoveAllowed() 446 Selection aSel = m_pEditImplementation->GetSelection(); in MoveAllowed() local 447 bResult = !aSel && aSel.Max() == m_pEditImplementation->GetText( LINEEND_LF ).Len(); in MoveAllowed() 453 bResult = !aSel && aSel.Min() == 0; in MoveAllowed() 503 Selection aSel = GetSpinWindow().GetSelection(); in MoveAllowed() local 504 bResult = !aSel && aSel.Max() == GetSpinWindow().GetText().Len(); in MoveAllowed() 509 Selection aSel = GetSpinWindow().GetSelection(); in MoveAllowed() local [all …]
|
/aoo41x/main/sc/source/filter/rtf/ |
H A D | rtfparse.cxx | 93 && (( pE->aSel.nStartPara == pE->aSel.nEndPara in Read() 94 && pE->aSel.nStartPos == pE->aSel.nEndPos) in Read() 96 || ( pE->aSel.nStartPara + 1 == pE->aSel.nEndPara in Read() 97 && pE->aSel.nStartPos == pEdit->GetTextLen( pE->aSel.nStartPara ) in Read() 98 && pE->aSel.nEndPos == 0 )) ) in Read() 110 void ScRTFParser::EntryEnd( ScEEParseEntry* pE, const ESelection& aSel ) in EntryEnd() argument 113 pE->aSel.nEndPara = aSel.nEndPara - 2; in EntryEnd() 115 pE->aSel.nEndPos = pEdit->GetTextLen( aSel.nEndPara - 1 ); in EntryEnd() 370 pActEntry->aSel.nStartPara = pInfo->aSelection.nEndPara - 1; in ProcToken()
|
/aoo41x/main/vcl/source/control/ |
H A D | field2.cxx | 420 sal_uLong nMaxSel = Max( aSel.Min(), aSel.Max() ); in ImplPatternProcessStrictModify() 425 if ( aSel.Min() == aSel.Max() ) in ImplPatternProcessStrictModify() 428 aSel.Max() = aSel.Min(); in ImplPatternProcessStrictModify() 430 else if ( aSel.Min() > aSel.Max() ) in ImplPatternProcessStrictModify() 518 aSel.Justify(); in ImplPatternProcessKeyInput() 524 aSel.Min() = aSel.Max(); in ImplPatternProcessKeyInput() 555 aSel.Justify(); in ImplPatternProcessKeyInput() 562 aSel.Min() = aSel.Max(); in ImplPatternProcessKeyInput() 579 aStr.Erase( (xub_StrLen)aSel.Min(), (xub_StrLen)aSel.Len() ); in ImplPatternProcessKeyInput() 643 aSel.Justify(); in ImplPatternProcessKeyInput() [all …]
|
H A D | edit.cxx | 1715 aSel.Max() = 0; in ImplHandleKeyEvent() 1719 aSel.Max() = 0xFFFF; in ImplHandleKeyEvent() 1723 aSel.Min() = aSel.Max(); in ImplHandleKeyEvent() 2979 aSel.Justify(); in dragGestureRecognized() 2984 if ( (nChar >= aSel.Min()) && (nChar < aSel.Max()) ) in dragGestureRecognized() 3020 long nLen = aSel.Len(); in dragDropEnd() 3021 aSel.Min() += nLen; in dragDropEnd() 3022 aSel.Max() += nLen; in dragDropEnd() 3045 aSel.Justify(); in drop() 3054 ImplSetSelection( aSel ); in drop() [all …]
|
/aoo41x/main/sd/source/ui/func/ |
H A D | fubullet.cxx | 153 ESelection aSel = pOV->GetSelection(); in InsertFormattingMark() local 154 aSel.nStartPara = aSel.nEndPara; in InsertFormattingMark() 155 aSel.nStartPos = aSel.nEndPos; in InsertFormattingMark() 156 pOV->SetSelection(aSel); in InsertFormattingMark() 291 ESelection aSel = pOV->GetSelection(); in InsertSpecialCharacter() local 292 aSel.nStartPara = aSel.nEndPara; in InsertSpecialCharacter() 293 aSel.nStartPos = aSel.nEndPos; in InsertSpecialCharacter() 294 pOV->SetSelection(aSel); in InsertSpecialCharacter() 297 pOV->GetOutliner()->QuickSetAttribs(aOldSet, aSel); in InsertSpecialCharacter()
|
/aoo41x/main/sc/source/ui/drawfunc/ |
H A D | drtxtob.cxx | 219 pOutView->SetSelection( aSel ); in Execute() 293 aSel.Adjust(); in Execute() 294 aSel.nEndPara = aSel.nStartPara; in Execute() 295 aSel.nEndPos = aSel.nStartPos + 1; in Execute() 310 if ( aSel.nStartPos == aSel.nEndPos && aSel.nStartPos > 0 ) in Execute() 314 --aSel.nStartPos; in Execute() 635 ESelection aSel = aOldSel; in lcl_RemoveFields() local 636 aSel.Adjust(); in lcl_RemoveFields() 647 if ( nPar >= aSel.nStartPara && nPar <= aSel.nEndPara ) in lcl_RemoveFields() 660 ( nPar > aSel.nStartPara || nStart >= aSel.nStartPos ) && in lcl_RemoveFields() [all …]
|
/aoo41x/main/sc/source/filter/html/ |
H A D | htmlpars.cxx | 207 pActEntry->aSel.nStartPara = pE->aSel.nEndPara; in NewActEntry() 208 pActEntry->aSel.nStartPos = pE->aSel.nEndPos; in NewActEntry() 211 pActEntry->aSel.nEndPara = pActEntry->aSel.nStartPara; in NewActEntry() 212 pActEntry->aSel.nEndPos = pActEntry->aSel.nStartPos; in NewActEntry() 223 else if ( rSel.nStartPara == pE->aSel.nStartPara - 1 && !pE->aSel.HasRange() ) in EntryEnd() 1778 …if( (aSel.nEndPara < aSel.nStartPara) || ((aSel.nEndPara == aSel.nStartPara) && (aSel.nEndPos < aS… in AdjustStart() 1780 aSel.nEndPara = aSel.nStartPara; in AdjustStart() 1781 aSel.nEndPos = aSel.nStartPos; in AdjustStart() 1798 …while( (aSel.nStartPara < aSel.nEndPara) && (rEditEngine.GetTextLen( aSel.nStartPara ) <= aSel.nSt… in Strip() 1804 while( (aSel.nStartPara < aSel.nEndPara) && (aSel.nEndPos == 0) ) in Strip() [all …]
|
/aoo41x/main/basctl/source/basicide/ |
H A D | baside2.cxx | 647 aSel.GetEnd().GetPara()++; in BasicToggleBreakPoint() 651 for ( sal_uLong nLine = aSel.GetStart().GetPara(); nLine <= aSel.GetEnd().GetPara(); nLine++ ) in BasicToggleBreakPoint() 673 …for ( sal_uLong nLine = ++aSel.GetStart().GetPara(), nEnd = ++aSel.GetEnd().GetPara(); nLine <= nE… in BasicToggleBreakPointEnabled() 813 TextSelection aSel( aWordStart ); in BasicAddWatch() local 817 GetEditView()->SetSelection( aSel ); in BasicAddWatch() 824 if ( aSel.GetStart().GetPara() == aSel.GetEnd().GetPara() ) in BasicAddWatch() 886 pView->SetSelection( aSel ); in EditMacro() 1139 pView->SetSelection( aSel ); in ExecuteCommand() 1312 TextSelection aSel; in StartSearchAndReplace() local 1315 aSel = pView->GetSelection(); in StartSearchAndReplace() [all …]
|
/aoo41x/main/sc/source/ui/view/ |
H A D | editsh.cxx | 516 aFinder.ToggleRel( aSel.nStartPos, aSel.nEndPos ); in Execute() 559 ESelection aSel = pTableView->GetSelection(); in Execute() local 560 aSel.Adjust(); in Execute() 561 aSel.nEndPara = aSel.nStartPara; in Execute() 562 aSel.nEndPos = aSel.nStartPos + 1; in Execute() 563 pTableView->SetSelection( aSel ); in Execute() 577 aSel = pTopView->GetSelection(); in Execute() 578 aSel.nEndPara = aSel.nStartPara; in Execute() 579 aSel.nEndPos = aSel.nStartPos + 1; in Execute() 580 pTopView->SetSelection( aSel ); in Execute() [all …]
|
/aoo41x/main/sc/source/core/data/ |
H A D | attrib.cxx | 806 ESelection aSel( nPar,nPos, nPar,nPos+pCommands[0].Len() ); in lcl_ConvertFields() local 808 lcl_SetSpace(aStr, aSel ); bChange = sal_True; in lcl_ConvertFields() 812 ESelection aSel( nPar,nPos, nPar,nPos+pCommands[1].Len() ); in lcl_ConvertFields() local 814 lcl_SetSpace(aStr, aSel ); bChange = sal_True; in lcl_ConvertFields() 818 ESelection aSel( nPar,nPos, nPar,nPos+pCommands[2].Len() ); in lcl_ConvertFields() local 820 lcl_SetSpace(aStr, aSel ); bChange = sal_True; in lcl_ConvertFields() 824 ESelection aSel( nPar,nPos, nPar,nPos+pCommands[3].Len() ); in lcl_ConvertFields() local 826 lcl_SetSpace(aStr, aSel ); bChange = sal_True; in lcl_ConvertFields() 830 ESelection aSel( nPar,nPos, nPar,nPos+pCommands[4].Len() ); in lcl_ConvertFields() local 832 lcl_SetSpace(aStr, aSel ); bChange = sal_True; in lcl_ConvertFields() [all …]
|
/aoo41x/main/formula/source/ui/dlg/ |
H A D | formula.cxx | 1118 aSel.Max()=aSel.Max()-1; in IMPL_LINK() 1123 aSel.Min()=aSel.Max(); in IMPL_LINK() 1384 aSel .Min()=1; in IMPL_LINK() 1385 aSel .Max()=1; in IMPL_LINK() 1392 aSel .Min()+=1; in IMPL_LINK() 1393 aSel .Max()+=1; in IMPL_LINK() 1400 m_pHelper->setSelection((xub_StrLen)aSel.Min(),(xub_StrLen)aSel.Max()); in IMPL_LINK() 1427 m_pHelper->setSelection((xub_StrLen)aSel.Min(),(xub_StrLen)aSel.Max()); in IMPL_LINK() 1444 m_pHelper->setSelection((xub_StrLen)aSel.Min(),(xub_StrLen)aSel.Max()); in IMPL_LINK() 1446 if(aSel.Min()==0) in IMPL_LINK() [all …]
|