Lines Matching refs:rDoc

90 	SwImplShellAction( SwDoc& rDoc );
96 SwImplShellAction::SwImplShellAction( SwDoc& rDoc ) in SwImplShellAction() argument
99 if( rDoc.GetDocShell() ) in SwImplShellAction()
100 pSh = rDoc.GetDocShell()->GetWrtShell(); in SwImplShellAction()
125 SwCharFmt* lcl_FindCharFmt( SwDoc& rDoc, in lcl_FindCharFmt() argument
133 pFmt = rDoc.FindCharFmtByName( rName ); in lcl_FindCharFmt()
138 pFmt = (SwCharFmt*)rDoc.GetDfltCharFmt(); in lcl_FindCharFmt()
145 pFmt = rDoc.GetCharFmtFromPool(nId); in lcl_FindCharFmt()
171 SwTxtFmtColl* lcl_FindParaFmt( SwDoc& rDoc, in lcl_FindParaFmt() argument
180 pColl = rDoc.FindTxtFmtCollByName( rName ); in lcl_FindParaFmt()
185 pColl = rDoc.GetTxtCollFromPool(nId); in lcl_FindParaFmt()
214 SwFrmFmt* lcl_FindFrmFmt( SwDoc& rDoc, in lcl_FindFrmFmt() argument
222 pFmt = rDoc.FindFrmFmtByName( rName ); in lcl_FindFrmFmt()
227 pFmt = rDoc.GetFrmFmtFromPool(nId); in lcl_FindFrmFmt()
252 const SwPageDesc* lcl_FindPageDesc( SwDoc& rDoc, in lcl_FindPageDesc() argument
261 pDesc = rDoc.FindPageDescByName( rName ); in lcl_FindPageDesc()
266 pDesc = rDoc.GetPageDescFromPool(nId); in lcl_FindPageDesc()
286 const SwNumRule* lcl_FindNumRule( SwDoc& rDoc, in lcl_FindNumRule() argument
295 pRule = rDoc.FindNumRulePtr( rName ); in lcl_FindNumRule()
300 pRule = rDoc.GetNumRuleFromPool(nId); in lcl_FindNumRule()
342 sal_Bool FindPhyStyle( SwDoc& rDoc, const String& rName, SfxStyleFamily eFam ) in FindPhyStyle() argument
347 return 0 != lcl_FindCharFmt( rDoc, rName, 0, sal_False ); in FindPhyStyle()
349 return 0 != lcl_FindParaFmt( rDoc, rName, 0, sal_False ); in FindPhyStyle()
351 return 0 != lcl_FindFrmFmt( rDoc, rName, 0, sal_False ); in FindPhyStyle()
353 return 0 != lcl_FindPageDesc( rDoc, rName, 0, sal_False ); in FindPhyStyle()
355 return 0 != lcl_FindNumRule( rDoc, rName, 0, sal_False ); in FindPhyStyle()
412 rDoc(rDocument), in SwDocStyleSheet()
448 rDoc(rOrg.rDoc), in SwDocStyleSheet()
487 pFmt = rDoc.FindCharFmtByName( aName ); in GetParent()
492 pFmt = rDoc.FindTxtFmtCollByName( aName ); in GetParent()
497 pFmt = rDoc.FindFrmFmtByName( aName ); in GetParent()
809 rDoc.RenameFmt(*pColl, rStr); in SetName()
823 rDoc.RenameFmt(*pFrmFmt, rStr); in SetName()
843 bool const bDoesUndo = rDoc.GetIDocumentUndoRedo().DoesUndo(); in SetName()
845 rDoc.GetIDocumentUndoRedo().DoUndo(aOldName.Len() > 0); in SetName()
846 rDoc.ChgPageDesc(aOldName, aPageDesc); in SetName()
847 rDoc.GetIDocumentUndoRedo().DoUndo(bDoesUndo); in SetName()
850 rDoc.SetModified(); in SetName()
865 rDoc.RenameNumRule(aOldName, rStr)) in SetName()
867 pNumRule = rDoc.FindNumRulePtr(rStr); in SetName()
868 rDoc.SetModified(); in SetName()
876 ((SwNumRule*)pNumRule)->SetName( rStr, rDoc ); in SetName()
878 rDoc.SetModified(); in SetName()
895 SwEditShell* pSh = rDoc.GetEditShell(); in SetName()
915 pParent = lcl_FindCharFmt(rDoc, rStr); in SetParent()
921 pParent = lcl_FindParaFmt( rDoc, rStr ); in SetParent()
927 pParent = lcl_FindFrmFmt( rDoc, rStr ); in SetParent()
942 SwImplShellAction aTmp( rDoc ); in SetParent()
967 SwImplShellAction aTmpSh( rDoc ); in SetFollow()
976 if( rStr.Len() && 0 == (pFollow = lcl_FindParaFmt(rDoc, rStr) )) in SetFollow()
989 ? lcl_FindPageDesc(rDoc, rStr) in SetFollow()
993 rDoc.FindPageDescByName( pDesc->GetName(), &nId ) ) in SetFollow()
997 rDoc.ChgPageDesc( nId, aDesc ); in SetFollow()
998 pDesc = &const_cast<const SwDoc &>(rDoc).GetPageDesc( nId ); in SetFollow()
1104 const SwNumRule* pRule = rDoc.FindNumRulePtr( sNumRule ); in MergeIndentAttrsOfListStyle()
1134 SwImplShellAction aTmpSh( rDoc ); in SetItemSet()
1139 if (rDoc.GetIDocumentUndoRedo().DoesUndo()) in SetItemSet()
1143 rDoc.GetIDocumentUndoRedo().StartUndo( UNDO_INSFMTATTR, &aRewriter ); in SetItemSet()
1184 0 != ( pFindFmt = lcl_FindParaFmt( rDoc, rStyle, 0, sal_True ))) in SetItemSet()
1199 SwConditionTxtFmtColl* pCColl = rDoc.MakeCondTxtFmtColl( in SetItemSet()
1217 0 != ( pFindFmt = lcl_FindParaFmt( rDoc, rStyle, 0, sal_True ))) in SetItemSet()
1224 rDoc.DelTxtFmtColl( pColl ); in SetItemSet()
1233 rDoc.ResetAttrAtFormat( RES_LR_SPACE, *pColl ); in SetItemSet()
1247 SwNumRule* pRule = rDoc.FindNumRulePtr( sNumRule ); in SetItemSet()
1253 … pRule = rDoc.GetNumRuleFromPool( nPoolId ); // Create numbering rule (physical) in SetItemSet()
1303 if( rDoc.FindPageDescByName( pDesc->GetName(), &nPgDscPos )) in SetItemSet()
1308 ::sw::UndoGuard const ug(rDoc.GetIDocumentUndoRedo()); in SetItemSet()
1309 rDoc.CopyPageDesc(*pDesc, *pNewDsc); // #i7983# in SetItemSet()
1333 aSetRule.SetSvxRule(*pSetRule, &rDoc); in SetItemSet()
1334 rDoc.ChgNumRuleFmts( aSetRule ); in SetItemSet()
1347 rDoc.ChgNumRuleFmts( aRule ); in SetItemSet()
1370 rDoc.ResetAttrAtFormat( rSet.GetWhichByPos(aIter.GetCurPos()), in SetItemSet()
1386 rDoc.ChgPageDesc( nPgDscPos, *pNewDsc ); in SetItemSet()
1387 pDesc = &const_cast<const SwDoc &>(rDoc).GetPageDesc( nPgDscPos ); in SetItemSet()
1388 rDoc.PreDelPageDesc(pNewDsc); // #i7983# in SetItemSet()
1392 rDoc.ChgFmt(*pFmt, aSet); // alles gesetzten Putten in SetItemSet()
1399 rDoc.PreDelPageDesc(pNewDsc); // #i7983# in SetItemSet()
1405 if (rDoc.GetIDocumentUndoRedo().DoesUndo()) in SetItemSet()
1407 rDoc.GetIDocumentUndoRedo().EndUndo(UNDO_END, 0); in SetItemSet()
1412 void lcl_SaveStyles( sal_uInt16 nFamily, SvPtrarr& rArr, SwDoc& rDoc ) in lcl_SaveStyles() argument
1418 const SwCharFmts& rTbl = *rDoc.GetCharFmts(); in lcl_SaveStyles()
1428 const SwTxtFmtColls& rTbl = *rDoc.GetTxtFmtColls(); in lcl_SaveStyles()
1438 const SwFrmFmts& rTbl = *rDoc.GetFrmFmts(); in lcl_SaveStyles()
1449 for( sal_uInt16 n = 0, nCnt = rDoc.GetPageDescCnt(); n < nCnt; ++n ) in lcl_SaveStyles()
1452 (void*)&const_cast<const SwDoc &>(rDoc).GetPageDesc( n ); in lcl_SaveStyles()
1460 const SwNumRuleTbl& rTbl = rDoc.GetNumRuleTbl(); in lcl_SaveStyles()
1471 void lcl_DeleteInfoStyles( sal_uInt16 nFamily, SvPtrarr& rArr, SwDoc& rDoc ) in lcl_DeleteInfoStyles() argument
1479 const SwCharFmts& rTbl = *rDoc.GetCharFmts(); in lcl_DeleteInfoStyles()
1487 rDoc.DelCharFmt( aDelArr[ n ] ); in lcl_DeleteInfoStyles()
1494 const SwTxtFmtColls& rTbl = *rDoc.GetTxtFmtColls(); in lcl_DeleteInfoStyles()
1502 rDoc.DelTxtFmtColl( aDelArr[ n ] ); in lcl_DeleteInfoStyles()
1509 const SwFrmFmts& rTbl = *rDoc.GetFrmFmts(); in lcl_DeleteInfoStyles()
1517 rDoc.DelFrmFmt( (SwFrmFmt*)aDelArr[ n ] ); in lcl_DeleteInfoStyles()
1524 for( n = 0, nCnt = rDoc.GetPageDescCnt(); n < nCnt; ++n ) in lcl_DeleteInfoStyles()
1527 (void*)&const_cast<const SwDoc &>(rDoc).GetPageDesc( n ); in lcl_DeleteInfoStyles()
1532 rDoc.DelPageDesc( aDelArr[ n ] ); in lcl_DeleteInfoStyles()
1540 const SwNumRuleTbl& rTbl = rDoc.GetNumRuleTbl(); in lcl_DeleteInfoStyles()
1548 rDoc.DelNumRule( ((SwNumRule*)aDelArr[ n ])->GetName() ); in lcl_DeleteInfoStyles()
1572 pCharFmt = lcl_FindCharFmt(rDoc, aName, this, bCreate ); in FillStyleSheet()
1577 ::lcl_SaveStyles( static_cast< sal_uInt16 >(nFamily), aDelArr, rDoc ); in FillStyleSheet()
1578 pCharFmt = lcl_FindCharFmt(rDoc, aName, this, sal_True ); in FillStyleSheet()
1599 pColl = lcl_FindParaFmt(rDoc, aName, this, bCreate); in FillStyleSheet()
1604 ::lcl_SaveStyles( static_cast< sal_uInt16 >(nFamily), aDelArr, rDoc ); in FillStyleSheet()
1605 pColl = lcl_FindParaFmt(rDoc, aName, this, sal_True ); in FillStyleSheet()
1622 pFrmFmt = lcl_FindFrmFmt(rDoc, aName, this, bCreate); in FillStyleSheet()
1627 ::lcl_SaveStyles( static_cast< sal_uInt16 >(nFamily), aDelArr, rDoc ); in FillStyleSheet()
1628 pFrmFmt = lcl_FindFrmFmt(rDoc, aName, this, sal_True ); in FillStyleSheet()
1641 pDesc = lcl_FindPageDesc(rDoc, aName, this, bCreate); in FillStyleSheet()
1646 ::lcl_SaveStyles( static_cast< sal_uInt16 >(nFamily), aDelArr, rDoc ); in FillStyleSheet()
1647 pDesc = lcl_FindPageDesc( rDoc, aName, this, sal_True ); in FillStyleSheet()
1655 aHelpFile = *rDoc.GetDocPattern( pDesc->GetPoolHlpFileId() ); in FillStyleSheet()
1669 pNumRule = lcl_FindNumRule(rDoc, aName, this, bCreate); in FillStyleSheet()
1674 ::lcl_SaveStyles( static_cast< sal_uInt16 >(nFamily), aDelArr, rDoc ); in FillStyleSheet()
1675 pNumRule = lcl_FindNumRule( rDoc, aName, this, sal_True ); in FillStyleSheet()
1683 aHelpFile = *rDoc.GetDocPattern( pNumRule->GetPoolHlpFileId() ); in FillStyleSheet()
1707 if( pFmt == rDoc.GetDfltCharFmt() ) in FillStyleSheet()
1728 aHelpFile = *rDoc.GetDocPattern( pFmt->GetPoolHlpFileId() ); in FillStyleSheet()
1739 ::lcl_DeleteInfoStyles( static_cast< sal_uInt16 >(nFamily), aDelArr, rDoc ); in FillStyleSheet()
1753 pCharFmt = lcl_FindCharFmt( rDoc, aName ); in Create()
1755 pCharFmt = rDoc.MakeCharFmt(aName, in Create()
1756 rDoc.GetDfltCharFmt()); in Create()
1761 pColl = lcl_FindParaFmt( rDoc, aName ); in Create()
1764 SwTxtFmtColl *pPar = (*rDoc.GetTxtFmtColls())[0]; in Create()
1766 pColl = rDoc.MakeCondTxtFmtColl( aName, pPar ); in Create()
1768 pColl = rDoc.MakeTxtFmtColl( aName, pPar ); in Create()
1773 pFrmFmt = lcl_FindFrmFmt( rDoc, aName ); in Create()
1775 pFrmFmt = rDoc.MakeFrmFmt(aName, rDoc.GetDfltFrmFmt(), sal_False, sal_False); in Create()
1780 pDesc = lcl_FindPageDesc( rDoc, aName ); in Create()
1783 sal_uInt16 nId = rDoc.MakePageDesc(aName); in Create()
1784 pDesc = &const_cast<const SwDoc &>(rDoc).GetPageDesc(nId); in Create()
1789 pNumRule = lcl_FindNumRule( rDoc, aName ); in Create()
1795 sTmpNm = rDoc.GetUniqueNumRuleName(); in Create()
1798 SwNumRule* pRule = rDoc.GetNumRuleTbl()[ in Create()
1799 rDoc.MakeNumRule( sTmpNm, 0, sal_False, in Create()
1808 pRule->SetName( aName, rDoc ); in Create()
1859 rDoc.ChgNumRuleFmts( rRule ); in SetNumRule()
1926 return pNumRule ? rDoc.IsUsed( *pNumRule ) : sal_False; in IsUsed()
1932 return rDoc.IsUsed( *pMod ); in IsUsed()
1951 0 == (pCharFmt = lcl_FindCharFmt( rDoc, aName, 0, sal_False )) ) in GetHelpId()
1961 0 == ( pColl = lcl_FindParaFmt( rDoc, aName, 0, sal_False )) ) in GetHelpId()
1971 0 == ( pFrmFmt = lcl_FindFrmFmt( rDoc, aName, 0, sal_False ) ) ) in GetHelpId()
1981 0 == ( pDesc = lcl_FindPageDesc( rDoc, aName, 0, sal_False ) ) ) in GetHelpId()
1994 0 == ( pNumRule = lcl_FindNumRule( rDoc, aName, 0, sal_False ) ) ) in GetHelpId()
2019 const String *pTemplate = rDoc.GetDocPattern( nFileId ); in GetHelpId()
2041 sal_uInt8 nFileId = static_cast< sal_uInt8 >(rDoc.SetDocPattern( r )); in SetHelpId()
2081 , rDoc( rDocument ) in SwDocStyleSheetPool()
2157 SwImplShellAction aTmpSh( rDoc ); in Replace()
2167 rDoc.CopyPageDesc( *pCpyDsc, *pDestDsc ); in Replace()
2196 SwPageDesc *pDesc = rDoc.FindPageDescByName( in Replace()
2224 rDoc.ChgPageDesc( nPgDscPos, in Replace()
2225 const_cast<const SwDoc &>(rDoc). in Replace()
2248 SwImplShellAction aTmpSh( rDoc ); in Remove()
2254 SwCharFmt* pFmt = lcl_FindCharFmt(rDoc, rName, 0, sal_False ); in Remove()
2256 rDoc.DelCharFmt(pFmt); in Remove()
2261 SwTxtFmtColl* pColl = lcl_FindParaFmt(rDoc, rName, 0, sal_False ); in Remove()
2263 rDoc.DelTxtFmtColl(pColl); in Remove()
2268 SwFrmFmt* pFmt = lcl_FindFrmFmt(rDoc, rName, 0, sal_False ); in Remove()
2270 rDoc.DelFrmFmt(pFmt); in Remove()
2276 if( rDoc.FindPageDescByName( rName, &nPos )) in Remove()
2277 rDoc.DelPageDesc( nPos ); in Remove()
2283 if( !rDoc.DelNumRule( rName ) ) in Remove()
2307 if( 0 != ( pFmt = lcl_FindCharFmt( rDoc, rStyle ) ) && rParent.Len() ) in SetParent()
2308 pParent = lcl_FindCharFmt(rDoc, rParent ); in SetParent()
2312 if( 0 != ( pFmt = lcl_FindParaFmt( rDoc, rStyle ) ) && rParent.Len() ) in SetParent()
2313 pParent = lcl_FindParaFmt( rDoc, rParent ); in SetParent()
2317 if( 0 != ( pFmt = lcl_FindFrmFmt( rDoc, rStyle ) ) && rParent.Len() ) in SetParent()
2318 pParent = lcl_FindFrmFmt( rDoc, rParent ); in SetParent()
2334 SwImplShellAction aTmpSh( rDoc ); in SetParent()
2361 if( SFX_STYLE_FAMILY_PARA == eFam && rDoc.get(IDocumentSettingAccess::HTML_MODE) ) in Find()
2406 !(bSearchUsed && (bOrganizer || rDoc.IsUsed(*pRule)) ) && in Find()
2421 if( pMod && !(bSearchUsed && (bOrganizer || rDoc.IsUsed(*pMod)) ) ) in Find()
2484 SwDoc& rDoc = ((SwDocStyleSheetPool*)pBasePool)->GetDoc(); in First() local
2493 const sal_uInt16 nArrLen = rDoc.GetCharFmts()->Count(); in First()
2496 SwCharFmt* pFmt = (*rDoc.GetCharFmts())[ i ]; in First()
2497 if( pFmt->IsDefault() && pFmt != rDoc.GetDfltCharFmt() ) in First()
2500 const sal_Bool bUsed = bIsSearchUsed && (bOrganizer || rDoc.IsUsed(*pFmt)); in First()
2504 const sal_uInt16 nId = rDoc.GetDfltCharFmt() == pFmt ? in First()
2513 if( rDoc.get(IDocumentSettingAccess::HTML_MODE) && !(nId & USER_FMT) && in First()
2523 aLst.Append( cCHAR, pFmt == rDoc.GetDfltCharFmt() in First()
2533 if( !rDoc.get(IDocumentSettingAccess::HTML_MODE) ) in First()
2556 if( rDoc.get(IDocumentSettingAccess::HTML_MODE) ) in First()
2569 const sal_uInt16 nArrLen = rDoc.GetTxtFmtColls()->Count(); in First()
2572 SwTxtFmtColl* pColl = (*rDoc.GetTxtFmtColls())[ i ]; in First()
2577 const sal_Bool bUsed = bOrganizer || rDoc.IsUsed(*pColl); in First()
2665 rDoc.IsPoolTxtCollUsed( RES_POOLCOLL_TEXT )) in First()
2701 if( !bIsSearchUsed || rDoc.IsPoolTxtCollUsed( *pPoolIds ) ) in First()
2713 const sal_uInt16 nArrLen = rDoc.GetFrmFmts()->Count(); in First()
2716 SwFrmFmt* pFmt = (*rDoc.GetFrmFmts())[ i ]; in First()
2724 sal_Bool bUsed = bIsSearchUsed && ( bOrganizer || rDoc.IsUsed(*pFmt)); in First()
2749 const sal_uInt16 nCount = rDoc.GetPageDescCnt(); in First()
2753 const_cast<const SwDoc &>(rDoc).GetPageDesc(i); in First()
2755 sal_Bool bUsed = bIsSearchUsed && ( bOrganizer || rDoc.IsUsed(rDesc)); in First()
2775 const SwNumRuleTbl& rNumTbl = rDoc.GetNumRuleTbl(); in First()
2781 sal_Bool bUsed = bIsSearchUsed && ( bOrganizer || rDoc.IsUsed(rRule) ); in First()
2852 SwDoc& rDoc = ((SwDocStyleSheetPool*)pBasePool)->GetDoc(); in AppendStyleList() local
2860 bUsed = rDoc.IsPoolTxtCollUsed( nId ); in AppendStyleList()
2863 bUsed = rDoc.IsPoolFmtUsed( nId ); in AppendStyleList()
2866 bUsed = rDoc.IsPoolFmtUsed( nId ); in AppendStyleList()
2868 bUsed = rDoc.IsPoolPageDescUsed( nId ); in AppendStyleList()