Lines Matching refs:pDocument
169 SdDrawDocument* pDocument = NULL; in GetSlideForMasterPage() local
171 pDocument = dynamic_cast<SdDrawDocument*>(pMasterPage->GetModel()); in GetSlideForMasterPage()
175 if (pDocument!=NULL && pDocument->GetSdPageCount(PK_STANDARD) > 0) in GetSlideForMasterPage()
179 sal_uInt16 nPageIndex (pDocument->GetSdPageCount(PK_STANDARD)-1); in GetSlideForMasterPage()
183 pCandidate = pDocument->GetSdPage( in GetSlideForMasterPage()
432 SdDrawDocument* pDocument = dynamic_cast<SdDrawDocument*>(pPage->GetModel()); in AssignMasterPageToPage() local
433 if (pDocument == NULL) in AssignMasterPageToPage()
441 pDocument->GetDocSh()->GetUndoManager()->AddUndoAction( in AssignMasterPageToPage()
443 *pDocument, *pPage, pPage->getSdrPageProperties().GetItemSet()), in AssignMasterPageToPage()
447 pDocument->SetMasterPage ( in AssignMasterPageToPage()
450 pDocument, in AssignMasterPageToPage()
458 sal_uInt16 nPageCount = pDocument->GetSdPageCount(PK_STANDARD); in AssignMasterPageToPage()
461 SdrPage* pCandidate = pDocument->GetSdPage(nPage,PK_STANDARD); in AssignMasterPageToPage()
474 pDocument->SetMasterPage ( in AssignMasterPageToPage()
477 pDocument, in AssignMasterPageToPage()
485 pDocument->RemoveUnnecessaryMasterPages ( in AssignMasterPageToPage()