#79741# always create background object on new master page
This commit is contained in:
parent
ad6c66a601
commit
51cb8292a7
1 changed files with 11 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue