Lines Matching refs:pAttrib
741 EditCharAttrib* pAttrib = GetAttrib( aCharAttribList.GetAttribs(), nAttr ); in ExpandAttribs() local
742 while ( pAttrib ) in ExpandAttribs()
744 if ( pAttrib->GetEnd() >= nIndex ) in ExpandAttribs()
747 if ( pAttrib->GetStart() > nIndex ) in ExpandAttribs()
749 pAttrib->MoveForward( nNew ); in ExpandAttribs()
752 else if ( pAttrib->IsEmpty() ) in ExpandAttribs()
759 pAttrib->Expand( nNew ); in ExpandAttribs()
760 if ( pAttrib->GetStart() == 0 ) in ExpandAttribs()
764 else if ( pAttrib->GetEnd() == nIndex ) // Start muss davor liegen in ExpandAttribs()
770 if ( !pAttrib->IsFeature() && !aCharAttribList.FindEmptyAttrib( pAttrib->Which(), nIndex ) ) in ExpandAttribs()
772 if ( !pAttrib->IsEdge() ) in ExpandAttribs()
773 pAttrib->Expand( nNew ); in ExpandAttribs()
779 else if ( ( pAttrib->GetStart() < nIndex ) && ( pAttrib->GetEnd() > nIndex ) ) in ExpandAttribs()
781 DBG_ASSERT( !pAttrib->IsFeature(), "Grosses Feature?!" ); in ExpandAttribs()
782 pAttrib->Expand( nNew ); in ExpandAttribs()
785 else if ( pAttrib->GetStart() == nIndex ) in ExpandAttribs()
787 if ( pAttrib->IsFeature() ) in ExpandAttribs()
789 pAttrib->MoveForward( nNew ); in ExpandAttribs()
801 sal_uInt16 nW = pAttrib->GetItem()->Which(); in ExpandAttribs()
816 pAttrib->Expand( nNew ); in ExpandAttribs()
821 pAttrib->MoveForward( nNew ); in ExpandAttribs()
827 if ( pAttrib->IsEdge() ) in ExpandAttribs()
828 pAttrib->SetEdge( sal_False ); in ExpandAttribs()
830 DBG_ASSERT( !pAttrib->IsFeature() || ( pAttrib->GetLen() == 1 ), "Expand: FeaturesLen != 1" ); in ExpandAttribs()
832 DBG_ASSERT( pAttrib->GetStart() <= pAttrib->GetEnd(), "Expand: Attribut verdreht!" ); in ExpandAttribs()
833 DBG_ASSERT( ( pAttrib->GetEnd() <= Len() ), "Expand: Attrib groesser als Absatz!" ); in ExpandAttribs()
834 if ( pAttrib->IsEmpty() ) in ExpandAttribs()
839 rItemPool.Remove( *pAttrib->GetItem() ); in ExpandAttribs()
840 delete pAttrib; in ExpandAttribs()
844 pAttrib = GetAttrib( aCharAttribList.GetAttribs(), nAttr ); in ExpandAttribs()
875 EditCharAttrib* pAttrib = GetAttrib( aCharAttribList.GetAttribs(), nAttr ); in CollapsAttribs() local
876 while ( pAttrib ) in CollapsAttribs()
879 if ( pAttrib->GetEnd() >= nIndex ) in CollapsAttribs()
882 if ( pAttrib->GetStart() >= nEndChanges ) in CollapsAttribs()
884 pAttrib->MoveBackward( nDeleted ); in CollapsAttribs()
887 else if ( ( pAttrib->GetStart() >= nIndex ) && ( pAttrib->GetEnd() <= nEndChanges ) ) in CollapsAttribs()
891 …if ( !pAttrib->IsFeature() && ( pAttrib->GetStart() == nIndex ) && ( pAttrib->GetEnd() == nEndChan… in CollapsAttribs()
892 pAttrib->GetEnd() = nIndex; // leer in CollapsAttribs()
897 else if ( ( pAttrib->GetStart() <= nIndex ) && ( pAttrib->GetEnd() > nIndex ) ) in CollapsAttribs()
899 DBG_ASSERT( !pAttrib->IsFeature(), "Collapsing Feature!" ); in CollapsAttribs()
900 if ( pAttrib->GetEnd() <= nEndChanges ) // endet drinnen in CollapsAttribs()
901 pAttrib->GetEnd() = nIndex; in CollapsAttribs()
903 pAttrib->Collaps( nDeleted ); // endet dahinter in CollapsAttribs()
906 else if ( ( pAttrib->GetStart() >= nIndex ) && ( pAttrib->GetEnd() > nEndChanges ) ) in CollapsAttribs()
909 if ( pAttrib->IsFeature() ) in CollapsAttribs()
911 pAttrib->MoveBackward( nDeleted ); in CollapsAttribs()
916 pAttrib->GetStart() = nEndChanges; in CollapsAttribs()
917 pAttrib->MoveBackward( nDeleted ); in CollapsAttribs()
921 DBG_ASSERT( !pAttrib->IsFeature() || ( pAttrib->GetLen() == 1 ), "Expand: FeaturesLen != 1" ); in CollapsAttribs()
923 DBG_ASSERT( pAttrib->GetStart() <= pAttrib->GetEnd(), "Collaps: Attribut verdreht!" ); in CollapsAttribs()
924 DBG_ASSERT( ( pAttrib->GetEnd() <= Len()) || bDelAttr, "Collaps: Attrib groesser als Absatz!" ); in CollapsAttribs()
929 rItemPool.Remove( *pAttrib->GetItem() ); in CollapsAttribs()
930 delete pAttrib; in CollapsAttribs()
933 else if ( pAttrib->IsEmpty() ) in CollapsAttribs()
937 pAttrib = GetAttrib( aCharAttribList.GetAttribs(), nAttr ); in CollapsAttribs()
960 EditCharAttrib* pAttrib = GetAttrib( pPrevNode->GetCharAttribs().GetAttribs(), nAttr ); in CopyAndCutAttribs() local
961 while ( pAttrib ) in CopyAndCutAttribs()
963 if ( pAttrib->GetEnd() < nCut ) in CopyAndCutAttribs()
968 else if ( pAttrib->GetEnd() == nCut ) in CopyAndCutAttribs()
971 …if ( bKeepEndingAttribs && !pAttrib->IsFeature() && !aCharAttribList.FindAttrib( pAttrib->GetItem(… in CopyAndCutAttribs()
973 EditCharAttrib* pNewAttrib = MakeCharAttrib( rPool, *(pAttrib->GetItem()), 0, 0 ); in CopyAndCutAttribs()
978 …else if ( pAttrib->IsInside( nCut ) || ( !nCut && !pAttrib->GetStart() && !pAttrib->IsFeature() ) ) in CopyAndCutAttribs()
982 …EditCharAttrib* pNewAttrib = MakeCharAttrib( rPool, *(pAttrib->GetItem()), 0, pAttrib->GetEnd()-nC… in CopyAndCutAttribs()
986 pAttrib->GetEnd() = nCut; in CopyAndCutAttribs()
993 aCharAttribList.InsertAttrib( pAttrib ); in CopyAndCutAttribs()
994 DBG_ASSERT( pAttrib->GetStart() >= nCut, "Start < nCut!" ); in CopyAndCutAttribs()
995 DBG_ASSERT( pAttrib->GetEnd() >= nCut, "End < nCut!" ); in CopyAndCutAttribs()
996 pAttrib->GetStart() = pAttrib->GetStart() - nCut; in CopyAndCutAttribs()
997 pAttrib->GetEnd() = pAttrib->GetEnd() - nCut; in CopyAndCutAttribs()
1001 pAttrib = GetAttrib( pPrevNode->GetCharAttribs().GetAttribs(), nAttr ); in CopyAndCutAttribs()
1016 EditCharAttrib* pAttrib = GetAttrib( pNextNode->GetCharAttribs().GetAttribs(), nAttr ); in AppendAttribs() local
1017 while ( pAttrib ) in AppendAttribs()
1021 if ( ( pAttrib->GetStart() == 0 ) && ( !pAttrib->IsFeature() ) ) in AppendAttribs()
1030 if ( ( pTmpAttrib->Which() == pAttrib->Which() ) && in AppendAttribs()
1031 ( *(pTmpAttrib->GetItem()) == *(pAttrib->GetItem() ) ) ) in AppendAttribs()
1034 pTmpAttrib->GetEnd() + pAttrib->GetLen(); in AppendAttribs()
1037 delete pAttrib; in AppendAttribs()
1048 pAttrib->GetStart() = pAttrib->GetStart() + nNewStart; in AppendAttribs()
1049 pAttrib->GetEnd() = pAttrib->GetEnd() + nNewStart; in AppendAttribs()
1050 aCharAttribList.InsertAttrib( pAttrib ); in AppendAttribs()
1053 pAttrib = GetAttrib( pNextNode->GetCharAttribs().GetAttribs(), nAttr ); in AppendAttribs()
1592 …EditCharAttrib* pAttrib = MakeCharAttrib( GetItemPool(), rItem, aPaM.GetIndex(), aPaM.GetIndex()+1… in InsertFeature() local
1593 DBG_ASSERT( pAttrib, "Warum kann ich kein Feature anlegen ?" ); in InsertFeature()
1594 aPaM.GetNode()->GetCharAttribs().InsertAttrib( pAttrib ); in InsertFeature()
1796 EditCharAttrib* pAttrib = MakeCharAttrib( GetItemPool(), rPoolItem, nStart, nEnd ); in InsertAttrib() local
1797 DBG_ASSERT( pAttrib, "MakeCharAttrib fehlgeschlagen!" ); in InsertAttrib()
1798 pNode->GetCharAttribs().InsertAttrib( pAttrib ); in InsertAttrib()
1989 void CharAttribList::InsertAttrib( EditCharAttrib* pAttrib ) in InsertAttrib() argument
2003 const sal_uInt16 nStart = pAttrib->GetStart(); // vielleicht besser fuer Comp.Opt. in InsertAttrib()
2005 if ( pAttrib->IsEmpty() ) in InsertAttrib()
2014 aAttribs.Insert( pAttrib, x ); in InsertAttrib()
2020 aAttribs.Insert( pAttrib, nCount ); in InsertAttrib()