Lines Matching refs:pForwarder
124 void GetSelection( struct ESelection& rSel, SvxTextForwarder* pForwarder ) throw() in GetSelection() argument
126 DBG_ASSERT( pForwarder, "I need a valid SvxTextForwarder!" ); in GetSelection()
127 if( pForwarder ) in GetSelection()
129 sal_Int16 nParaCount = pForwarder->GetParagraphCount(); in GetSelection()
133 rSel = ESelection( 0,0, nParaCount, pForwarder->GetTextLen( nParaCount )); in GetSelection()
137 void CheckSelection( struct ESelection& rSel, SvxTextForwarder* pForwarder ) throw() in CheckSelection() argument
139 DBG_ASSERT( pForwarder, "I need a valid SvxTextForwarder!" ); in CheckSelection()
140 if( pForwarder ) in CheckSelection()
144 ::GetSelection( rSel, pForwarder ); in CheckSelection()
149 GetSelection( aMaxSelection, pForwarder ); in CheckSelection()
162 else if( rSel.nStartPos > pForwarder->GetTextLen( rSel.nStartPara ) ) in CheckSelection()
164 rSel.nStartPos = pForwarder->GetTextLen( rSel.nStartPara ); in CheckSelection()
178 else if( rSel.nEndPos > pForwarder->GetTextLen( rSel.nEndPara ) ) in CheckSelection()
180 rSel.nEndPos = pForwarder->GetTextLen( rSel.nEndPara ); in CheckSelection()
287 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in SvxUnoTextRangeBase() local
288 if( pForwarder ) in SvxUnoTextRangeBase()
291 CheckSelection( maSelection, pForwarder ); in SvxUnoTextRangeBase()
335 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in attachField() local
336 if( pForwarder ) in attachField()
339 pForwarder->QuickInsertField( aField, maSelection ); in attachField()
362 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in getStart() local
363 if( pForwarder ) in getStart()
366 CheckSelection( maSelection, pForwarder ); in getStart()
392 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in getEnd() local
393 if( pForwarder ) in getEnd()
395 CheckSelection( maSelection, pForwarder ); in getEnd()
418 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in getString() local
419 if( pForwarder ) in getString()
421 CheckSelection( maSelection, pForwarder ); in getString()
423 return pForwarder->GetText( maSelection ); in getString()
437 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in setString() local
438 if( pForwarder ) in setString()
440 CheckSelection( maSelection, pForwarder ); in setString()
445 pForwarder->QuickInsertText( aConverted, maSelection ); in setString()
477 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in _setPropertyValue() local
478 if( pForwarder ) in _setPropertyValue()
481 CheckSelection( maSelection, pForwarder ); in _setPropertyValue()
491 SfxItemSet aOldSet( pForwarder->GetAttribs( aSel ) ); in _setPropertyValue()
498 pForwarder->QuickSetAttribs( aNewSet, GetSelection() ); in _setPropertyValue()
518 SfxItemSet aSet( pForwarder->GetParaAttribs( (sal_uInt16)nPara ) ); in _setPropertyValue()
520 pForwarder->SetParaAttribs( (sal_uInt16)nPara, aSet ); in _setPropertyValue()
570 SvxTextForwarder* pForwarder = pEditSource? pEditSource->GetTextForwarder() : NULL; in SetPropertyValueHelper() local
571 if(pForwarder && pSelection) in SetPropertyValueHelper()
577 if(! pForwarder->SetDepth( pSelection->nStartPara, nLevel ) ) in SetPropertyValueHelper()
587 SvxTextForwarder* pForwarder = pEditSource? pEditSource->GetTextForwarder() : NULL; in SetPropertyValueHelper() local
588 if(pForwarder && pSelection) in SetPropertyValueHelper()
593 pForwarder->SetNumberingStartValue( pSelection->nStartPara, nStartValue ); in SetPropertyValueHelper()
601 SvxTextForwarder* pForwarder = pEditSource? pEditSource->GetTextForwarder() : NULL; in SetPropertyValueHelper() local
602 if(pForwarder && pSelection) in SetPropertyValueHelper()
607 … pForwarder->SetParaIsNumberingRestart( pSelection->nStartPara, bParaIsNumberingRestart ); in SetPropertyValueHelper()
645 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in _getPropertyValue() local
646 if( pForwarder ) in _getPropertyValue()
653 pAttribs = pForwarder->GetParaAttribs( (sal_uInt16)nPara ).Clone(); in _getPropertyValue()
655 pAttribs = pForwarder->GetAttribs( GetSelection() ).Clone(); in _getPropertyValue()
685 SvxTextForwarder* pForwarder = mpEditSource->GetTextForwarder(); in getPropertyValue() local
686 …OUString aPresentation( pForwarder->CalcFieldValue( SvxFieldItem(*pData, EE_FEATURE_FIELD), maSele… in getPropertyValue()
744 SvxTextForwarder* pForwarder = pEditSource? pEditSource->GetTextForwarder() : NULL; in GetPropertyValueHelper() local
745 if(pForwarder && pSelection) in GetPropertyValueHelper()
747 sal_Int16 nLevel = pForwarder->GetDepth( pSelection->nStartPara ); in GetPropertyValueHelper()
755 SvxTextForwarder* pForwarder = pEditSource? pEditSource->GetTextForwarder() : NULL; in GetPropertyValueHelper() local
756 if(pForwarder && pSelection) in GetPropertyValueHelper()
757 aAny <<= pForwarder->GetNumberingStartValue( pSelection->nStartPara ); in GetPropertyValueHelper()
762 SvxTextForwarder* pForwarder = pEditSource? pEditSource->GetTextForwarder() : NULL; in GetPropertyValueHelper() local
763 if(pForwarder && pSelection) in GetPropertyValueHelper()
764 aAny <<= pForwarder->IsParaIsNumberingRestart( pSelection->nStartPara ); in GetPropertyValueHelper()
804 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in _setPropertyValues() local
805 if( pForwarder ) in _setPropertyValues()
807 CheckSelection( maSelection, pForwarder ); in _setPropertyValues()
842 const SfxItemSet aSet( pForwarder->GetAttribs( aSel ) ); in _setPropertyValues()
862 const SfxItemSet aSet( pForwarder->GetParaAttribs( (sal_uInt16)nTempPara ) ); in _setPropertyValues()
890 SfxItemSet aSet( pForwarder->GetParaAttribs( (sal_uInt16)nTempPara ) ); in _setPropertyValues()
892 pForwarder->SetParaAttribs( (sal_uInt16)nTempPara, aSet ); in _setPropertyValues()
906 pForwarder->QuickSetAttribs( *pNewAttrSet, GetSelection() ); in _setPropertyValues()
933 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in _getPropertyValues() local
934 if( pForwarder ) in _getPropertyValues()
938 pAttribs = pForwarder->GetParaAttribs( (sal_uInt16)nPara ).Clone(); in _getPropertyValues()
940 pAttribs = pForwarder->GetAttribs( GetSelection() ).Clone(); in _getPropertyValues()
991 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in _getPropertyState() local
992 if( pForwarder ) in _getPropertyState()
1006 eTempItemState = pForwarder->GetItemState( (sal_uInt16)nPara, *pWhichId ); in _getPropertyState()
1008 eTempItemState = pForwarder->GetItemState( GetSelection(), *pWhichId ); in _getPropertyState()
1055 eItemState = pForwarder->GetItemState( (sal_uInt16)nPara, nWID ); in _getPropertyState()
1057 eItemState = pForwarder->GetItemState( GetSelection(), nWID ); in _getPropertyState()
1100 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in _getPropertyStates() local
1101 if( pForwarder ) in _getPropertyStates()
1106 pSet = new SfxItemSet( pForwarder->GetParaAttribs( (sal_uInt16)nPara ) ); in _getPropertyStates()
1111 CheckSelection( aSel, pForwarder ); in _getPropertyStates()
1112 pSet = new SfxItemSet( pForwarder->GetAttribs( aSel, EditEngineAttribs_OnlyHard ) ); in _getPropertyStates()
1233 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in _setPropertyToDefault() local
1235 if( pForwarder ) in _setPropertyToDefault()
1241 _setPropertyToDefault( pForwarder, pMap, nPara ); in _setPropertyToDefault()
1249 void SvxUnoTextRangeBase::_setPropertyToDefault(SvxTextForwarder* pForwarder, const SfxItemProperty… in _setPropertyToDefault() argument
1254 SfxItemSet aSet( *pForwarder->GetPool(), sal_True ); in _setPropertyToDefault()
1263 pForwarder->SetDepth( maSelection.nStartPara, -1 ); in _setPropertyToDefault()
1268 pForwarder->SetNumberingStartValue( maSelection.nStartPara, -1 ); in _setPropertyToDefault()
1272 pForwarder->SetParaIsNumberingRestart( maSelection.nStartPara, sal_False ); in _setPropertyToDefault()
1280 pForwarder->SetParaAttribs( (sal_uInt16)nPara, aSet ); in _setPropertyToDefault()
1282 pForwarder->QuickSetAttribs( aSet, GetSelection() ); in _setPropertyToDefault()
1296 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in getPropertyDefault() local
1297 if( pForwarder ) in getPropertyDefault()
1302 SfxItemPool* pPool = pForwarder->GetPool(); in getPropertyDefault()
1342 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in setAllPropertiesToDefault() local
1344 if( pForwarder ) in setAllPropertiesToDefault()
1350 _setPropertyToDefault( pForwarder, &(*aIt), -1 ); in setAllPropertiesToDefault()
1413 SvxTextForwarder* pForwarder = NULL; in GoLeft() local
1420 if ( !pForwarder ) in GoLeft()
1421 pForwarder = mpEditSource->GetTextForwarder(); // erst hier, wenn's noetig ist... in GoLeft()
1425 nNewPos = pForwarder->GetTextLen( nNewPar ); in GoLeft()
1444 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in GoRight() local
1445 if( pForwarder ) in GoRight()
1447 CheckSelection( maSelection, pForwarder ); in GoRight()
1454 sal_uInt16 nParCount = pForwarder->GetParagraphCount(); in GoRight()
1455 sal_uInt16 nThisLen = pForwarder->GetTextLen( nNewPar ); in GoRight()
1464 nThisLen = pForwarder->GetTextLen( nNewPar ); in GoRight()
1495 SvxTextForwarder* pForwarder = mpEditSource ? mpEditSource->GetTextForwarder() : NULL; in GotoEnd() local
1496 if( pForwarder ) in GotoEnd()
1499 sal_uInt16 nPar = pForwarder->GetParagraphCount(); in GotoEnd()
1504 maSelection.nEndPos = pForwarder->GetTextLen( nPar ); in GotoEnd()
1751 SvxTextForwarder* pForwarder = GetEditSource() ? GetEditSource()->GetTextForwarder() : NULL; in InsertField() local
1752 if( pForwarder ) in InsertField()
1754 pForwarder->QuickInsertField( rField, GetSelection() ); in InsertField()
1908 SvxTextForwarder* pForwarder = GetEditSource() ? GetEditSource()->GetTextForwarder() : NULL; in insertControlCharacter() local
1910 if( pForwarder ) in insertControlCharacter()
1913 ::GetSelection( aSelection, pForwarder ); in insertControlCharacter()
1935 pForwarder->QuickInsertText( aEmpty, aRange ); in insertControlCharacter()
1946 pForwarder->QuickInsertLineBreak( aRange ); in insertControlCharacter()
1965 aRange.nStartPos = pForwarder->GetTextLen( aRange.nStartPara ); in insertControlCharacter()
1996 SvxTextForwarder* pForwarder = GetEditSource() ? GetEditSource()->GetTextForwarder() : NULL; in insertTextContent() local
1997 if( pForwarder ) in insertTextContent()
2018 pForwarder->QuickInsertField( aField, aSelection ); in insertTextContent()
2102 SvxTextForwarder* pForwarder = GetEditSource()->GetTextForwarder(); in hasElements() local
2103 if(pForwarder) in hasElements()
2104 return pForwarder->GetParagraphCount() != 0; in hasElements()
2120 SvxTextForwarder *pForwarder /*needed for WID_NUMLEVEL*/, in SvxPropertyValuesToItemSet() argument
2149 if (pForwarder) in SvxPropertyValuesToItemSet()
2155 if (!pForwarder->SetDepth( nPara, nLevel )) in SvxPropertyValuesToItemSet()
2161 if( pForwarder ) in SvxPropertyValuesToItemSet()
2167 pForwarder->SetNumberingStartValue( nPara, nStartValue ); in SvxPropertyValuesToItemSet()
2172 if( pForwarder ) in SvxPropertyValuesToItemSet()
2178 pForwarder->SetParaIsNumberingRestart( nPara, bParaIsNumberingRestart ); in SvxPropertyValuesToItemSet()