#79741# always create background object on new master page

This commit is contained in:
Christian Lippka 2000-11-01 13:53:19 +00:00
parent ad6c66a601
commit 51cb8292a7

View file

@ -2,9 +2,9 @@
*
* $RCSfile: unomodel.cxx,v $
*
* $Revision: 1.2 $
* $Revision: 1.3 $
*
* last change: $Author: cl $ $Date: 2000-09-29 14:48:35 $
* last change: $Author: cl $ $Date: 2000-11-01 14:53:19 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@ -1077,6 +1077,15 @@ uno::Reference< drawing::XDrawPage > SAL_CALL SdMasterPagesAccess::insertNewByIn
pDoc->InsertMasterPage(pMPage, nIndex);
pMPage->SetLayoutName( aLayoutName );
{ // insert background object
Point aBackgroundPos ( pMPage->GetLftBorder(), pMPage->GetUppBorder() );
Size aBackgroundSize ( pMPage->GetSize() );
aBackgroundSize.Width() -= pMPage->GetLftBorder() + pMPage->GetRgtBorder() - 1;
aBackgroundSize.Height() -= pMPage->GetUppBorder() + pMPage->GetLwrBorder() - 1;
Rectangle aBackgroundRect (aBackgroundPos, aBackgroundSize);
pMPage->CreatePresObj(PRESOBJ_BACKGROUND, aBackgroundRect, sal_True );
}
xDrawPage = rModel.CreateXDrawPage(pMPage);
// create and instert new notes masterpage