Home
last modified time | relevance | path

Searched refs:rSel (Results 1 – 25 of 66) sorted by relevance

123

/trunk/main/editeng/source/uno/
H A Dunoedprx.cxx479 aEndIndex.SetIndex( rSel.nEndPara, rSel.nEndPos, *this ); in GetText()
482 if( rSel.nStartPara > rSel.nEndPara || in GetText()
483 (rSel.nStartPara == rSel.nEndPara && rSel.nStartPos > rSel.nEndPos) ) in GetText()
549 aEndIndex.SetIndex( rSel.nEndPara, rSel.nEndPos, *this ); in GetAttribs()
589 aEndIndex.SetIndex( rSel.nEndPara, rSel.nEndPos, *this ); in GetItemState()
610 aEndIndex.SetIndex( rSel.nEndPara, rSel.nEndPos, *this ); in QuickInsertText()
624 aEndIndex.SetIndex( rSel.nEndPara, rSel.nEndPos, *this ); in QuickInsertField()
638 aEndIndex.SetIndex( rSel.nEndPara, rSel.nEndPos, *this ); in QuickSetAttribs()
652 aEndIndex.SetIndex( rSel.nEndPara, rSel.nEndPos, *this ); in QuickInsertLineBreak()
1165 if( rSel.nStartPara > rSel.nEndPara || in IsEditable()
[all …]
H A Dunofored.cxx74 if( rSel.nStartPara == rSel.nEndPara ) in GetAttribs()
92 return rEditEngine.GetAttribs( rSel.nStartPara, rSel.nStartPos, rSel.nEndPos, nFlags ); in GetAttribs()
140 rEditEngine.QuickInsertText( rText, rSel ); in QuickInsertText()
145 rEditEngine.QuickInsertLineBreak( rSel ); in QuickInsertLineBreak()
150 rEditEngine.QuickInsertField( rFld, rSel ); in QuickInsertField()
155 rEditEngine.QuickSetAttribs( rSet, rSel ); in QuickSetAttribs()
184 for( sal_uInt32 nPara = rSel.nStartPara; nPara <= rSel.nEndPara; nPara++ ) in GetSvxEditEngineItemState()
190 if( rSel.nStartPara == nPara ) in GetSvxEditEngineItemState()
191 nPos = rSel.nStartPos; in GetSvxEditEngineItemState()
193 sal_uInt16 nEndPos = rSel.nEndPos; in GetSvxEditEngineItemState()
[all …]
H A Dunoforou.cxx72 String SvxOutlinerForwarder::GetText( const ESelection& rSel ) const in GetText()
77 return pEditEngine->GetText( rSel, LINEEND_LF ); in GetText()
82 if( rSel.nStartPara == rSel.nEndPara ) in ImplOutlinerForwarderGetAttribs()
100 return rEditEngine.GetAttribs( rSel.nStartPara, rSel.nStartPos, rSel.nEndPos, nFlags ); in ImplOutlinerForwarderGetAttribs()
104 return rEditEngine.GetAttribs( rSel, bOnlyHardAttrib ); in ImplOutlinerForwarderGetAttribs()
135 maAttribCacheSelection = rSel; in GetAttribs()
209 rOutliner.QuickDelete( rSel ); in QuickInsertText()
213 rOutliner.QuickInsertText( rText, rSel ); in QuickInsertText()
220 rOutliner.QuickInsertLineBreak( rSel ); in QuickInsertLineBreak()
226 rOutliner.QuickInsertField( rFld, rSel ); in QuickInsertField()
[all …]
H A Dunotext.cxx142 if( rSel.nStartPara == EE_PARA_ALL ) in CheckSelection()
144 ::GetSelection( rSel, pForwarder ); in CheckSelection()
160 rSel.nStartPos = aMaxSelection.nEndPos; in CheckSelection()
162 else if( rSel.nStartPos > pForwarder->GetTextLen( rSel.nStartPara ) ) in CheckSelection()
164 rSel.nStartPos = pForwarder->GetTextLen( rSel.nStartPara ); in CheckSelection()
171 rSel.nEndPos = aMaxSelection.nStartPos; in CheckSelection()
175 rSel.nEndPara = aMaxSelection.nEndPara; in CheckSelection()
176 rSel.nEndPos = aMaxSelection.nEndPos; in CheckSelection()
178 else if( rSel.nEndPos > pForwarder->GetTextLen( rSel.nEndPara ) ) in CheckSelection()
180 rSel.nEndPos = pForwarder->GetTextLen( rSel.nEndPara ); in CheckSelection()
[all …]
/trunk/main/sc/source/filter/excel/
H A Dxihelper.cxx541 ESelection& rSel = GetCurrSel(); in SetAttribs() local
542 if( (rSel.nStartPara != rSel.nEndPara) || (rSel.nStartPos != rSel.nEndPos) ) in SetAttribs()
548 rSel.nStartPara = rSel.nEndPara; in SetAttribs()
549 rSel.nStartPos = rSel.nEndPos; in SetAttribs()
569 …mrEE.QuickInsertText( maCurrText, ESelection( rSel.nEndPara, rSel.nEndPos, rSel.nEndPara, rSel.nEn… in InsertText()
570 rSel.nEndPos = rSel.nEndPos + maCurrText.Len(); in InsertText()
579 …mrEE.QuickInsertField( rFieldItem, ESelection( rSel.nEndPara, rSel.nEndPos, rSel.nEndPara, rSel.nE… in InsertField()
580 ++rSel.nEndPos; in InsertField()
587 …mrEE.QuickInsertText( String( '\n' ), ESelection( rSel.nEndPara, rSel.nEndPos, rSel.nEndPara, rSel in InsertLineBreak()
588 ++rSel.nEndPara; in InsertLineBreak()
[all …]
/trunk/main/svtools/source/edit/
H A Dxtextedt.cxx147 sal_Bool ExtTextEngine::Search( TextSelection& rSel, const util::SearchOptions& rSearchOptions, sal… in Search() argument
149 TextSelection aSel( rSel ); in Search()
204 rSel.GetStart().GetPara() = nNode; in Search()
205 rSel.GetStart().GetIndex() = nStartPos; in Search()
206 rSel.GetEnd().GetPara() = nNode; in Search()
207 rSel.GetEnd().GetIndex() = nEndPos; in Search()
213 if ( (rSel.GetEnd().GetPara()+1) < GetParagraphCount() ) in Search()
215 rSel.GetEnd().GetPara()++; in Search()
216 rSel.GetEnd().GetIndex() = 0; in Search()
220 rSel.GetEnd().GetIndex() = nStartPos; in Search()
H A Dtextundo.cxx124 void TextUndo::SetSelection( const TextSelection& rSel ) in SetSelection() argument
127 GetView()->ImpSetSelection( rSel ); in SetSelection()
295 TextUndoSetAttribs::TextUndoSetAttribs( TextEngine* pTextEngine, const TextSelection& rSel ) in TextUndoSetAttribs() argument
296 : TextUndo( pTextEngine ), maSelection( rSel ) in TextUndoSetAttribs()
/trunk/main/starmath/source/
H A Daccessibility.cxx1038 if( rSel.nStartPara == rSel.nEndPara ) in GetAttribs()
1056 return pEditEngine->GetAttribs( rSel.nStartPara, rSel.nStartPos, rSel.nEndPos, nFlags ); in GetAttribs()
1116 pEditEngine->QuickInsertText( rText, rSel ); in QuickInsertText()
1123 pEditEngine->QuickInsertLineBreak( rSel ); in QuickInsertLineBreak()
1130 pEditEngine->QuickInsertField( rFld, rSel ); in QuickInsertField()
1137 pEditEngine->QuickSetAttribs( rSet, rSel ); in QuickSetAttribs()
1170 for( sal_uInt32 nPara = rSel.nStartPara; nPara <= rSel.nEndPara; nPara++ ) in GetSvxEditEngineItemState()
1176 if( rSel.nStartPara == nPara ) in GetSvxEditEngineItemState()
1177 nPos = rSel.nStartPos; in GetSvxEditEngineItemState()
1179 sal_uInt16 nEndPos = rSel.nEndPos; in GetSvxEditEngineItemState()
[all …]
H A Daccessibility.hxx217 virtual String GetText( const ESelection& rSel ) const;
218 …virtual SfxItemSet GetAttribs( const ESelection& rSel, sal_Bool bOnlyHardAttrib = EditEngineAttrib…
224 virtual sal_uInt16 GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const;
227 virtual void QuickInsertText( const String& rText, const ESelection& rSel );
228 virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel );
229 virtual void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel );
230 virtual void QuickInsertLineBreak( const ESelection& rSel );
/trunk/main/editeng/source/editeng/
H A Dediteng.cxx1671 ConvertSelection( rSel.nStartPara, rSel.nStartPos, rSel.nEndPara, rSel.nEndPos ) ); in GetAttribs()
1951 void EditEngine::QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel ) in QuickSetAttribs() argument
1956 ConvertSelection( rSel.nStartPara, rSel.nStartPos, rSel.nEndPara, rSel.nEndPos ) ); in QuickSetAttribs()
1961 void EditEngine::QuickMarkInvalid( const ESelection& rSel ) in QuickMarkInvalid() argument
1966 for ( sal_uInt32 nPara = rSel.nStartPara; nPara <= rSel.nEndPara; nPara++ ) in QuickMarkInvalid()
1979 ConvertSelection( rSel.nStartPara, rSel.nStartPos, rSel.nEndPara, rSel.nEndPos ) ); in QuickInsertText()
1984 void EditEngine::QuickDelete( const ESelection& rSel ) in QuickDelete() argument
1989 ConvertSelection( rSel.nStartPara, rSel.nStartPos, rSel.nEndPara, rSel.nEndPos ) ); in QuickDelete()
2002 void EditEngine::QuickInsertLineBreak( const ESelection& rSel ) in QuickInsertLineBreak() argument
2007 ConvertSelection( rSel.nStartPara, rSel.nStartPos, rSel.nEndPara, rSel.nEndPos ) ); in QuickInsertLineBreak()
[all …]
H A Dimpedit.hxx897 EditSelection MatchGroup( const EditSelection& rSel );
966 const EditSelection rSel,
971 const EditSelection rSel,
1051 ContentNode* pStartNode = rSel.Min().GetNode(); in CreateESel()
1052 ContentNode* pEndNode = rSel.Max().GetNode(); in CreateESel()
1055 aESel.nStartPos = rSel.Min().GetIndex(); in CreateESel()
1057 aESel.nEndPos = rSel.Max().GetIndex(); in CreateESel()
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()
[all …]
H A Dimpedit4.cxx1468 EditSelection aSentenceSel( SelectSentence( rSel ) ); in CreateSpellInfo()
2090 const EditSelection rSel, in AddPortion() argument
2097 if(rSel.HasRange()) in AddPortion()
2100 aPortion.sText = GetSelected( rSel ); in AddPortion()
2101 aPortion.eLanguage = GetLanguage( rSel.Min() ); in AddPortion()
2119 const EditSelection rSel, in AddPortionIterated() argument
2125 if(rSel.Min() != rSel.Max()) in AddPortionIterated()
2129 AddPortion(rSel, xAlt, rToFill, false); in AddPortionIterated()
2135 bool bTest = rSel.Min().GetIndex() <= rSel.Max().GetIndex(); in AddPortionIterated()
2136 EditPaM aStart(bTest ? rSel.Min() : rSel.Max()); in AddPortionIterated()
[all …]
/trunk/main/editeng/inc/editeng/
H A Dunoedsrc.hxx154 virtual String GetText( const ESelection& rSel ) const = 0;
155 virtual SfxItemSet GetAttribs( const ESelection& rSel, sal_Bool bOnlyHardAttrib = 0 ) const = 0;
161 virtual sal_uInt16 GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const = 0;
164 virtual void QuickInsertText( const String& rText, const ESelection& rSel ) = 0;
165 virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel ) = 0;
166 virtual void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel ) = 0;
167 virtual void QuickInsertLineBreak( const ESelection& rSel ) = 0;
410 virtual sal_Bool InsertText( const String& rText, const ESelection& rSel ) = 0;
H A Dunofored.hxx44 virtual String GetText( const ESelection& rSel ) const;
45 …virtual SfxItemSet GetAttribs( const ESelection& rSel, sal_Bool bOnlyHardAttrib = EditEngineAttrib…
51 virtual sal_uInt16 GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const;
54 virtual void QuickInsertText( const String& rText, const ESelection& rSel );
55 virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel );
56 virtual void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel );
57 virtual void QuickInsertLineBreak( const ESelection& rSel );
H A Dunoforou.hxx62 virtual String GetText( const ESelection& rSel ) const;
63 virtual SfxItemSet GetAttribs( const ESelection& rSel, sal_Bool bOnlyHardAttrib = 0 ) const;
69 virtual sal_uInt16 GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const;
72 virtual void QuickInsertText( const String& rText, const ESelection& rSel );
73 virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel );
74 virtual void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel );
75 virtual void QuickInsertLineBreak( const ESelection& rSel );
H A Dunoedprx.hxx42 virtual String GetText( const ESelection& rSel ) const;
43 virtual SfxItemSet GetAttribs( const ESelection& rSel, sal_Bool bOnlyHardAttrib = 0 ) const;
52 virtual sal_uInt16 GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const;
55 virtual void QuickInsertText( const String& rText, const ESelection& rSel );
56 virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel );
57 virtual void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel );
58 virtual void QuickInsertLineBreak( const ESelection& rSel );
H A Dediteng.hxx260 …SfxItemSet GetAttribs( const ESelection& rSel, sal_Bool bOnlyHardAttrib = EditEngineAttribs_All …
331 void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel );
333 void QuickMarkInvalid( const ESelection& rSel );
335 void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel );
336 void QuickInsertLineBreak( const ESelection& rSel );
337 void QuickInsertText( const String& rText, const ESelection& rSel );
338 void QuickDelete( const ESelection& rSel );
H A Dunotext.hxx167 EDITENG_DLLPUBLIC void GetSelection( struct ESelection& rSel, SvxTextForwarder* pForwarder ) throw(…
168 EDITENG_DLLPUBLIC void CheckSelection( struct ESelection& rSel, SvxTextForwarder* pForwarder ) thro…
188 virtual String GetText( const ESelection& rSel ) const;
189 virtual SfxItemSet GetAttribs( const ESelection& rSel, sal_Bool bOnlyHardAttrib = 0 ) const;
195 sal_uInt16 GetItemState( const ESelection& rSel, sal_uInt16 nWhich ) const;
200 virtual void QuickInsertText( const String& rText, const ESelection& rSel );
201 virtual void QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel );
202 virtual void QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel );
203 virtual void QuickInsertLineBreak( const ESelection& rSel );
417 …rence< ::com::sun::star::text::XTextCursor > createTextCursorBySelection( const ESelection& rSel );
/trunk/main/svtools/inc/svtools/
H A Dtextdata.hxx100 inline sal_Bool operator == ( const TextSelection& rSel ) const;
101 inline sal_Bool operator != ( const TextSelection& rSel ) const;
104 inline sal_Bool TextSelection::operator == ( const TextSelection& rSel ) const in operator ==()
106 return ( ( maStartPaM == rSel.maStartPaM ) && ( maEndPaM == rSel.maEndPaM ) ); in operator ==()
109 inline sal_Bool TextSelection::operator != ( const TextSelection& rSel ) const in operator !=()
111 return !( *this == rSel ); in operator !=()
H A Dtexteng.hxx151 TextPaM ImpDeleteText( const TextSelection& rSel );
152 …TextPaM ImpInsertText( const TextSelection& rSel, sal_Unicode c, sal_Bool bOverwrite = sal_Fals…
153 TextPaM ImpInsertText( const TextSelection& rSel, const String& rText );
165 …SAL_DLLPRIVATE TextPaM ImpInsertText( sal_Unicode c, const TextSelection& rSel, sal_Bool bOverwri…
226 void ValidateSelection( TextSelection& rSel ) const;
235 String GetText( const TextSelection& rSel, LineEnd aSeparator = LINEEND_LF ) const;
237 void ReplaceText(const TextSelection& rSel, const String& rText);
240 sal_uLong GetTextLen( const TextSelection& rSel, LineEnd aSeparator = LINEEND_LF ) const;
/trunk/main/editeng/source/outliner/
H A Doutlin2.cxx617 void Outliner::QuickSetAttribs( const SfxItemSet& rSet, const ESelection& rSel ) in QuickSetAttribs() argument
620 pEditEngine->QuickSetAttribs( rSet, rSel ); in QuickSetAttribs()
623 void Outliner::QuickInsertText( const XubString& rText, const ESelection& rSel ) in QuickInsertText() argument
626 pEditEngine->QuickInsertText( rText, rSel ); in QuickInsertText()
629 void Outliner::QuickDelete( const ESelection& rSel ) in QuickDelete() argument
632 pEditEngine->QuickDelete( rSel ); in QuickDelete()
635 void Outliner::QuickInsertField( const SvxFieldItem& rFld, const ESelection& rSel ) in QuickInsertField() argument
639 pEditEngine->QuickInsertField( rFld, rSel ); in QuickInsertField()
642 void Outliner::QuickInsertLineBreak( const ESelection& rSel ) in QuickInsertLineBreak() argument
646 pEditEngine->QuickInsertLineBreak( rSel ); in QuickInsertLineBreak()
/trunk/main/sc/source/filter/html/
H A Dhtmlpars.cxx221 pE->aSel.nEndPos = rSel.nEndPos; in EntryEnd()
724 ESelection& rSel = pActEntry->aSel; in CloseEntry() local
725 while ( rSel.nStartPara < rSel.nEndPara in CloseEntry()
728 rSel.nStartPara++; in CloseEntry()
730 while ( rSel.nEndPos == 0 && rSel.nEndPara > rSel.nStartPara ) in CloseEntry()
732 rSel.nEndPara--; in CloseEntry()
733 rSel.nEndPos = pEdit->GetTextLen( rSel.nEndPara ); in CloseEntry()
735 if ( rSel.nStartPara > rSel.nEndPara ) in CloseEntry()
738 rSel.nEndPara = rSel.nStartPara; in CloseEntry()
740 if ( rSel.HasRange() ) in CloseEntry()
[all …]
/trunk/main/editeng/source/xml/
H A Dxmltxtexp.cxx360 const ESelection& rSel,
383 const ESelection& rSel, in SvxXMLTextExportComponent() argument
388 maSelection( rSel ) in SvxXMLTextExportComponent()
406 pUnoText->SetSelection( rSel ); in SvxXMLTextExportComponent()
416 void SvxWriteXML( EditEngine& rEditEngine, SvStream& rStream, const ESelection& rSel ) in SvxWriteXML() argument
463 SvxXMLTextExportComponent aExporter( xServiceFactory, &rEditEngine, rSel, aName, xHandler ); in SvxWriteXML()
/trunk/main/sc/source/ui/app/
H A Dinputhdl.cxx2022 void lcl_SetTopSelection( EditView* pEditView, ESelection& rSel ) in lcl_SetTopSelection() argument
2024 DBG_ASSERT( rSel.nStartPara==0 && rSel.nEndPara==0, "SetTopSelection: Para != 0" ); in lcl_SetTopSelection()
2030 xub_StrLen nParLen = pEngine->GetTextLen(rSel.nStartPara); in lcl_SetTopSelection()
2031 while (rSel.nStartPos > nParLen && rSel.nStartPara+1 < nCount) in lcl_SetTopSelection()
2034 nParLen = pEngine->GetTextLen(++rSel.nStartPara); in lcl_SetTopSelection()
2037 nParLen = pEngine->GetTextLen(rSel.nEndPara); in lcl_SetTopSelection()
2038 while (rSel.nEndPos > nParLen && rSel.nEndPara+1 < nCount) in lcl_SetTopSelection()
2041 nParLen = pEngine->GetTextLen(++rSel.nEndPara); in lcl_SetTopSelection()
2047 if ( rSel.nStartPara != aSel.nStartPara || rSel.nEndPara != aSel.nEndPara in lcl_SetTopSelection()
2048 || rSel.nStartPos != aSel.nStartPos || rSel.nEndPos != aSel.nEndPos ) in lcl_SetTopSelection()
[all …]
/trunk/main/sc/source/ui/unoobj/
H A Dfielduno.cxx440 const ESelection& rSel) : in ScCellFieldObj() argument
445 aSelection( rSel ) in ScCellFieldObj()
521 const ESelection& rSel ) in InitDoc() argument
526 aSelection = rSel; in InitDoc()
1125 sal_uInt16 nT, const ESelection& rSel) : in ScHeaderFieldObj() argument
1131 aSelection( rSel ), in ScHeaderFieldObj()
1208 const ESelection& rSel ) in InitDoc() argument
1214 aSelection = rSel; in InitDoc()

Completed in 174 milliseconds

123