| /AOO42X/main/sw/source/core/crsr/ |
| H A D | pam.cxx | 279 const SwNode *pTmp, *pNd = rNds[ nStt ]; in lcl_ChkOneRange() local 280 if( !pNd->IsStartNode() ) in lcl_ChkOneRange() 281 pNd = pNd->StartOfSectionNode(); in lcl_ChkOneRange() 283 if( pNd == rNds[ nEnd ]->StartOfSectionNode() ) in lcl_ChkOneRange() 287 if( !pNd->StartOfSectionIndex() ) in lcl_ChkOneRange() 290 while( ( pTmp = pNd->StartOfSectionNode())->EndOfSectionNode() != in lcl_ChkOneRange() 292 pNd = pTmp; in lcl_ChkOneRange() 294 sal_uLong nSttIdx = pNd->GetIndex(), nEndIdx = pNd->EndOfSectionIndex(); in lcl_ChkOneRange() 332 sal_Bool GoNext(SwNode* pNd, SwIndex * pIdx, sal_uInt16 nMode ) in GoNext() argument 334 if( pNd->IsCntntNode() ) in GoNext() [all …]
|
| H A D | trvlreg.cxx | 44 SwSectionNode* pNd = aIdx.GetNode().FindSectionNode(); in GotoPrevRegion() local 45 if( pNd ) in GotoPrevRegion() 46 aIdx.Assign( *pNd, - 1 ); in GotoPrevRegion() 50 0 == ( pNd = aIdx.GetNode().StartOfSectionNode()->GetSectionNode()) ) in GotoPrevRegion() 53 if( pNd ) // gibt einen weiteren SectionNode ? in GotoPrevRegion() 55 if( pNd->GetSection().IsHiddenFlag() || in GotoPrevRegion() 57 pNd->GetSection().IsProtectFlag() )) in GotoPrevRegion() 60 aIdx.Assign( *pNd, - 1 ); in GotoPrevRegion() 64 aIdx = *pNd; in GotoPrevRegion() 65 SwCntntNode* pCNd = pNd->GetNodes().GoNextSection( &aIdx, in GotoPrevRegion() [all …]
|
| H A D | swcrsr.cxx | 342 const SwNode* pNd = &GetPoint()->nNode.GetNode(); in IsSelOvr() local 343 if( pNd->IsCntntNode() && !dynamic_cast<SwUnoCrsr*>(this) ) in IsSelOvr() 345 const SwCntntFrm* pFrm = ((SwCntntNode*)pNd)->getLayoutFrm( pDoc->GetCurrentLayout() ); in IsSelOvr() 363 pFrm = ((SwCntntNode*)pNd)->getLayoutFrm( pDoc->GetCurrentLayout() ); in IsSelOvr() 377 pNd = pCNd; in IsSelOvr() 428 if( (pNd = &GetMark()->nNode.GetNode())->IsCntntNode() in IsSelOvr() 429 && !((SwCntntNode*)pNd)->getLayoutFrm( pDoc->GetCurrentLayout() ) in IsSelOvr() 665 SwNode* pNd; in IsInProtectTable() local 666 if( ( pNd = &IDX.GetNode())->IsEndNode() || HasMark()) in IsInProtectTable() 677 else if( pNd->IsTableNode() && IDX++ ) in IsInProtectTable() [all …]
|
| /AOO42X/main/sw/source/core/docnode/ |
| H A D | node2lay.cxx | 82 SwNode* pNd = 0; in GoNextWithFrm() local 85 pNd = &aTmp.GetNode(); in GoNextWithFrm() 87 if ( pNd->IsCntntNode() ) in GoNextWithFrm() 88 bFound = ( SwIterator<SwFrm,SwCntntNode>::FirstElement(*(SwCntntNode*)pNd) != 0); in GoNextWithFrm() 89 else if ( pNd->IsTableNode() ) in GoNextWithFrm() 90 …bFound = ( SwIterator<SwFrm,SwFmt>::FirstElement(*((SwTableNode*)pNd)->GetTable().GetFrmFmt()) != … in GoNextWithFrm() 91 else if( pNd->IsEndNode() && !pNd->StartOfSectionNode()->IsSectionNode() ) in GoNextWithFrm() 93 pNd = 0; in GoNextWithFrm() 102 pNd = 0; in GoNextWithFrm() 103 else if( pNd ) in GoNextWithFrm() [all …]
|
| H A D | ndindex.cxx | 63 : pNd( rNds[ nIdx ] ), pNext( 0 ), pPrev( 0 ) in SwNodeIndex() 77 pNd = rIdx.GetNodes()[ rIdx.GetIndex() + nDiff ]; in SwNodeIndex() 79 pNd = rIdx.pNd; in SwNodeIndex() 81 pNd->GetNodes().RegisterIndex( *this ); in SwNodeIndex() 92 pNd = rNd.GetNodes()[ rNd.GetIndex() + nDiff ]; in SwNodeIndex() 94 pNd = (SwNode*)&rNd; in SwNodeIndex() 96 pNd->GetNodes().RegisterIndex( *this ); in SwNodeIndex() 105 pNd->GetNodes().DeRegisterIndex( *this ); in Remove() 110 if( &pNd->GetNodes() != &rIdx.pNd->GetNodes() ) in operator =() 112 pNd->GetNodes().DeRegisterIndex( *this ); in operator =() [all …]
|
| H A D | nodes.cxx | 234 SwNode* pNd = &rDelPos.GetNode(); in ChgNode() local 237 if( pNd->IsNoTxtNode() ) in ChgNode() 240 ((SwNoTxtNode*)pNd)->SavePersistentData(); in ChgNode() 242 else if( pNd->IsTxtNode() ) in ChgNode() 244 SwTxtNode* pTxtNd = (SwTxtNode*)pNd; in ChgNode() 249 pOutlineNds->Remove( pNd ); in ChgNode() 274 SwCntntNode * pCNd = pNd->GetCntntNode(); in ChgNode() 275 rNds.InsertNode( pNd, aInsPos ); in ChgNode() 634 SwNode* pNd = &aMvIdx.GetNode(); in _MoveNodes() local 645 const bool bOutlNd = pNd->IsTxtNode() && in _MoveNodes() [all …]
|
| H A D | node.cxx | 343 SwNode* pNd = rNodes[ rWhere.GetIndex() -1 ]; in SwNode() local 345 if( 0 == ( pStartOfSection = pNd->GetStartNode()) ) in SwNode() 347 pStartOfSection = pNd->pStartOfSection; in SwNode() 348 if( pNd->GetEndNode() ) // EndNode ? Section ueberspringen! in SwNode() 350 pNd = pStartOfSection; in SwNode() 351 pStartOfSection = pNd->pStartOfSection; in SwNode() 376 SwNode* pNd = rNodes[ nPos - 1 ]; in SwNode() local 378 if( 0 == ( pStartOfSection = pNd->GetStartNode()) ) in SwNode() 380 pStartOfSection = pNd->pStartOfSection; in SwNode() 381 if( pNd->GetEndNode() ) // EndNode ? Section ueberspringen! in SwNode() [all …]
|
| H A D | ndsect.cxx | 124 const SwStartNode* pNd = rSortBoxes[ n ]->GetSttNd(); in lcl_IsInSameTblBox() local 125 if ( pNd->GetIndex() < nIdx && nIdx < pNd->EndOfSectionIndex() ) in lcl_IsInSameTblBox() 129 return pNd->GetIndex() < nIdx && nIdx < pNd->EndOfSectionIndex(); in lcl_IsInSameTblBox() 401 const SwNode* pNd = &pStt->nNode.GetNode(); in IsInsRegionAvailable() local 402 const SwSectionNode* pSectNd = pNd->FindSectionNode(); in IsInsRegionAvailable() 418 while( 0 != ( pPrvNd = (pNd = &aIdx.GetNode())->GetSectionNode() ) && in IsInsRegionAvailable() 425 pPrvNd = pNd->IsStartNode() ? (SwStartNode*)pNd in IsInsRegionAvailable() 426 : pNd->StartOfSectionNode(); in IsInsRegionAvailable() 430 while( 0 != ( pNxtNd = (pNd = &aIdx.GetNode())->GetEndNode() ) && in IsInsRegionAvailable() 438 pNxtNd = pNd->EndOfSectionNode(); in IsInsRegionAvailable() [all …]
|
| /AOO42X/main/sw/inc/ |
| H A D | ndindex.hxx | 47 SwNode* pNd; member in SwNodeIndex 103 SwNode& GetNode() const { return *pNd; } in GetNode() 134 return pNd->GetIndex(); in GetIndex() 138 return pNd->GetNodes(); in GetNodes() 142 return pNd->GetNodes(); in GetNodes() 146 return pNd->GetIndex() < nWert; in operator <() 150 return pNd->GetIndex() <= nWert; in operator <=() 154 return pNd->GetIndex() > nWert; in operator >() 158 return pNd->GetIndex() >= nWert; in operator >=() 162 return pNd->GetIndex() == nWert; in operator ==() [all …]
|
| /AOO42X/main/basic/source/comp/ |
| H A D | exprtree.cxx | 185 SbiExprNode* pNd = NULL; in Term() local 192 pNd = ObjTerm( *pDef ); in Term() 193 if( pNd ) in Term() 194 pNd->SetWithParent( pWithVar ); in Term() 196 if( !pNd ) in Term() 199 pNd = new SbiExprNode( pParser, 1.0, SbxDOUBLE ); in Term() 201 return pNd; in Term() 358 SbiExprNode* pNd = new SbiExprNode( pParser, *pDef, eType ); in Term() local 361 pNd->aVar.pPar = pPar; in Term() 362 pNd->aVar.pvMorePar = pvMoreParLcl; in Term() [all …]
|
| /AOO42X/main/sw/source/core/tox/ |
| H A D | txmsrt.cxx | 148 SwTOXSortTabBase::SwTOXSortTabBase( TOXSortType nTyp, const SwCntntNode* pNd, in SwTOXSortTabBase() argument 158 if( pNd ) in SwTOXSortTabBase() 163 SwTOXSource aTmp( pNd, n, in SwTOXSortTabBase() 167 nPos = pNd->GetIndex(); in SwTOXSortTabBase() 176 if( nPos < pNd->GetNodes().GetEndOfExtras().GetIndex() ) in SwTOXSortTabBase() 180 …const SwCntntFrm* pFrm = pNd->getLayoutFrm( pNd->GetDoc()->GetCurrentLayout(), &aPt, 0, sal_False … in SwTOXSortTabBase() 183 SwPosition aPos( *pNd ); in SwTOXSortTabBase() 184 const SwDoc& rDoc = *pNd->GetDoc(); in SwTOXSortTabBase() 223 (!aTOXSources[0].pNd || !rCmp.aTOXSources[0].pNd || in operator ==() 224 aTOXSources[0].pNd == rCmp.aTOXSources[0].pNd ); in operator ==() [all …]
|
| /AOO42X/main/sw/source/core/undo/ |
| H A D | unins.cxx | 602 SwTxtNode* pNd = pStt->nNode.GetNode().GetTxtNode(); in Impl() local 603 ASSERT( pNd, "wo ist der TextNode" ); in Impl() 613 if ( pNd->GetpSwpHints() ) in Impl() 615 pHistory->CopyAttr( pNd->GetpSwpHints(), nNewPos, 0, in Impl() 616 pNd->GetTxt().Len(), true ); in Impl() 621 if( pNd->HasSwAttrSet() ) in Impl() 622 pHistory->CopyFmtAttr( *pNd->GetpSwAttrSet(), nNewPos ); in Impl() 623 pHistory->Add( pNd->GetTxtColl(), nNewPos, ND_TEXTNODE ); in Impl() 633 m_pMetadataUndoStart = pNd ->CreateUndo(); in Impl() 640 xub_StrLen nECnt = m_bSplitNext ? pNd->GetTxt().Len() in Impl() [all …]
|
| H A D | unattr.cxx | 266 SwNode* pNd = pDoc->GetNodes()[ m_nNodeIndex ]; in IsFmtInDoc() local 267 if ( pNd->IsTableNode() ) in IsFmtInDoc() 270 static_cast<SwTableNode*>(pNd)->GetTable().GetFrmFmt(); in IsFmtInDoc() 274 else if ( pNd->IsSectionNode() ) in IsFmtInDoc() 277 static_cast<SwSectionNode*>(pNd)->GetSection().GetFmt(); in IsFmtInDoc() 281 else if ( pNd->IsStartNode() && (SwTableBoxStartNode == in IsFmtInDoc() 282 static_cast< SwStartNode* >(pNd)->GetStartNodeType()) ) in IsFmtInDoc() 284 SwTableNode* pTblNode = pNd->FindTableNode(); in IsFmtInDoc() 345 SwNoTxtNode *const pNd = in RepeatImpl() local 347 if( pNd ) in RepeatImpl() [all …]
|
| H A D | unnum.cxx | 96 SwTxtNode* pNd; in UndoImpl() local 98 0 != ( pNd = rDoc.GetNodes()[ nSttSet ]->GetTxtNode() )) in UndoImpl() 99 pNd->SetListRestart( sal_True ); in UndoImpl() 101 pNd = 0; in UndoImpl() 109 if( !pNd && nSttNode ) in UndoImpl() 110 pNd = rDoc.GetNodes()[ nSttNode ]->GetTxtNode(); in UndoImpl() 116 if( pNd ) in UndoImpl() 117 pNdRule = pNd->GetNumRule(); in UndoImpl() 214 SwTxtNode* pNd = rDoc.GetNodes()[ aNodeIdx[ n ] ]->GetTxtNode(); in UndoImpl() local 215 ASSERT( pNd, "Where is TextNode gone?" ); in UndoImpl() [all …]
|
| H A D | undobj1.cxx | 433 SwNode *const pNd = & pIdx->GetNode(); in GetRewriter() local 435 if ( pNd->IsNoTxtNode() && pNd->IsOLENode()) in GetRewriter() 437 SwOLENode * pOLENd = pNd->GetOLENode(); in GetRewriter() 514 SwNode* pNd = pFrmFmt->GetDoc()->GetNodes()[ nNode ]; in GetAnchor() local 517 ? ( !pNd->IsStartNode() || SwFlyStartNode != in GetAnchor() 518 ((SwStartNode*)pNd)->GetStartNodeType() ) in GetAnchor() 519 : !pNd->IsTxtNode() ) in GetAnchor() 521 pNd = 0; // invalid position in GetAnchor() 525 SwPosition aPos( *pNd ); in GetAnchor() 529 if ( nCntnt > static_cast<SwTxtNode*>(pNd)->GetTxt().Len() ) in GetAnchor() [all …]
|
| /AOO42X/main/sw/source/core/doc/ |
| H A D | swserv.cxx | 134 const SwStartNode* pNd = 0; in SendDataChanged() local 145 case TABLE_SERVER: pNd = CNTNT_TYPE.pTblNd; break; in SendDataChanged() 146 case SECTION_SERVER: pNd = CNTNT_TYPE.pSectNd; break; in SendDataChanged() 149 if( pNd ) in SendDataChanged() 152 bCall = pNd->GetIndex() < nNd && nNd < pNd->EndOfSectionIndex(); in SendDataChanged() 175 const SwStartNode* pNd = 0; in SendDataChanged() local 187 case TABLE_SERVER: pNd = CNTNT_TYPE.pTblNd; break; in SendDataChanged() 188 case SECTION_SERVER: pNd = CNTNT_TYPE.pSectNd; break; in SendDataChanged() 191 if( pNd ) in SendDataChanged() 194 bCall = pStt->nNode.GetIndex() < pNd->EndOfSectionIndex() && in SendDataChanged() [all …]
|
| H A D | docnum.cxx | 491 const SwNode* pNd; in MoveOutlinePara() local 500 pNd = aSttRg.GetNode().EndOfSectionNode(); in MoveOutlinePara() 501 if( pNd->GetIndex() >= aEndRg.GetIndex() ) in MoveOutlinePara() 512 pNd = aEndRg.GetNode().StartOfSectionNode(); in MoveOutlinePara() 513 if( pNd->GetIndex() >= aSttRg.GetIndex() ) in MoveOutlinePara() 521 pNd = GetNodes().GetEndOfContent().StartOfSectionNode(); in MoveOutlinePara() 523 pNd = &GetNodes().GetEndOfContent(); in MoveOutlinePara() 525 pNd = GetNodes().GetOutLineNds()[ nAktPos + nOffset ]; in MoveOutlinePara() 527 sal_uLong nNewPos = pNd->GetIndex(); in MoveOutlinePara() 530 SwNodeIndex aInsertPos( *pNd, -1 ); in MoveOutlinePara() [all …]
|
| H A D | doctxm.cxx | 417 SwNode* pNd = GetNodes()[ nSttNd ]; in InsertTableOf() local 418 SwSectionNode* pSectNd = pNd->FindSectionNode(); in InsertTableOf() 726 const SwNode* pNd = &rNd; in lcl_FindChapterNode() local 727 if( pNd->GetNodes().GetEndOfExtras().GetIndex() > pNd->GetIndex() ) in lcl_FindChapterNode() 731 SwNode2Layout aNode2Layout( *pNd, pNd->GetIndex() ); in lcl_FindChapterNode() 736 SwPosition aPos( *pNd ); in lcl_FindChapterNode() 737 pNd = GetBodyTxtNode( *pNd->GetDoc(), aPos, *pFrm ); in lcl_FindChapterNode() 738 ASSERT( pNd, "wo steht der Absatz" ); in lcl_FindChapterNode() 741 return pNd ? pNd->FindOutlineNodeOfLevel( nLvl ) : 0; in lcl_FindChapterNode() 1477 SwNode* pNd = rNds[ nIdx ]; in UpdateCntnt() local [all …]
|
| H A D | docglbl.cxx | 210 SwNodePtr pNd; in SplitDoc() local 212 if( ( pNd = pOutlNds->GetObject( nOutl ))->GetTxtNode()-> in SplitDoc() 214 !pNd->FindTableNode() ) in SplitDoc() 216 pSttNd = pNd; in SplitDoc() 225 pNd = pOutlNds->GetObject( nOutl ); in SplitDoc() 226 SwTxtFmtColl* pTColl = pNd->GetTxtNode()->GetTxtColl(); in SplitDoc() 238 !pNd->FindTableNode() ) //<-end,zhaojianwei in SplitDoc() 240 pEndNd = pNd; in SplitDoc() 571 SwNodePtr pNd; in SplitDoc() local 573 … if( ( pNd = pOutlNds->GetObject( nOutl ))->GetTxtNode()->GetAttrOutlineLevel() == nOutlineLevel && in SplitDoc() [all …]
|
| H A D | doccomp.cxx | 872 sal_uLong PrevIdx( const SwNode* pNd ); 873 sal_uLong NextIdx( const SwNode* pNd ); 942 const SwNode* pNd = &rNode; in GetEndNode() local 946 pNd = rNode.EndOfSectionNode(); in GetEndNode() 954 pNd = rNode.EndOfSectionNode(); in GetEndNode() 958 return *pNd; in GetEndNode() 1262 sal_uLong SwCompareData::NextIdx( const SwNode* pNd ) in NextIdx() argument 1264 if( pNd->IsStartNode() ) in NextIdx() 1267 if( pNd->IsTableNode() || in NextIdx() 1268 ( 0 != (pSNd = pNd->GetSectionNode() ) && in NextIdx() [all …]
|
| /AOO42X/main/sw/source/core/fields/ |
| H A D | cellfml.cxx | 394 SwNode* pNd = (SwNode*)pPara; in RelNmsToBoxNms() local 395 ASSERT( pNd, "Feld steht in keinem TextNode" ); in RelNmsToBoxNms() 397 pNd->FindTableBoxStartNode()->GetIndex() ); in RelNmsToBoxNms() 424 SwNode* pNd = (SwNode*)pPara; in RelBoxNmsToPtr() local 425 ASSERT( pNd, "Feld steht in keinem Node" ); in RelBoxNmsToPtr() 427 pNd->FindTableBoxStartNode()->GetIndex() ); in RelBoxNmsToPtr() 455 SwNode* pNd = (SwNode*)pPara; in BoxNmsToRelNm() local 456 ASSERT( pNd, "Feld steht in keinem Node" ); in BoxNmsToRelNm() 457 const SwTableNode* pTblNd = pNd->FindTableNode(); in BoxNmsToRelNm() 463 pNd->FindTableBoxStartNode()->GetIndex() ); in BoxNmsToRelNm() [all …]
|
| /AOO42X/main/sw/source/core/edit/ |
| H A D | editsh.cxx | 412 SwNoTxtNode *pNd = GetCrsr()->GetNode()->GetNoTxtNode(); in GetGraphicPolygon() local 413 return pNd->HasContour(); in GetGraphicPolygon() 419 SwNoTxtNode *pNd = GetCrsr()->GetNode()->GetNoTxtNode(); in SetGraphicPolygon() local 421 pNd->SetContour( pPoly ); in SetGraphicPolygon() 422 SwFlyFrm *pFly = (SwFlyFrm*)pNd->getLayoutFrm(GetLayout())->GetUpper(); in SetGraphicPolygon() 431 SwNoTxtNode *pNd = GetCrsr()->GetNode()->GetNoTxtNode(); in ClearAutomaticContour() local 432 ASSERT( pNd, "is no NoTxtNode!" ); in ClearAutomaticContour() 433 if( pNd->HasAutomaticContour() ) in ClearAutomaticContour() 436 pNd->SetContour( NULL, sal_False ); in ClearAutomaticContour() 437 SwFlyFrm *pFly = (SwFlyFrm*)pNd->getLayoutFrm(GetLayout())->GetUpper(); in ClearAutomaticContour() [all …]
|
| H A D | edglss.cxx | 125 const SwNode* pNd = pCntntNd->FindTableNode(); in SaveGlossaryDoc() local 126 if( !pNd ) in SaveGlossaryDoc() 127 pNd = pCntntNd; in SaveGlossaryDoc() 129 pCrsr->GetPoint()->nNode = *pNd; in SaveGlossaryDoc() 130 if( pNd == pCntntNd ) in SaveGlossaryDoc() 151 const SwNode* pNd = pCntntNd->FindTableNode(); in SaveGlossaryDoc() local 152 if( !pNd ) pNd = pCntntNd; in SaveGlossaryDoc() 153 SwPaM aCpyPam( *pNd ); in SaveGlossaryDoc() 185 SwCntntNode * pNd = aIdx.GetNode().GetCntntNode(); in _CopySelToDoc() local 186 SwPosition aPos( aIdx, SwIndex( pNd, pNd->Len() )); in _CopySelToDoc() [all …]
|
| H A D | ednumber.cxx | 477 const SwNode* pNd; in MoveNumParas() local 489 ( pNd = GetDoc()->GetNodes()[ nIdx ])->IsSectionNode() || in MoveNumParas() 490 ( pNd->IsEndNode() && pNd->StartOfSectionNode()->IsSectionNode()))) in MoveNumParas() 506 pNd = GetDoc()->GetNodes()[ nIdx ]; in MoveNumParas() 508 if (pNd->IsSectionNode() || in MoveNumParas() 509 ( pNd->IsEndNode() && pNd->StartOfSectionNode()->IsSectionNode()) || in MoveNumParas() 510 ( pNd->IsTxtNode() && pOrig == ((SwTxtNode*)pNd)->GetNumRule() && in MoveNumParas() 511 ((SwTxtNode*)pNd)->GetActualListLevel() > nUpperLevel )) in MoveNumParas() 590 SwNodePtr pNd = (SwNodePtr)&rNd; in IsProtectedOutlinePara() local 594 if( !rOutlNd.Seek_Entry( pNd, &nPos ) && nPos ) in IsProtectedOutlinePara() [all …]
|
| /AOO42X/main/sw/source/filter/rtf/ |
| H A D | rtffly.cxx | 258 SwTxtNode * pNd = (pDoc1->GetNodes()[nPos])->GetTxtNode(); in SetFlysInDoc() local 260 if( bJoined && pNd != NULL) in SetFlysInDoc() 267 pNd->RstTxtAttr( aIdx, 1, RES_CHRATR_FONTSIZE ); in SetFlysInDoc() 268 pNd->SetAttr( aDropCap ); in SetFlysInDoc() 301 const SwNode* pNd = &pFlySave->nSttNd.GetNode(); in SetFlysInDoc() local 302 if( pNd->IsNoTxtNode() ) in SetFlysInDoc() 308 _SetPictureSize( *(SwNoTxtNode*)pNd, aRg.aStart, in SetFlysInDoc() 310 if( 0 != ( pNd = pNd->FindTableNode() ) ) in SetFlysInDoc() 311 pFlySave->SetFlySize( *(SwTableNode*)pNd ); in SetFlysInDoc() 316 pNd = pNd->GetNodes()[ pNd->GetIndex() - 2 ]->GetTableNode(); in SetFlysInDoc() [all …]
|