Lines Matching refs:pAttrib
102 void TextCharAttribList::InsertAttrib( TextCharAttrib* pAttrib ) in InsertAttrib() argument
104 if ( pAttrib->IsEmpty() ) in InsertAttrib()
108 const sal_uInt16 nStart = pAttrib->GetStart(); // vielleicht besser fuer Comp.Opt. in InsertAttrib()
115 Insert( pAttrib, x ); in InsertAttrib()
121 Insert( pAttrib, nCount ); in InsertAttrib()
259 TextCharAttrib* pAttrib = maCharAttribs.GetAttrib( nAttr ); in ExpandAttribs() local
260 if ( pAttrib->GetEnd() >= nIndex ) in ExpandAttribs()
263 if ( pAttrib->GetStart() > nIndex ) in ExpandAttribs()
265 pAttrib->MoveForward( nNew ); in ExpandAttribs()
268 else if ( pAttrib->IsEmpty() ) in ExpandAttribs()
275 pAttrib->Expand( nNew ); in ExpandAttribs()
278 else if ( pAttrib->GetEnd() == nIndex ) // Start muss davor liegen in ExpandAttribs()
283 if ( !maCharAttribs.FindEmptyAttrib( pAttrib->Which(), nIndex ) ) in ExpandAttribs()
285 pAttrib->Expand( nNew ); in ExpandAttribs()
291 else if ( ( pAttrib->GetStart() < nIndex ) && ( pAttrib->GetEnd() > nIndex ) ) in ExpandAttribs()
293 pAttrib->Expand( nNew ); in ExpandAttribs()
296 else if ( pAttrib->GetStart() == nIndex ) in ExpandAttribs()
300 pAttrib->Expand( nNew ); in ExpandAttribs()
304 pAttrib->MoveForward( nNew ); in ExpandAttribs()
308 DBG_ASSERT( pAttrib->GetStart() <= pAttrib->GetEnd(), "Expand: Attribut verdreht!" ); in ExpandAttribs()
309 DBG_ASSERT( ( pAttrib->GetEnd() <= maText.Len() ), "Expand: Attrib groesser als Absatz!" ); in ExpandAttribs()
310 DBG_ASSERT( !pAttrib->IsEmpty(), "Leeres Attribut nach ExpandAttribs?" ); in ExpandAttribs()
331 TextCharAttrib* pAttrib = maCharAttribs.GetAttrib( nAttr ); in CollapsAttribs() local
333 if ( pAttrib->GetEnd() >= nIndex ) in CollapsAttribs()
336 if ( pAttrib->GetStart() >= nEndChanges ) in CollapsAttribs()
338 pAttrib->MoveBackward( nDeleted ); in CollapsAttribs()
341 else if ( ( pAttrib->GetStart() >= nIndex ) && ( pAttrib->GetEnd() <= nEndChanges ) ) in CollapsAttribs()
345 if ( ( pAttrib->GetStart() == nIndex ) && ( pAttrib->GetEnd() == nEndChanges ) ) in CollapsAttribs()
346 pAttrib->GetEnd() = nIndex; // leer in CollapsAttribs()
351 else if ( ( pAttrib->GetStart() <= nIndex ) && ( pAttrib->GetEnd() > nIndex ) ) in CollapsAttribs()
353 if ( pAttrib->GetEnd() <= nEndChanges ) // endet drinnen in CollapsAttribs()
354 pAttrib->GetEnd() = nIndex; in CollapsAttribs()
356 pAttrib->Collaps( nDeleted ); // endet dahinter in CollapsAttribs()
359 else if ( ( pAttrib->GetStart() >= nIndex ) && ( pAttrib->GetEnd() > nEndChanges ) ) in CollapsAttribs()
362 pAttrib->GetStart() = nEndChanges; in CollapsAttribs()
363 pAttrib->MoveBackward( nDeleted ); in CollapsAttribs()
367 DBG_ASSERT( pAttrib->GetStart() <= pAttrib->GetEnd(), "Collaps: Attribut verdreht!" ); in CollapsAttribs()
368 …DBG_ASSERT( ( pAttrib->GetEnd() <= maText.Len()) || bDelAttr, "Collaps: Attrib groesser als Absatz… in CollapsAttribs()
373 delete pAttrib; in CollapsAttribs()
376 else if ( pAttrib->IsEmpty() ) in CollapsAttribs()
418 TextCharAttrib* pAttrib = maCharAttribs.GetAttrib( nAttr ); in Split() local
419 if ( pAttrib->GetEnd() < nPos ) in Split()
424 else if ( pAttrib->GetEnd() == nPos ) in Split()
428 if ( bKeepEndingAttribs && !pNew->maCharAttribs.FindAttrib( pAttrib->Which(), 0 ) ) in Split()
430 TextCharAttrib* pNewAttrib = new TextCharAttrib( *pAttrib ); in Split()
436 else if ( pAttrib->IsInside( nPos ) || ( !nPos && !pAttrib->GetStart() ) ) in Split()
440 TextCharAttrib* pNewAttrib = new TextCharAttrib( *pAttrib ); in Split()
442 pNewAttrib->GetEnd() = pAttrib->GetEnd()-nPos; in Split()
445 pAttrib->GetEnd() = nPos; in Split()
449 DBG_ASSERT( pAttrib->GetStart() >= nPos, "Start < nPos!" ); in Split()
450 DBG_ASSERT( pAttrib->GetEnd() >= nPos, "End < nPos!" ); in Split()
453 pNew->maCharAttribs.InsertAttrib( pAttrib ); in Split()
454 pAttrib->GetStart() = pAttrib->GetStart() - nPos; in Split()
455 pAttrib->GetEnd() = pAttrib->GetEnd() - nPos; in Split()
475 TextCharAttrib* pAttrib = rNode.GetCharAttribs().GetAttrib( nAttr ); in Append() local
477 if ( pAttrib->GetStart() == 0 ) in Append()
487 if ( ( pTmpAttrib->Which() == pAttrib->Which() ) && in Append()
488 ( pTmpAttrib->GetAttr() == pAttrib->GetAttr() ) ) in Append()
491 pTmpAttrib->GetEnd() + pAttrib->GetLen(); in Append()
501 TextCharAttrib* pNewAttrib = new TextCharAttrib( *pAttrib ); in Append()