Lines Matching refs:rDoc

89 	SwImplShellAction( SwDoc& rDoc );
95 SwImplShellAction::SwImplShellAction( SwDoc& rDoc ) in SwImplShellAction() argument
98 if( rDoc.GetDocShell() ) in SwImplShellAction()
99 pSh = rDoc.GetDocShell()->GetWrtShell(); in SwImplShellAction()
124 SwCharFmt* lcl_FindCharFmt( SwDoc& rDoc, in lcl_FindCharFmt() argument
132 pFmt = rDoc.FindCharFmtByName( rName ); in lcl_FindCharFmt()
137 pFmt = (SwCharFmt*)rDoc.GetDfltCharFmt(); in lcl_FindCharFmt()
144 pFmt = rDoc.GetCharFmtFromPool(nId); in lcl_FindCharFmt()
170 SwTxtFmtColl* lcl_FindParaFmt( SwDoc& rDoc, in lcl_FindParaFmt() argument
179 pColl = rDoc.FindTxtFmtCollByName( rName ); in lcl_FindParaFmt()
184 pColl = rDoc.GetTxtCollFromPool(nId); in lcl_FindParaFmt()
213 SwFrmFmt* lcl_FindFrmFmt( SwDoc& rDoc, in lcl_FindFrmFmt() argument
221 pFmt = rDoc.FindFrmFmtByName( rName ); in lcl_FindFrmFmt()
226 pFmt = rDoc.GetFrmFmtFromPool(nId); in lcl_FindFrmFmt()
251 const SwPageDesc* lcl_FindPageDesc( SwDoc& rDoc, in lcl_FindPageDesc() argument
260 pDesc = rDoc.FindPageDescByName( rName ); in lcl_FindPageDesc()
265 pDesc = rDoc.GetPageDescFromPool(nId); in lcl_FindPageDesc()
285 const SwNumRule* lcl_FindNumRule( SwDoc& rDoc, in lcl_FindNumRule() argument
294 pRule = rDoc.FindNumRulePtr( rName ); in lcl_FindNumRule()
299 pRule = rDoc.GetNumRuleFromPool(nId); in lcl_FindNumRule()
341 sal_Bool FindPhyStyle( SwDoc& rDoc, const String& rName, SfxStyleFamily eFam ) in FindPhyStyle() argument
346 return 0 != lcl_FindCharFmt( rDoc, rName, 0, sal_False ); in FindPhyStyle()
348 return 0 != lcl_FindParaFmt( rDoc, rName, 0, sal_False ); in FindPhyStyle()
350 return 0 != lcl_FindFrmFmt( rDoc, rName, 0, sal_False ); in FindPhyStyle()
352 return 0 != lcl_FindPageDesc( rDoc, rName, 0, sal_False ); in FindPhyStyle()
354 return 0 != lcl_FindNumRule( rDoc, rName, 0, sal_False ); in FindPhyStyle()
411 rDoc(rDocument), in SwDocStyleSheet()
456 rDoc(rOrg.rDoc), in SwDocStyleSheet()
495 pFmt = rDoc.FindCharFmtByName( aName ); in GetParent()
500 pFmt = rDoc.FindTxtFmtCollByName( aName ); in GetParent()
505 pFmt = rDoc.FindFrmFmtByName( aName ); in GetParent()
860 rDoc.RenameFmt(*pColl, rStr); in SetName()
874 rDoc.RenameFmt(*pFrmFmt, rStr); in SetName()
894 bool const bDoesUndo = rDoc.GetIDocumentUndoRedo().DoesUndo(); in SetName()
896 rDoc.GetIDocumentUndoRedo().DoUndo(aOldName.Len() > 0); in SetName()
897 rDoc.ChgPageDesc(aOldName, aPageDesc); in SetName()
898 rDoc.GetIDocumentUndoRedo().DoUndo(bDoesUndo); in SetName()
901 rDoc.SetModified(); in SetName()
916 rDoc.RenameNumRule(aOldName, rStr)) in SetName()
918 pNumRule = rDoc.FindNumRulePtr(rStr); in SetName()
919 rDoc.SetModified(); in SetName()
927 ((SwNumRule*)pNumRule)->SetName( rStr, rDoc ); in SetName()
929 rDoc.SetModified(); in SetName()
946 SwEditShell* pSh = rDoc.GetEditShell(); in SetName()
966 pParent = lcl_FindCharFmt(rDoc, rStr); in SetParent()
972 pParent = lcl_FindParaFmt( rDoc, rStr ); in SetParent()
978 pParent = lcl_FindFrmFmt( rDoc, rStr ); in SetParent()
993 SwImplShellAction aTmp( rDoc ); in SetParent()
1018 SwImplShellAction aTmpSh( rDoc ); in SetFollow()
1027 if( rStr.Len() && 0 == (pFollow = lcl_FindParaFmt(rDoc, rStr) )) in SetFollow()
1040 ? lcl_FindPageDesc(rDoc, rStr) in SetFollow()
1044 rDoc.FindPageDescByName( pDesc->GetName(), &nId ) ) in SetFollow()
1048 rDoc.ChgPageDesc( nId, aDesc ); in SetFollow()
1049 pDesc = &const_cast<const SwDoc &>(rDoc).GetPageDesc( nId ); in SetFollow()
1114 const SwDrawModel* pDrawModel = rDoc.GetDrawModel(); in GetItemSet()
1129 aCoreSet.SetParent(&rDoc.GetDfltFrmFmt()->GetAttrSet()); in GetItemSet()
1170 const SwNumRule* pRule = rDoc.FindNumRulePtr( sNumRule ); in MergeIndentAttrsOfListStyle()
1200 SwImplShellAction aTmpSh( rDoc ); in SetItemSet()
1205 if (rDoc.GetIDocumentUndoRedo().DoesUndo()) in SetItemSet()
1209 rDoc.GetIDocumentUndoRedo().StartUndo( UNDO_INSFMTATTR, &aRewriter ); in SetItemSet()
1250 0 != ( pFindFmt = lcl_FindParaFmt( rDoc, rStyle, 0, sal_True ))) in SetItemSet()
1265 SwConditionTxtFmtColl* pCColl = rDoc.MakeCondTxtFmtColl( in SetItemSet()
1283 0 != ( pFindFmt = lcl_FindParaFmt( rDoc, rStyle, 0, sal_True ))) in SetItemSet()
1290 rDoc.DelTxtFmtColl( pColl ); in SetItemSet()
1299 rDoc.ResetAttrAtFormat( RES_LR_SPACE, *pColl ); in SetItemSet()
1313 SwNumRule* pRule = rDoc.FindNumRulePtr( sNumRule ); in SetItemSet()
1319 … pRule = rDoc.GetNumRuleFromPool( nPoolId ); // Create numbering rule (physical) in SetItemSet()
1369 if( rDoc.FindPageDescByName( pDesc->GetName(), &nPgDscPos )) in SetItemSet()
1374 ::sw::UndoGuard const ug(rDoc.GetIDocumentUndoRedo()); in SetItemSet()
1375 rDoc.CopyPageDesc(*pDesc, *pNewDsc); // #i7983# in SetItemSet()
1399 aSetRule.SetSvxRule(*pSetRule, &rDoc); in SetItemSet()
1400 rDoc.ChgNumRuleFmts( aSetRule ); in SetItemSet()
1413 rDoc.ChgNumRuleFmts( aRule ); in SetItemSet()
1436 rDoc.ResetAttrAtFormat( rSet.GetWhichByPos(aIter.GetCurPos()), in SetItemSet()
1452 rDoc.CheckForUniqueItemForLineFillNameOrIndex(aSet); in SetItemSet()
1460 rDoc.ChgPageDesc( nPgDscPos, *pNewDsc ); in SetItemSet()
1461 pDesc = &const_cast<const SwDoc &>(rDoc).GetPageDesc( nPgDscPos ); in SetItemSet()
1462 rDoc.PreDelPageDesc(pNewDsc); // #i7983# in SetItemSet()
1466 rDoc.ChgFmt(*pFmt, aSet); // alles gesetzten Putten in SetItemSet()
1473 rDoc.PreDelPageDesc(pNewDsc); // #i7983# in SetItemSet()
1479 if (rDoc.GetIDocumentUndoRedo().DoesUndo()) in SetItemSet()
1481 rDoc.GetIDocumentUndoRedo().EndUndo(UNDO_END, 0); in SetItemSet()
1486 void lcl_SaveStyles( sal_uInt16 nFamily, SvPtrarr& rArr, SwDoc& rDoc ) in lcl_SaveStyles() argument
1492 const SwCharFmts& rTbl = *rDoc.GetCharFmts(); in lcl_SaveStyles()
1502 const SwTxtFmtColls& rTbl = *rDoc.GetTxtFmtColls(); in lcl_SaveStyles()
1512 const SwFrmFmts& rTbl = *rDoc.GetFrmFmts(); in lcl_SaveStyles()
1523 for( sal_uInt16 n = 0, nCnt = rDoc.GetPageDescCnt(); n < nCnt; ++n ) in lcl_SaveStyles()
1526 (void*)&const_cast<const SwDoc &>(rDoc).GetPageDesc( n ); in lcl_SaveStyles()
1534 const SwNumRuleTbl& rTbl = rDoc.GetNumRuleTbl(); in lcl_SaveStyles()
1545 void lcl_DeleteInfoStyles( sal_uInt16 nFamily, SvPtrarr& rArr, SwDoc& rDoc ) in lcl_DeleteInfoStyles() argument
1553 const SwCharFmts& rTbl = *rDoc.GetCharFmts(); in lcl_DeleteInfoStyles()
1561 rDoc.DelCharFmt( aDelArr[ n ] ); in lcl_DeleteInfoStyles()
1568 const SwTxtFmtColls& rTbl = *rDoc.GetTxtFmtColls(); in lcl_DeleteInfoStyles()
1576 rDoc.DelTxtFmtColl( aDelArr[ n ] ); in lcl_DeleteInfoStyles()
1583 const SwFrmFmts& rTbl = *rDoc.GetFrmFmts(); in lcl_DeleteInfoStyles()
1591 rDoc.DelFrmFmt( (SwFrmFmt*)aDelArr[ n ] ); in lcl_DeleteInfoStyles()
1598 for( n = 0, nCnt = rDoc.GetPageDescCnt(); n < nCnt; ++n ) in lcl_DeleteInfoStyles()
1601 (void*)&const_cast<const SwDoc &>(rDoc).GetPageDesc( n ); in lcl_DeleteInfoStyles()
1606 rDoc.DelPageDesc( aDelArr[ n ] ); in lcl_DeleteInfoStyles()
1614 const SwNumRuleTbl& rTbl = rDoc.GetNumRuleTbl(); in lcl_DeleteInfoStyles()
1622 rDoc.DelNumRule( ((SwNumRule*)aDelArr[ n ])->GetName() ); in lcl_DeleteInfoStyles()
1646 pCharFmt = lcl_FindCharFmt(rDoc, aName, this, bCreate ); in FillStyleSheet()
1651 ::lcl_SaveStyles( static_cast< sal_uInt16 >(nFamily), aDelArr, rDoc ); in FillStyleSheet()
1652 pCharFmt = lcl_FindCharFmt(rDoc, aName, this, sal_True ); in FillStyleSheet()
1673 pColl = lcl_FindParaFmt(rDoc, aName, this, bCreate); in FillStyleSheet()
1678 ::lcl_SaveStyles( static_cast< sal_uInt16 >(nFamily), aDelArr, rDoc ); in FillStyleSheet()
1679 pColl = lcl_FindParaFmt(rDoc, aName, this, sal_True ); in FillStyleSheet()
1696 pFrmFmt = lcl_FindFrmFmt(rDoc, aName, this, bCreate); in FillStyleSheet()
1701 ::lcl_SaveStyles( static_cast< sal_uInt16 >(nFamily), aDelArr, rDoc ); in FillStyleSheet()
1702 pFrmFmt = lcl_FindFrmFmt(rDoc, aName, this, sal_True ); in FillStyleSheet()
1715 pDesc = lcl_FindPageDesc(rDoc, aName, this, bCreate); in FillStyleSheet()
1720 ::lcl_SaveStyles( static_cast< sal_uInt16 >(nFamily), aDelArr, rDoc ); in FillStyleSheet()
1721 pDesc = lcl_FindPageDesc( rDoc, aName, this, sal_True ); in FillStyleSheet()
1729 aHelpFile = *rDoc.GetDocPattern( pDesc->GetPoolHlpFileId() ); in FillStyleSheet()
1743 pNumRule = lcl_FindNumRule(rDoc, aName, this, bCreate); in FillStyleSheet()
1748 ::lcl_SaveStyles( static_cast< sal_uInt16 >(nFamily), aDelArr, rDoc ); in FillStyleSheet()
1749 pNumRule = lcl_FindNumRule( rDoc, aName, this, sal_True ); in FillStyleSheet()
1757 aHelpFile = *rDoc.GetDocPattern( pNumRule->GetPoolHlpFileId() ); in FillStyleSheet()
1781 if( pFmt == rDoc.GetDfltCharFmt() ) in FillStyleSheet()
1802 aHelpFile = *rDoc.GetDocPattern( pFmt->GetPoolHlpFileId() ); in FillStyleSheet()
1813 ::lcl_DeleteInfoStyles( static_cast< sal_uInt16 >(nFamily), aDelArr, rDoc ); in FillStyleSheet()
1827 pCharFmt = lcl_FindCharFmt( rDoc, aName ); in Create()
1829 pCharFmt = rDoc.MakeCharFmt(aName, in Create()
1830 rDoc.GetDfltCharFmt()); in Create()
1835 pColl = lcl_FindParaFmt( rDoc, aName ); in Create()
1838 SwTxtFmtColl *pPar = (*rDoc.GetTxtFmtColls())[0]; in Create()
1840 pColl = rDoc.MakeCondTxtFmtColl( aName, pPar ); in Create()
1842 pColl = rDoc.MakeTxtFmtColl( aName, pPar ); in Create()
1847 pFrmFmt = lcl_FindFrmFmt( rDoc, aName ); in Create()
1849 pFrmFmt = rDoc.MakeFrmFmt(aName, rDoc.GetDfltFrmFmt(), sal_False, sal_False); in Create()
1854 pDesc = lcl_FindPageDesc( rDoc, aName ); in Create()
1857 sal_uInt16 nId = rDoc.MakePageDesc(aName); in Create()
1858 pDesc = &const_cast<const SwDoc &>(rDoc).GetPageDesc(nId); in Create()
1863 pNumRule = lcl_FindNumRule( rDoc, aName ); in Create()
1869 sTmpNm = rDoc.GetUniqueNumRuleName(); in Create()
1872 SwNumRule* pRule = rDoc.GetNumRuleTbl()[ in Create()
1873 rDoc.MakeNumRule( sTmpNm, 0, sal_False, in Create()
1882 pRule->SetName( aName, rDoc ); in Create()
1933 rDoc.ChgNumRuleFmts( rRule ); in SetNumRule()
2000 return pNumRule ? rDoc.IsUsed( *pNumRule ) : sal_False; in IsUsed()
2006 return rDoc.IsUsed( *pMod ); in IsUsed()
2025 0 == (pCharFmt = lcl_FindCharFmt( rDoc, aName, 0, sal_False )) ) in GetHelpId()
2035 0 == ( pColl = lcl_FindParaFmt( rDoc, aName, 0, sal_False )) ) in GetHelpId()
2045 0 == ( pFrmFmt = lcl_FindFrmFmt( rDoc, aName, 0, sal_False ) ) ) in GetHelpId()
2055 0 == ( pDesc = lcl_FindPageDesc( rDoc, aName, 0, sal_False ) ) ) in GetHelpId()
2068 0 == ( pNumRule = lcl_FindNumRule( rDoc, aName, 0, sal_False ) ) ) in GetHelpId()
2093 const String *pTemplate = rDoc.GetDocPattern( nFileId ); in GetHelpId()
2115 sal_uInt8 nFileId = static_cast< sal_uInt8 >(rDoc.SetDocPattern( r )); in SetHelpId()
2155 , rDoc( rDocument ) in SwDocStyleSheetPool()
2231 SwImplShellAction aTmpSh( rDoc ); in Replace()
2241 rDoc.CopyPageDesc( *pCpyDsc, *pDestDsc ); in Replace()
2270 SwPageDesc *pDesc = rDoc.FindPageDescByName( in Replace()
2298 rDoc.ChgPageDesc( nPgDscPos, in Replace()
2299 const_cast<const SwDoc &>(rDoc). in Replace()
2322 SwImplShellAction aTmpSh( rDoc ); in Remove()
2328 SwCharFmt* pFmt = lcl_FindCharFmt(rDoc, rName, 0, sal_False ); in Remove()
2330 rDoc.DelCharFmt(pFmt); in Remove()
2335 SwTxtFmtColl* pColl = lcl_FindParaFmt(rDoc, rName, 0, sal_False ); in Remove()
2337 rDoc.DelTxtFmtColl(pColl); in Remove()
2342 SwFrmFmt* pFmt = lcl_FindFrmFmt(rDoc, rName, 0, sal_False ); in Remove()
2344 rDoc.DelFrmFmt(pFmt); in Remove()
2350 if( rDoc.FindPageDescByName( rName, &nPos )) in Remove()
2351 rDoc.DelPageDesc( nPos ); in Remove()
2357 if( !rDoc.DelNumRule( rName ) ) in Remove()
2381 if( 0 != ( pFmt = lcl_FindCharFmt( rDoc, rStyle ) ) && rParent.Len() ) in SetParent()
2382 pParent = lcl_FindCharFmt(rDoc, rParent ); in SetParent()
2386 if( 0 != ( pFmt = lcl_FindParaFmt( rDoc, rStyle ) ) && rParent.Len() ) in SetParent()
2387 pParent = lcl_FindParaFmt( rDoc, rParent ); in SetParent()
2391 if( 0 != ( pFmt = lcl_FindFrmFmt( rDoc, rStyle ) ) && rParent.Len() ) in SetParent()
2392 pParent = lcl_FindFrmFmt( rDoc, rParent ); in SetParent()
2408 SwImplShellAction aTmpSh( rDoc ); in SetParent()
2435 if( SFX_STYLE_FAMILY_PARA == eFam && rDoc.get(IDocumentSettingAccess::HTML_MODE) ) in Find()
2480 !(bSearchUsed && (bOrganizer || rDoc.IsUsed(*pRule)) ) && in Find()
2495 if( pMod && !(bSearchUsed && (bOrganizer || rDoc.IsUsed(*pMod)) ) ) in Find()
2558 SwDoc& rDoc = ((SwDocStyleSheetPool*)pBasePool)->GetDoc(); in First() local
2567 const sal_uInt16 nArrLen = rDoc.GetCharFmts()->Count(); in First()
2570 SwCharFmt* pFmt = (*rDoc.GetCharFmts())[ i ]; in First()
2571 if( pFmt->IsDefault() && pFmt != rDoc.GetDfltCharFmt() ) in First()
2574 const sal_Bool bUsed = bIsSearchUsed && (bOrganizer || rDoc.IsUsed(*pFmt)); in First()
2578 const sal_uInt16 nId = rDoc.GetDfltCharFmt() == pFmt ? in First()
2587 if( rDoc.get(IDocumentSettingAccess::HTML_MODE) && !(nId & USER_FMT) && in First()
2597 aLst.Append( cCHAR, pFmt == rDoc.GetDfltCharFmt() in First()
2607 if( !rDoc.get(IDocumentSettingAccess::HTML_MODE) ) in First()
2630 if( rDoc.get(IDocumentSettingAccess::HTML_MODE) ) in First()
2643 const sal_uInt16 nArrLen = rDoc.GetTxtFmtColls()->Count(); in First()
2646 SwTxtFmtColl* pColl = (*rDoc.GetTxtFmtColls())[ i ]; in First()
2651 const sal_Bool bUsed = bOrganizer || rDoc.IsUsed(*pColl); in First()
2739 rDoc.IsPoolTxtCollUsed( RES_POOLCOLL_TEXT )) in First()
2775 if( !bIsSearchUsed || rDoc.IsPoolTxtCollUsed( *pPoolIds ) ) in First()
2787 const sal_uInt16 nArrLen = rDoc.GetFrmFmts()->Count(); in First()
2790 SwFrmFmt* pFmt = (*rDoc.GetFrmFmts())[ i ]; in First()
2798 sal_Bool bUsed = bIsSearchUsed && ( bOrganizer || rDoc.IsUsed(*pFmt)); in First()
2823 const sal_uInt16 nCount = rDoc.GetPageDescCnt(); in First()
2827 const_cast<const SwDoc &>(rDoc).GetPageDesc(i); in First()
2829 sal_Bool bUsed = bIsSearchUsed && ( bOrganizer || rDoc.IsUsed(rDesc)); in First()
2849 const SwNumRuleTbl& rNumTbl = rDoc.GetNumRuleTbl(); in First()
2855 sal_Bool bUsed = bIsSearchUsed && ( bOrganizer || rDoc.IsUsed(rRule) ); in First()
2926 SwDoc& rDoc = ((SwDocStyleSheetPool*)pBasePool)->GetDoc(); in AppendStyleList() local
2934 bUsed = rDoc.IsPoolTxtCollUsed( nId ); in AppendStyleList()
2937 bUsed = rDoc.IsPoolFmtUsed( nId ); in AppendStyleList()
2940 bUsed = rDoc.IsPoolFmtUsed( nId ); in AppendStyleList()
2942 bUsed = rDoc.IsPoolPageDescUsed( nId ); in AppendStyleList()