Lines Matching refs:pPara
109 Paragraph* pPara; in Insert() local
119 pPara = pParaList->GetParagraph( 0 ); in Insert()
120 if( pPara->GetDepth() != nDepth ) in Insert()
122 nDepthChangedHdlPrevDepth = pPara->GetDepth(); in Insert()
123 mnDepthChangeHdlPrevFlags = pPara->nFlags; in Insert()
124 pPara->SetDepth( nDepth ); in Insert()
125 pHdlParagraph = pPara; in Insert()
128 pPara->nFlags |= PARAFLAG_HOLDDEPTH; in Insert()
129 SetText( rText, pPara ); in Insert()
136 pPara = new Paragraph( nDepth ); in Insert()
137 pParaList->Insert( pPara, nAbsPos ); in Insert()
139 DBG_ASSERT(pPara==pParaList->GetParagraph(nAbsPos),"Insert:Failed"); in Insert()
141 pHdlParagraph = pPara; in Insert()
143 pPara->nFlags |= PARAFLAG_HOLDDEPTH; in Insert()
144 SetText( rText, pPara ); in Insert()
150 return pPara; in Insert()
163 Paragraph* pPara = new Paragraph( -1 ); in ParagraphInserted() local
164 pParaList->Insert( pPara, nPara ); in ParagraphInserted()
167 pPara->nFlags = PARAFLAG_SETBULLETTEXT; in ParagraphInserted()
168 pPara->bVisible = sal_True; in ParagraphInserted()
170 pPara->SetDepth( rLevel.GetValue() ); in ParagraphInserted()
180 Paragraph* pPara = new Paragraph( nDepth ); in ParagraphInserted() local
181 pParaList->Insert( pPara, nPara ); in ParagraphInserted()
186 pHdlParagraph = pPara; in ParagraphInserted()
199 Paragraph* pPara = pParaList->GetParagraph( nPara ); in ParagraphDeleted() local
200 if (!pPara) in ParagraphDeleted()
203 sal_Int16 nDepth = pPara->GetDepth(); in ParagraphDeleted()
207 pHdlParagraph = pPara; in ParagraphDeleted()
212 delete pPara; in ParagraphDeleted()
216 pPara = pParaList->GetParagraph( nPara ); in ParagraphDeleted()
217 if ( pPara && ( pPara->GetDepth() > nDepth ) ) in ParagraphDeleted()
221 while ( pPara && pPara->GetDepth() > nDepth ) in ParagraphDeleted()
222 pPara = pParaList->GetParagraph( ++nPara ); in ParagraphDeleted()
225 if ( pPara && ( pPara->GetDepth() == nDepth ) ) in ParagraphDeleted()
277 Paragraph* pPara = pParaList->GetParagraph( nPara ); in SetMaxDepth() local
278 if( pPara && pPara->GetDepth() > nMaxDepth ) in SetMaxDepth()
280 SetDepth( pPara, nMaxDepth ); in SetMaxDepth()
289 Paragraph* pPara = pParaList->GetParagraph( nPara ); in GetDepth() local
290 DBG_ASSERT( pPara, "Outliner::GetDepth - Paragraph not found!" ); in GetDepth()
291 return pPara ? pPara->GetDepth() : -1; in GetDepth()
294 void Outliner::SetDepth( Paragraph* pPara, sal_Int16 nNewDepth ) in SetDepth() argument
300 if ( nNewDepth != pPara->GetDepth() ) in SetDepth()
302 nDepthChangedHdlPrevDepth = pPara->GetDepth(); in SetDepth()
303 mnDepthChangeHdlPrevFlags = pPara->nFlags; in SetDepth()
304 pHdlParagraph = pPara; in SetDepth()
306 sal_uInt16 nPara = (sal_uInt16)GetAbsPos( pPara ); in SetDepth()
319 Paragraph* pPara = pParaList->GetParagraph( nPara ); in GetNumberingStartValue() local
320 DBG_ASSERT( pPara, "Outliner::GetNumberingStartValue - Paragraph not found!" ); in GetNumberingStartValue()
321 return pPara ? pPara->GetNumberingStartValue() : -1; in GetNumberingStartValue()
326 Paragraph* pPara = pParaList->GetParagraph( nPara ); in SetNumberingStartValue() local
327 DBG_ASSERT( pPara, "Outliner::GetNumberingStartValue - Paragraph not found!" ); in SetNumberingStartValue()
328 if( pPara && pPara->GetNumberingStartValue() != nNumberingStartValue ) in SetNumberingStartValue()
332 pPara->GetNumberingStartValue(), nNumberingStartValue, in SetNumberingStartValue()
333 pPara->IsParaIsNumberingRestart(), pPara->IsParaIsNumberingRestart() ) ); in SetNumberingStartValue()
335 pPara->SetNumberingStartValue( nNumberingStartValue ); in SetNumberingStartValue()
347 Paragraph* pPara = pParaList->GetParagraph( nPara ); in IsParaIsNumberingRestart() local
348 DBG_ASSERT( pPara, "Outliner::IsParaIsNumberingRestart - Paragraph not found!" ); in IsParaIsNumberingRestart()
349 return pPara ? pPara->IsParaIsNumberingRestart() : sal_False; in IsParaIsNumberingRestart()
354 Paragraph* pPara = pParaList->GetParagraph( nPara ); in SetParaIsNumberingRestart() local
355 DBG_ASSERT( pPara, "Outliner::SetParaIsNumberingRestart - Paragraph not found!" ); in SetParaIsNumberingRestart()
356 if( pPara && (pPara->IsParaIsNumberingRestart() != bParaIsNumberingRestart) ) in SetParaIsNumberingRestart()
360 pPara->GetNumberingStartValue(), pPara->GetNumberingStartValue(), in SetParaIsNumberingRestart()
361 pPara->IsParaIsNumberingRestart(), bParaIsNumberingRestart ) ); in SetParaIsNumberingRestart()
363 pPara->SetParaIsNumberingRestart( bParaIsNumberingRestart ); in SetParaIsNumberingRestart()
463 void Outliner::SetText( const XubString& rText, Paragraph* pPara ) in SetText() argument
466 DBG_ASSERT(pPara,"SetText:No Para"); in SetText()
472 sal_uInt16 nPara = (sal_uInt16)pParaList->GetAbsPos( pPara ); in SetText()
477 ImplInitDepth( nPara, pPara->GetDepth(), sal_False ); in SetText()
497 pPara = new Paragraph( -1 ); in SetText()
501 nCurDepth = pPara->GetDepth(); in SetText()
517 if( !(pPara->nFlags & PARAFLAG_HOLDDEPTH) ) in SetText()
521 pPara->SetDepth( nCurDepth ); in SetText()
522 pPara->nFlags &= (~PARAFLAG_HOLDDEPTH); in SetText()
527 pParaList->Insert( pPara, nInsPos ); in SetText()
529 pHdlParagraph = pPara; in SetText()
657 Paragraph* pPara = new Paragraph( rPObj.GetParagraphData(nCurPara)); in SetText() local
658 ImplCheckDepth( pPara->nDepth ); in SetText()
660 pParaList->Insert( pPara, LIST_APPEND ); in SetText()
681 Paragraph* pPara; in AddText() local
703 pPara = new Paragraph( rPObj.GetParagraphData(n) ); in AddText()
704 pParaList->Insert( pPara, LIST_APPEND ); in AddText()
706 DBG_ASSERT(pParaList->GetAbsPos(pPara)==nP,"AddText:Out of sync"); in AddText()
707 ImplInitDepth( nP, pPara->GetDepth(), sal_False ); in AddText()
773 Paragraph* pPara = pParaList->GetParagraph( nPara ); in SetStyleSheet() local
774 if (pPara) in SetStyleSheet()
777 pPara->nFlags |= PARAFLAG_SETBULLETTEXT; in SetStyleSheet()
782 void Outliner::SetVisible( Paragraph* pPara, sal_Bool bVisible ) in SetVisible() argument
785 DBG_ASSERT( pPara, "SetVisible: pPara = NULL" ); in SetVisible()
787 if (pPara) in SetVisible()
789 pPara->bVisible = bVisible; in SetVisible()
790 sal_uLong nPara = pParaList->GetAbsPos( pPara ); in SetVisible()
797 Paragraph* pPara = pParaList->GetParagraph( nPara ); in ImplCheckNumBulletItem() local
798 if (pPara) in ImplCheckNumBulletItem()
799 pPara->aBulSize.Width() = -1; in ImplCheckNumBulletItem()
843 Paragraph* pPara = pParaList->GetParagraph( nPara ); in ImplInitDepth() local
844 if (!pPara) in ImplInitDepth()
846 sal_Int16 nOldDepth = pPara->GetDepth(); in ImplInitDepth()
847 pPara->SetDepth( nDepth ); in ImplInitDepth()
885 sal_Bool Outliner::Expand( Paragraph* pPara ) in Expand() argument
889 if ( pParaList->HasHiddenChilds( pPara ) ) in Expand()
898 pUndo->nCount = (sal_uInt16)pParaList->GetAbsPos( pPara ); in Expand()
900 pHdlParagraph = pPara; in Expand()
902 pParaList->Expand( pPara ); in Expand()
904 InvalidateBullet( pPara, pParaList->GetAbsPos(pPara) ); in Expand()
916 sal_Bool Outliner::Collapse( Paragraph* pPara ) in Collapse() argument
919 if ( pParaList->HasVisibleChilds( pPara ) ) // expandiert in Collapse()
931 pUndo->nCount = (sal_uInt16)pParaList->GetAbsPos( pPara ); in Collapse()
934 pHdlParagraph = pPara; in Collapse()
936 pParaList->Collapse( pPara ); in Collapse()
938 InvalidateBullet( pPara, pParaList->GetAbsPos(pPara) ); in Collapse()
1026 Paragraph* pPara = pParaList->GetParagraph( nPara ); in PaintBullet() local
1088 sal_Int32* pBuf = new sal_Int32[ pPara->GetText().Len() ]; in PaintBullet()
1089 pOutDev->GetTextArray( pPara->GetText(), pBuf ); in PaintBullet()
1098 DrawingText(aTextPos, pPara->GetText(), 0, pPara->GetText().Len(), pBuf, in PaintBullet()
1105 pOutDev->DrawText( aTextPos, pPara->GetText() ); in PaintBullet()
1140 pPara->aBulSize); in PaintBullet()
1148 …((GraphicObject*)pFmt->GetBrush()->GetGraphicObject())->Draw( pOutDev, aBulletPos, pPara->aBulSize… in PaintBullet()
1155 if( pParaList->HasChilds(pPara) && !pParaList->HasVisibleChilds(pPara) && in PaintBullet()
1229 Paragraph* pPara = new Paragraph( 0 ); in Read() local
1230 pParaList->Insert( pPara, LIST_APPEND ); in Read()
1264 Paragraph* pPara = pParaList->GetParagraph( nPara ); in ImpFilterIndents() local
1265 if (pPara) in ImpFilterIndents()
1269 pLastConverted = pPara; in ImpFilterIndents()
1274 pPara->SetDepth( pLastConverted->GetDepth() ); in ImpFilterIndents()
1277 ImplInitDepth( (sal_uInt16)nPara, pPara->GetDepth(), sal_False ); in ImpFilterIndents()
1305 Paragraph* pPara = pParaList->GetParagraph( nStartPara ); in ImpTextPasted() local
1309 while( nCount && pPara ) in ImpTextPasted()
1313 nDepthChangedHdlPrevDepth = pPara->GetDepth(); in ImpTextPasted()
1314 mnDepthChangeHdlPrevFlags = pPara->nFlags; in ImpTextPasted()
1318 pHdlParagraph = pPara; in ImpTextPasted()
1323 …if( (pPara->GetDepth() != nDepthChangedHdlPrevDepth) || (pPara->nFlags != mnDepthChangeHdlPrevFlag… in ImpTextPasted()
1342 pPara = pParaList->GetParagraph( nStartPara ); in ImpTextPasted()
1400 Paragraph* pPara = new Paragraph( 0 ); in Outliner() local
1401 pParaList->Insert( pPara, LIST_APPEND ); in Outliner()
1494 sal_uLong Outliner::GetAbsPos( Paragraph* pPara ) in GetAbsPos() argument
1497 DBG_ASSERT(pPara,"GetAbsPos:No Para"); in GetAbsPos()
1498 return pParaList->GetAbsPos( pPara ); in GetAbsPos()
1535 Paragraph* pPara = pParaList->GetParagraph( nPara ); in GetNumberFormat() local
1536 if (pPara == NULL) in GetNumberFormat()
1539 sal_Int16 nDepth = pPara? pPara->GetDepth() : -1; in GetNumberFormat()
1553 Paragraph* pPara = pParaList->GetParagraph( nPara ); in ImplGetBulletSize() local
1554 if (!pPara) in ImplGetBulletSize()
1557 if( pPara->aBulSize.Width() == -1 ) in ImplGetBulletSize()
1564 pPara->aBulSize = Size( 0, 0 ); in ImplGetBulletSize()
1573 pPara->aBulSize.Width() = pRefDev->GetTextWidth( aBulletText ); in ImplGetBulletSize()
1574 pPara->aBulSize.Height() = pRefDev->GetTextHeight(); in ImplGetBulletSize()
1579 …pPara->aBulSize = OutputDevice::LogicToLogic( pFmt->GetGraphicSize(), MAP_100TH_MM, pEditEngine->G… in ImplGetBulletSize()
1583 return pPara->aBulSize; in ImplGetBulletSize()
1595 Paragraph* pPara = pParaList->GetParagraph( n ); in ImplCheckParagraphs() local
1596 if (pPara) in ImplCheckParagraphs()
1598 pPara->Invalidate(); in ImplCheckParagraphs()
1610 Paragraph* pPara = pParaList->GetParagraph( --n ); in SetRefDevice() local
1611 pPara->Invalidate(); in SetRefDevice()
1628 Paragraph* pPara = pParaList->GetParagraph( nPara ); in ParaAttribsChanged() local
1630 if ( pPara && pPara->GetDepth() != rLevel.GetValue() ) in ParaAttribsChanged()
1632 pPara->SetDepth( rLevel.GetValue() ); in ParaAttribsChanged()
1818 void Outliner::Remove( Paragraph* pPara, sal_uLong nParaCount ) in Remove() argument
1822 sal_uLong nPos = pParaList->GetAbsPos( pPara ); in Remove()
1888 IMPL_LINK( Outliner, ParaVisibleStateChangedHdl, Paragraph*, pPara ) in IMPL_LINK() argument
1892 sal_uLong nPara = pParaList->GetAbsPos( pPara ); in IMPL_LINK()
1893 pEditEngine->ShowParagraph( (sal_uInt16)nPara, pPara->IsVisible() ); in IMPL_LINK()
1958 Paragraph* pPara = pParaList->GetParagraph( nPara ); in ImplGetNumbering() local
1959 const sal_Int16 nParaDepth = pPara->GetDepth(); in ImplGetNumbering()
1963 pPara = pParaList->GetParagraph( nPara ); in ImplGetNumbering()
1964 const sal_Int16 nDepth = pPara->GetDepth(); in ImplGetNumbering()
1995 const sal_Int16 nNumberingStartValue = pPara->GetNumberingStartValue(); in ImplGetNumbering()
1996 if( (nNumberingStartValue != -1) || pPara->IsParaIsNumberingRestart() ) in ImplGetNumbering()
2012 Paragraph* pPara = pParaList->GetParagraph( nPara ); in ImplCalcBulletText() local
2015 while ( pPara ) in ImplCalcBulletText()
2033 if( aBulletText != pPara->GetText() ) in ImplCalcBulletText()
2034 pPara->SetText( aBulletText ); in ImplCalcBulletText()
2036 pPara->nFlags &= (~PARAFLAG_SETBULLETTEXT); in ImplCalcBulletText()
2043 sal_Int16 nDepth = pPara->GetDepth(); in ImplCalcBulletText()
2044 pPara = pParaList->GetParagraph( ++nPara ); in ImplCalcBulletText()
2047 while ( pPara && ( pPara->GetDepth() > nDepth ) ) in ImplCalcBulletText()
2048 pPara = pParaList->GetParagraph( ++nPara ); in ImplCalcBulletText()
2051 if ( pPara && ( pPara->GetDepth() < nDepth ) ) in ImplCalcBulletText()
2052 pPara = NULL; in ImplCalcBulletText()
2056 pPara = NULL; in ImplCalcBulletText()
2076 Paragraph* pPara = pParaList->GetParagraph( 0 ); in Clear() local
2077 if(pPara) in Clear()
2078 pPara->SetDepth( nMinDepth ); in Clear()
2098 Paragraph* pPara = pParaList->GetParagraph( nPara ); in ImplGetBulletText() local
2099 if (pPara) in ImplGetBulletText()
2104 aRes = pPara->GetText(); in ImplGetBulletText()
2193 void Outliner::SetParaFlag( Paragraph* pPara, sal_uInt16 nFlag ) in SetParaFlag() argument
2195 if( pPara && !pPara->HasFlag( nFlag ) ) in SetParaFlag()
2198 …new OutlinerUndoChangeParaFlags( this, (sal_uInt16)GetAbsPos( pPara ), pPara->nFlags, pPara->nFlag… in SetParaFlag()
2200 pPara->SetFlag( nFlag ); in SetParaFlag()
2204 void Outliner::RemoveParaFlag( Paragraph* pPara, sal_uInt16 nFlag ) in RemoveParaFlag() argument
2206 if( pPara && pPara->HasFlag( nFlag ) ) in RemoveParaFlag()
2209 …new OutlinerUndoChangeParaFlags( this, (sal_uInt16)GetAbsPos( pPara ), pPara->nFlags, pPara->nFlag… in RemoveParaFlag()
2211 pPara->RemoveFlag( nFlag ); in RemoveParaFlag()
2215 bool Outliner::HasParaFlag( const Paragraph* pPara, sal_uInt16 nFlag ) const in HasParaFlag() argument
2217 return pPara && pPara->HasFlag( nFlag ); in HasParaFlag()